com.spss.psapi.expr

Interface Parser



  • public interface Parser
    This interface encapsulates the functionality for parsing CLEM expressions.
    Since:
    PSAPI 17.0
    Author:
    Mark Anderson
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      Expression parseExpression(java.lang.String expressionString, DataModel dataModel)
      Attempts to parse the String argument to an Expression.
    • Method Detail

      • parseExpression

        Expression parseExpression(java.lang.String expressionString,
                                 DataModel dataModel)
                                   throws ParserException
        Attempts to parse the String argument to an Expression. Parsing checks for syntax, lexical and semantic errors. The dataModel argument is used to check for fields referenced in the expression. Parsing using this method will fail if the String contains reference to Processor or ProcessorStream related functions and values such as GlobalValues, Parameters and database functions.
        Parameters:
        expressionString - - the String to parse
        dataModel - - the data model
        Returns:
        the expression
        Throws:
        ParserException - - if the String does not contain a parsable Expression.

(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.