|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jexl2.parser.StringParser org.apache.commons.jexl2.parser.JexlParser org.apache.commons.jexl2.parser.Parser
public class Parser
Field Summary | |
---|---|
boolean |
ALLOW_REGISTERS
|
Token |
jj_nt
Next token. |
protected JJTParserState |
jjtree
|
Token |
token
Current token. |
ParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from class org.apache.commons.jexl2.parser.JexlParser |
---|
frame |
Fields inherited from interface org.apache.commons.jexl2.parser.ParserConstants |
---|
and, AND, assign, COLON, COMMA, DEFAULT, DIGIT, div, DOT, ELSE, ELVIS, EMPTY, EOF, eq, FALSE, FLOAT_LITERAL, FOR, FOR_EACH_IN, FOREACH, ge, gt, IDENTIFIER, IF, IN, INTEGER_LITERAL, LBRACKET, LCURLY, le, LETTER, LPAREN, lt, minus, mod, mult, ne, NEW, not, NULL, or, OR, plus, QMARK, RBRACKET, RCURLY, REGISTER, REGISTERS, req, RETURN, rne, RPAREN, SEMICOL, SIZE, STRING_LITERAL, tilda, tokenImage, TRUE, VAR, WHILE, xor |
Constructor Summary | |
---|---|
Parser(InputStream stream)
Constructor with InputStream. |
|
Parser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding |
|
Parser(ParserTokenManager tm)
Constructor with generated Token Manager. |
|
Parser(Reader stream)
Constructor. |
Methods inherited from class org.apache.commons.jexl2.parser.JexlParser |
---|
checkVariable, declareVariable, getFrame, Identifier, setFrame |
Methods inherited from class org.apache.commons.jexl2.parser.StringParser |
---|
buildString, escapeString, readString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JJTParserState jjtree
public boolean ALLOW_REGISTERS
public ParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public Parser(InputStream stream)
public Parser(InputStream stream, String encoding)
public Parser(Reader stream)
public Parser(ParserTokenManager tm)
Method Detail |
---|
public ASTJexlScript parse(Reader reader, JexlInfo info) throws ParseException
ParseException
public final ASTJexlScript JexlScript() throws ParseException
ParseException
public final void Statement() throws ParseException
ParseException
public final void Block() throws ParseException
ParseException
public final void ExpressionStatement() throws ParseException
ParseException
public final void IfStatement() throws ParseException
ParseException
public final void WhileStatement() throws ParseException
ParseException
public final void ForeachStatement() throws ParseException
ParseException
public final void ReturnStatement() throws ParseException
ParseException
public final void Expression() throws ParseException
ParseException
public final void Assignment() throws ParseException
ParseException
public final void Var() throws ParseException
ParseException
public final void DeclareVar() throws ParseException
ParseException
public final void LValueVar() throws ParseException
ParseException
public final void ConditionalExpression() throws ParseException
ParseException
public final void ConditionalOrExpression() throws ParseException
ParseException
public final void ConditionalAndExpression() throws ParseException
ParseException
public final void InclusiveOrExpression() throws ParseException
ParseException
public final void ExclusiveOrExpression() throws ParseException
ParseException
public final void AndExpression() throws ParseException
ParseException
public final void EqualityExpression() throws ParseException
ParseException
public final void RelationalExpression() throws ParseException
ParseException
public final void AdditiveExpression() throws ParseException
ParseException
public final void AdditiveOperator() throws ParseException
ParseException
public final void MultiplicativeExpression() throws ParseException
ParseException
public final void UnaryExpression() throws ParseException
ParseException
public final void Identifier(boolean top) throws ParseException
Identifier
in class JexlParser
top
- whether the identifier is beginning an l/r value
ParseException
- subclasses may throw thispublic final void StringIdentifier() throws ParseException
ParseException
public final void Literal() throws ParseException
ParseException
public final void NullLiteral() throws ParseException
ParseException
public final void BooleanLiteral() throws ParseException
ParseException
public final void IntegerLiteral() throws ParseException
ParseException
public final void FloatLiteral() throws ParseException
ParseException
public final void StringLiteral() throws ParseException
ParseException
public final void ArrayLiteral() throws ParseException
ParseException
public final void MapLiteral() throws ParseException
ParseException
public final void MapEntry() throws ParseException
ParseException
public final void EmptyFunction() throws ParseException
ParseException
public final void SizeFunction() throws ParseException
ParseException
public final void Function() throws ParseException
ParseException
public final void Method() throws ParseException
ParseException
public final void AnyMethod() throws ParseException
ParseException
public final void SizeMethod() throws ParseException
ParseException
public final void Constructor() throws ParseException
ParseException
public final void PrimaryExpression() throws ParseException
ParseException
public final void ArrayAccess() throws ParseException
ParseException
public final void DotReference() throws ParseException
ParseException
public final void Reference() throws ParseException
ParseException
public final void ReferenceExpression() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
getToken
in class JexlParser
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |