public class OgnlParser extends Object implements OgnlParserTreeConstants, OgnlParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
protected JJTOgnlParserState |
jjtree |
Token |
token
Current token.
|
OgnlParserTokenManager |
token_source
Generated Token Manager.
|
JJTADD, JJTAND, JJTASSIGN, JJTBITAND, JJTBITNEGATE, JJTBITOR, JJTCHAIN, JJTCONST, JJTCTOR, JJTDIVIDE, JJTEQ, JJTEVAL, JJTGREATER, JJTGREATEREQ, JJTIN, JJTINSTANCEOF, JJTKEYVALUE, JJTLESS, JJTLESSEQ, JJTLIST, JJTMAP, JJTMETHOD, JJTMULTIPLY, JJTNEGATE, jjtNodeName, JJTNOT, JJTNOTEQ, JJTNOTIN, JJTOR, JJTPROJECT, JJTPROPERTY, JJTREMAINDER, JJTROOTVARREF, JJTSELECT, JJTSELECTFIRST, JJTSELECTLAST, JJTSEQUENCE, JJTSHIFTLEFT, JJTSHIFTRIGHT, JJTSTATICFIELD, JJTSTATICMETHOD, JJTSUBTRACT, JJTTEST, JJTTHISVARREF, JJTUNSIGNEDSHIFTRIGHT, JJTVARREF, JJTVOID, JJTXORBACK_CHAR_ESC, BACK_CHAR_LITERAL, CHAR_LITERAL, DEC_DIGITS, DEC_FLT, DEFAULT, DIGIT, DYNAMIC_SUBSCRIPT, EOF, ESC, EXPONENT, FLT_LITERAL, FLT_SUFF, IDENT, INT_LITERAL, LETTER, STRING_ESC, STRING_LITERAL, tokenImage, WithinBackCharLiteral, WithinCharLiteral, WithinStringLiteral| Constructor and Description |
|---|
OgnlParser(InputStream stream)
Constructor with InputStream.
|
OgnlParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
OgnlParser(OgnlParserTokenManager tm)
Constructor with generated Token Manager.
|
OgnlParser(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
additiveExpression() |
void |
andExpression() |
void |
assignmentExpression() |
String |
className() |
String |
classReference() |
void |
conditionalTestExpression() |
void |
constructorCall() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
void |
equalityExpression() |
void |
exclusiveOrExpression() |
void |
expression() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
inclusiveOrExpression() |
void |
index() |
void |
keyValueExpression() |
void |
logicalAndExpression() |
void |
logicalOrExpression() |
void |
methodCall() |
void |
multiplicativeExpression() |
void |
navigationChain() |
void |
primaryExpression() |
void |
projection()
Apply an expression to all elements of a collection, creating a new collection
as the result.
|
void |
propertyName() |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(OgnlParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
relationalExpression() |
void |
selectAll()
Apply a boolean expression to all elements of a collection, creating a new collection
containing those elements for which the expression returned true.
|
void |
selectFirst()
Apply a boolean expression to all elements of a collection, creating a new collection
containing those elements for the first element for which the expression returned true.
|
void |
selection() |
void |
selectLast()
Apply a boolean expression to all elements of a collection, creating a new collection
containing those elements for the first element for which the expression returned true.
|
void |
shiftExpression() |
void |
staticMethodCall(String className) |
void |
staticReference() |
Node |
topLevelExpression()
This is the top-level construct of OGNL.
|
void |
unaryExpression() |
protected JJTOgnlParserState jjtree
public OgnlParserTokenManager token_source
public Token token
public Token jj_nt
public OgnlParser(InputStream stream)
public OgnlParser(InputStream stream, String encoding)
public OgnlParser(Reader stream)
public OgnlParser(OgnlParserTokenManager tm)
public final Node topLevelExpression() throws ParseException
ParseExceptionpublic final void expression()
throws ParseException
ParseExceptionpublic final void assignmentExpression()
throws ParseException
ParseExceptionpublic final void conditionalTestExpression()
throws ParseException
ParseExceptionpublic final void logicalOrExpression()
throws ParseException
ParseExceptionpublic final void logicalAndExpression()
throws ParseException
ParseExceptionpublic final void inclusiveOrExpression()
throws ParseException
ParseExceptionpublic final void exclusiveOrExpression()
throws ParseException
ParseExceptionpublic final void andExpression()
throws ParseException
ParseExceptionpublic final void equalityExpression()
throws ParseException
ParseExceptionpublic final void relationalExpression()
throws ParseException
ParseExceptionpublic final void shiftExpression()
throws ParseException
ParseExceptionpublic final void additiveExpression()
throws ParseException
ParseExceptionpublic final void multiplicativeExpression()
throws ParseException
ParseExceptionpublic final void unaryExpression()
throws ParseException
ParseExceptionpublic final void navigationChain()
throws ParseException
ParseExceptionpublic final void primaryExpression()
throws ParseException
ParseExceptionpublic final void keyValueExpression()
throws ParseException
ParseExceptionpublic final void staticReference()
throws ParseException
ParseExceptionpublic final String classReference() throws ParseException
ParseExceptionpublic final String className() throws ParseException
ParseExceptionpublic final void constructorCall()
throws ParseException
ParseExceptionpublic final void propertyName()
throws ParseException
ParseExceptionpublic final void staticMethodCall(String className) throws ParseException
ParseExceptionpublic final void methodCall()
throws ParseException
ParseExceptionpublic final void projection()
throws ParseException
ParseExceptionpublic final void selection()
throws ParseException
ParseExceptionpublic final void selectAll()
throws ParseException
ParseExceptionpublic final void selectFirst()
throws ParseException
ParseExceptionpublic final void selectLast()
throws ParseException
ParseExceptionpublic final void index()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(OgnlParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 1997–2018 OpenSymphony. All rights reserved.