Class Expression
java.lang.Object
com.mayam.wf.attributes.shared.expr.Expression
- All Implemented Interfaces:
ExpressionConstants
,ExpressionTreeConstants
-
Field Summary
Modifier and TypeFieldDescriptionNext token.protected JJTExpressionState
Current token.Generated Token Manager.Fields inherited from interface com.mayam.wf.attributes.shared.expr.ExpressionConstants
_DEFAULT, ANDASSIGN, ASSIGN, BANG, BIT_AND, BIT_OR, BOM, BREAK, CASE, CATCH, CLASS, COLON, COMMA, CONST, CONTINUE, CR, DEBUGGER, DECIMAL_LITERAL, DECR, DEFAULT, DELETE, DO, DOT, DOUBLE_STRING_LITERAL_BODY, ELSE, ENUM, EOF, EOL, EQ, EXPONENT, EXPORT, EXTENDS, FALSE, FF, FINALLY, FLOATING_POINT_LITERAL, FOR, FUNCTION, GE, GET, GT, HEX_DIGIT, HEX_LITERAL, HOOK, IDENTIFIER, IDENTIFIER_PART, IDENTIFIER_START, IF, IMPORT, IN, IN_MULTI_LINE_COMMENT, INCR, INSTANCEOF, LBRACE, LBRACKET, LE, LF, LPAREN, LS, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NBSP, NE, NEW, NL_DECR, NL_INCR, NO_SKIP_EOL, NOEOL, NOREGEXP, NULL, OCTAL_LITERAL, ORASSIGN, PLUS, PLUSASSIGN, PS, RBRACE, RBRACKET, REGULAR_EXPRESSION_BACKSLASH_SEQUENCE, REGULAR_EXPRESSION_BODY, REGULAR_EXPRESSION_CHAR, REGULAR_EXPRESSION_CLASS, REGULAR_EXPRESSION_CLASS_CHAR, REGULAR_EXPRESSION_FIRST_CHAR, REGULAR_EXPRESSION_LITERAL, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SET, SINGLE_LINE_COMMENT, SINGLE_STRING_LITERAL_BODY, SLASH, SLASHASSIGN, SP, STAR, STARASSIGN, STRICT_EQ, STRICT_NEQ, STRING_LITERAL, SUPER, SWITCH, TAB, THIS, THROW, TILDE, tokenImage, TRUE, TRY, TYPEOF, UNICODE_COMBINING_MARK, UNICODE_CONNECTOR_PUNCTUATION, UNICODE_DIGIT, UNICODE_ESCAPE_SEQUENCE, UNICODE_LETTER, UNTERMINATED_STRING_LITERAL, USP, VAR, VOID, VT, WHILE, WITH, XOR, XORASSIGN, ZWJ, ZWNJ
Fields inherited from interface com.mayam.wf.attributes.shared.expr.ExpressionTreeConstants
JJTADDITIVEEXPRESSIONSEQUENCE, JJTANDEXPRESSIONSEQUENCE, JJTARRAYLITERAL, JJTCOMPARISONEXPRESSIONSEQUENCE, JJTCOMPLETEEXPRESSION, JJTCOMPOSITEREFERENCE, JJTCONDITIONALEXPRESSION, JJTELISION, JJTFUNCTIONCALLPARAMETERS, JJTIDENTIFIER, JJTLITERAL, JJTMULTIPLICATIVEEXPRESSIONSEQUENCE, jjtNodeName, JJTOPERATOR, JJTOREXPRESSIONSEQUENCE, JJTPROPERTYIDENTIFIERREFERENCE, JJTPROPERTYVALUEREFERENCE, JJTUNARYEXPRESSION, JJTVOID
-
Constructor Summary
ConstructorDescriptionConstructor with generated Token Manager.Expression
(Provider stream) Constructor with InputStream.Expression
(String sDSL) Constructor with InputStream. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final void
AddOp()
final void
final void
final void
final void
final void
final void
final void
final void
final void
Disable tracing.void
dump()
final void
Enable tracing.Generate ParseException.final Token
final Token
getToken
(int index) final void
final void
Literal()
final void
final void
final void
MulOp()
final void
final void
final void
parse
(ExpressionVisitor visitor, Object data) final void
final void
void
Reinitialisevoid
Reinitialisevoid
Reinitialise.final void
final boolean
final void
final void
UnaryOp()
-
Field Details
-
jjtree
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
Expression
Constructor with InputStream.- Parameters:
sDSL
- String representation to be parsed
-
Method Details
-
dump
- Throws:
ParseException
-
completeExpression
- Throws:
ParseException
-
NumericLiteral
- Throws:
ParseException
-
BooleanLiteral
- Throws:
ParseException
-
NullLiteral
- Throws:
ParseException
-
StringLiteral
- Throws:
ParseException
-
Literal
- Throws:
ParseException
-
PrimaryExpression
- Throws:
ParseException
-
PrimarySuffix
- Throws:
ParseException
-
Identifier
- Throws:
ParseException
-
Arguments
- Throws:
ParseException
-
ArgumentList
- Throws:
ParseException
-
ConditionalExpression
- Throws:
ParseException
-
LogicalORExpression
- Throws:
ParseException
-
LogicalANDExpression
- Throws:
ParseException
-
ComparisonOp
- Throws:
ParseException
-
ComparisonExpression
- Throws:
ParseException
-
AddOp
- Throws:
ParseException
-
AdditiveExpression
- Throws:
ParseException
-
MulOp
- Throws:
ParseException
-
MultiplicativeExpression
- Throws:
ParseException
-
UnaryOp
- Throws:
ParseException
-
UnaryExpression
- Throws:
ParseException
-
ArrayLiteral
- Throws:
ParseException
-
ReInit
Reinitialise.- Parameters:
sDSL
- String representation to be parsed
-
getNextToken
- Returns:
- the next Token.
-
getToken
- Parameters:
index
- index to be retrieved- Returns:
- the specific Token.
-
generateParseException
Generate ParseException.- Returns:
- new Exception object. Never
null
-
trace_enabled
public final boolean trace_enabled()- Returns:
- Always
false
.
-
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.