|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jexl3.parser.StringParser
org.apache.commons.jexl3.parser.JexlParser
org.apache.commons.jexl3.parser.Parser
public final class Parser
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
protected JJTParserState |
jjtree
|
Token |
token
Current token. |
ParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface org.apache.commons.jexl3.parser.ParserConstants |
---|
and, AND, and_assign, ANNOTATION, assign, BREAK, COLON, COMMA, CONTINUE, DEFAULT, DIGIT, div, div_assign, DOT, DOT_ID, DOT_IDENTIFIER, eeq, ELIPSIS, ELSE, ELVIS, EMPTY, ene, EOF, eq, FALSE, FLOAT_LITERAL, FOR, FUNCTION, ge, gt, IDENTIFIER, IF, INTEGER_LITERAL, JXLT_LITERAL, LAMBDA, LBRACKET, LCURLY, le, LETTER, LPAREN, lt, minus, minus_assign, mod, mod_assign, mult, mult_assign, NAN_LITERAL, ne, NEW, not, NULL, or, OR, or_assign, plus, plus_assign, PRAGMA, QMARK, range, RBRACKET, RCURLY, REGISTER, REGISTERS, req, RETURN, rne, RPAREN, SEMICOL, seq, SIZE, sne, STRING_LITERAL, tilda, tokenImage, TRUE, VAR, WHILE, xor, xor_assign |
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.jexl3.parser.JexlParser |
---|
allowRegisters, checkVariable, declareParameter, declarePragma, declareVariable, getFrame, Identifier, popFrame, pushFrame, setFrame, throwParsingException |
Methods inherited from class org.apache.commons.jexl3.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 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(JexlInfo info, String jexlSrc, Scope scope, boolean registers, boolean expr)
public final ASTJexlScript JexlScript(Scope frame) throws ParseException
ParseException
public final ASTJexlScript JexlExpression(Scope frame) throws ParseException
ParseException
public final void Annotation() throws ParseException
ParseException
public final void AnnotatedStatement() 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 ReturnStatement() throws ParseException
ParseException
public final void Continue() throws ParseException
ParseException
public final void Break() throws ParseException
ParseException
public final void ForeachStatement() throws ParseException
ParseException
public final void ForEachVar() throws ParseException
ParseException
public final void Var() throws ParseException
ParseException
public final void DeclareVar() throws ParseException
ParseException
public final void Pragma() throws ParseException
ParseException
public final void pragmaKey(LinkedList<String> lstr) throws ParseException
ParseException
public final Object pragmaValue() throws ParseException
ParseException
public final void Expression() throws ParseException
ParseException
public final void AssignmentExpression() 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 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 NaNLiteral() 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 JxltLiteral() throws ParseException
ParseException
public final void ExtendedLiteral() 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 SetLiteral() throws ParseException
ParseException
public final void EmptyMethod() throws ParseException
ParseException
public final void SizeMethod() throws ParseException
ParseException
public final void Arguments() throws ParseException
ParseException
public final void FunctionCallLookahead() throws ParseException
ParseException
public final void FunctionCall() throws ParseException
ParseException
public final void Constructor() throws ParseException
ParseException
public final void Parameter() throws ParseException
ParseException
public final void Parameters() throws ParseException
ParseException
public final void LambdaLookahead() throws ParseException
ParseException
public final void Lambda() throws ParseException
ParseException
public final void IdentifierAccess() throws ParseException
ParseException
public final void ArrayAccess() throws ParseException
ParseException
public final void MemberAccess() throws ParseException
ParseException
public final void ReferenceExpression() throws ParseException
ParseException
public final void PrimaryExpression() throws ParseException
ParseException
public final void MethodCall() throws ParseException
ParseException
public final void MemberExpression() throws ParseException
ParseException
public final void ValueExpression() 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 |