Skip navigation links
oracle.rules.sdk2.ruleset
Class ExprParser
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
Copyright © 2009, Oracle and/or its affiliates. All rights reserved.