Package ej.jsonpath.parser
Class JSONPathCompiler
- java.lang.Object
-
- ej.jsonpath.parser.JSONPathCompiler
-
- All Implemented Interfaces:
JSONPathCompilerConstants,JSONPathCompilerTreeConstants
public class JSONPathCompiler extends Object implements JSONPathCompilerTreeConstants, JSONPathCompilerConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJSONPathCompiler.JSONPathExpr
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.protected JJTJSONPathCompilerStatejjtreeTokentokenCurrent token.JSONPathCompilerTokenManagertoken_sourceGenerated Token Manager.-
Fields inherited from interface ej.jsonpath.parser.JSONPathCompilerConstants
AND, CLOSE_ARRAY, CNAME, DEFAULT, DIGIT, DIGIT19, DOT, EOF, EXP, EXPONENT, FRAC, IDENTIFIER, INTEGER, LETTER, NOT, NUMBER, OP, OPEN_ARRAY, OR, OTHER, tokenImage
-
Fields inherited from interface ej.jsonpath.parser.JSONPathCompilerTreeConstants
JJTARRAY, JJTEXPRESSION, JJTIMAGE, JJTNEG, jjtNodeName, JJTOBJECT, JJTPART, JJTPREDICATE, JJTSELECTOR, JJTTERM
-
-
Constructor Summary
Constructors Constructor Description JSONPathCompiler(CharStream stream)Constructor with user supplied CharStream.JSONPathCompiler(JSONPathCompilerTokenManager tm)Constructor with generated Token Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidarray()voiddisable_tracing()Disable tracing.voidenable_tracing()Enable tracing.JSONPathCompiler.JSONPathExprexpr()ParseExceptiongenerateParseException()Generate ParseException.TokengetNextToken()Get the next Token.TokengetToken(int index)Get the specific Token.JSONPathCompiler.JSONPathExprjson()JSONPathCompiler.JSONPathExprliteralOrNumber()voidneg()voidobject()voidpart()voidpredicate()JSONPathCompiler.JSONPathExprprimaryExpr()voidReInit(CharStream stream)Reinitialise.voidReInit(JSONPathCompilerTokenManager tm)Reinitialise.voidselector()voidterm()
-
-
-
Field Detail
-
jjtree
protected JJTJSONPathCompilerState jjtree
-
token_source
public JSONPathCompilerTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
JSONPathCompiler
public JSONPathCompiler(CharStream stream)
Constructor with user supplied CharStream.
-
JSONPathCompiler
public JSONPathCompiler(JSONPathCompilerTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
json
public final JSONPathCompiler.JSONPathExpr json() throws ParseException
- Throws:
ParseException
-
expr
public final JSONPathCompiler.JSONPathExpr expr() throws ParseException
- Throws:
ParseException
-
array
public final void array() throws ParseException- Throws:
ParseException
-
selector
public final void selector() throws ParseException- Throws:
ParseException
-
term
public final void term() throws ParseException- Throws:
ParseException
-
neg
public final void neg() throws ParseException- Throws:
ParseException
-
part
public final void part() throws ParseException- Throws:
ParseException
-
predicate
public final void predicate() throws ParseException- Throws:
ParseException
-
primaryExpr
public final JSONPathCompiler.JSONPathExpr primaryExpr() throws ParseException
- Throws:
ParseException
-
literalOrNumber
public final JSONPathCompiler.JSONPathExpr literalOrNumber() throws ParseException
- Throws:
ParseException
-
object
public final void object() throws ParseException- Throws:
ParseException
-
ReInit
public void ReInit(CharStream stream)
Reinitialise.
-
ReInit
public void ReInit(JSONPathCompilerTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-