Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1)

E10663-02


oracle.rules.sdk2.ruleset
Class ExprParser

java.lang.Object
  extended by oracle.rules.sdk2.ruleset.ExprParser


public class ExprParser
extends java.lang.Object

Scans an input expression string, and if successful, parses the string. Creates an ordered array of Tokens. Determines which token the cursor is in. Analyzes the expression to determine if it will yield the correct type.

TODO: reorg so there is one constructor and various getters that scan/parse/analyze on demand as needed, so user is shielded from knowing how much analysis is needed for a particular getter (like getResultType v. getValue)


Nested Class Summary
 class ExprParser.Token
          Token represents a lexeme in a parsed expression.

 

Field Summary
static int TOKEN_BINARYOP
           
static int TOKEN_BOOLEAN_CONSTANT
           
static int TOKEN_CHARLIT
           
static int TOKEN_CONSTRUCTOR
           
static int TOKEN_FUNCTION
           
static int TOKEN_IDENTIFIER
           
static int TOKEN_LBRACKET
           
static int TOKEN_LPAREN
           
static int TOKEN_NULL
           
static int TOKEN_NUMBER
           
static int TOKEN_PRE_UNARYOP
           
static int TOKEN_RBRACKET
           
static int TOKEN_RPAREN
           
static int TOKEN_STRINGLIT
           
static int TOKEN_TYPE_OP
           
static int TOKEN_TYPE_OPERAND
           
static int TOKEN_TYPE_UNKNOWN
           
static int TOKEN_UNARY_OR_BINARY_OP
           
static int TOKEN_UNKNOWN
           

 

Method Summary
 java.util.List<ExprParser.Token> getConcatTokens()
           
 java.util.List<DOID> getReferences()
           
 DOID getResultID()
           
 java.util.List<ExprParser.Token> getTokens()
           
 boolean hasError()
           
static ExprParser usageOnly(ExprParser parser, RuleComponent parent)
           

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

TOKEN_TYPE_OPERAND

public static final int TOKEN_TYPE_OPERAND
See Also:
Constant Field Values

TOKEN_IDENTIFIER

public static final int TOKEN_IDENTIFIER
See Also:
Constant Field Values

TOKEN_FUNCTION

public static final int TOKEN_FUNCTION
See Also:
Constant Field Values

TOKEN_CONSTRUCTOR

public static final int TOKEN_CONSTRUCTOR
See Also:
Constant Field Values

TOKEN_NUMBER

public static final int TOKEN_NUMBER
See Also:
Constant Field Values

TOKEN_STRINGLIT

public static final int TOKEN_STRINGLIT
See Also:
Constant Field Values

TOKEN_CHARLIT

public static final int TOKEN_CHARLIT
See Also:
Constant Field Values

TOKEN_BOOLEAN_CONSTANT

public static final int TOKEN_BOOLEAN_CONSTANT
See Also:
Constant Field Values

TOKEN_NULL

public static final int TOKEN_NULL
See Also:
Constant Field Values

TOKEN_TYPE_OP

public static final int TOKEN_TYPE_OP
See Also:
Constant Field Values

TOKEN_LPAREN

public static final int TOKEN_LPAREN
See Also:
Constant Field Values

TOKEN_RPAREN

public static final int TOKEN_RPAREN
See Also:
Constant Field Values

TOKEN_BINARYOP

public static final int TOKEN_BINARYOP
See Also:
Constant Field Values

TOKEN_PRE_UNARYOP

public static final int TOKEN_PRE_UNARYOP
See Also:
Constant Field Values

TOKEN_UNARY_OR_BINARY_OP

public static final int TOKEN_UNARY_OR_BINARY_OP
See Also:
Constant Field Values

TOKEN_LBRACKET

public static final int TOKEN_LBRACKET
See Also:
Constant Field Values

TOKEN_RBRACKET

public static final int TOKEN_RBRACKET
See Also:
Constant Field Values

TOKEN_TYPE_UNKNOWN

public static final int TOKEN_TYPE_UNKNOWN
See Also:
Constant Field Values

TOKEN_UNKNOWN

public static final int TOKEN_UNKNOWN
See Also:
Constant Field Values

Method Detail

usageOnly

public static ExprParser usageOnly(ExprParser parser,
                                   RuleComponent parent)

hasError

public boolean hasError()

getResultID

public DOID getResultID()

getReferences

public java.util.List<DOID> getReferences()

getTokens

public java.util.List<ExprParser.Token> getTokens()

getConcatTokens

public java.util.List<ExprParser.Token> getConcatTokens()

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1)

E10663-02


Copyright © 2009, Oracle and/or its affiliates. All rights reserved.