public class JSONPathCompiler extends Object implements JSONPathCompilerTreeConstants, JSONPathCompilerConstants
| Modifier and Type | Class and Description |
|---|---|
static class |
JSONPathCompiler.JSONPathExpr |
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
protected JJTJSONPathCompilerState |
jjtree |
Token |
token
Current token.
|
JSONPathCompilerTokenManager |
token_source
Generated Token Manager.
|
JJTARRAY, JJTEXPRESSION, JJTIMAGE, JJTNEG, jjtNodeName, JJTOBJECT, JJTPART, JJTPREDICATE, JJTSELECTOR, JJTTERMAND, CLOSE_ARRAY, CNAME, DEFAULT, DIGIT, DIGIT19, DOT, EOF, EXP, EXPONENT, FRAC, IDENTIFIER, INTEGER, LETTER, NOT, NUMBER, OP, OPEN_ARRAY, OR, OTHER, tokenImage| Constructor and Description |
|---|
JSONPathCompiler(CharStream stream)
Constructor with user supplied CharStream.
|
JSONPathCompiler(JSONPathCompilerTokenManager tm)
Constructor with generated Token Manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
array() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
JSONPathCompiler.JSONPathExpr |
expr() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
JSONPathCompiler.JSONPathExpr |
json() |
JSONPathCompiler.JSONPathExpr |
literalOrNumber() |
void |
neg() |
void |
object() |
void |
part() |
void |
predicate() |
JSONPathCompiler.JSONPathExpr |
primaryExpr() |
void |
ReInit(CharStream stream)
Reinitialise.
|
void |
ReInit(JSONPathCompilerTokenManager tm)
Reinitialise.
|
void |
selector() |
void |
term() |
public Token jj_nt
protected JJTJSONPathCompilerState jjtree
public Token token
public JSONPathCompilerTokenManager token_source
public JSONPathCompiler(CharStream stream)
public JSONPathCompiler(JSONPathCompilerTokenManager tm)
public final void array()
throws ParseException
ParseExceptionpublic final void disable_tracing()
public final void enable_tracing()
public final JSONPathCompiler.JSONPathExpr expr() throws ParseException
ParseExceptionpublic ParseException generateParseException()
public final Token getNextToken()
public final Token getToken(int index)
public final JSONPathCompiler.JSONPathExpr json() throws ParseException
ParseExceptionpublic final JSONPathCompiler.JSONPathExpr literalOrNumber() throws ParseException
ParseExceptionpublic final void neg()
throws ParseException
ParseExceptionpublic final void object()
throws ParseException
ParseExceptionpublic final void part()
throws ParseException
ParseExceptionpublic final void predicate()
throws ParseException
ParseExceptionpublic final JSONPathCompiler.JSONPathExpr primaryExpr() throws ParseException
ParseExceptionpublic void ReInit(CharStream stream)
public void ReInit(JSONPathCompilerTokenManager tm)
public final void selector()
throws ParseException
ParseExceptionpublic final void term()
throws ParseException
ParseException