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, JJTTERM
AND, 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
ParseException
public final void disable_tracing()
public final void enable_tracing()
public final JSONPathCompiler.JSONPathExpr expr() throws ParseException
ParseException
public ParseException generateParseException()
public final Token getNextToken()
public final Token getToken(int index)
public final JSONPathCompiler.JSONPathExpr json() throws ParseException
ParseException
public final JSONPathCompiler.JSONPathExpr literalOrNumber() throws ParseException
ParseException
public final void neg() throws ParseException
ParseException
public final void object() throws ParseException
ParseException
public final void part() throws ParseException
ParseException
public final void predicate() throws ParseException
ParseException
public final JSONPathCompiler.JSONPathExpr primaryExpr() throws ParseException
ParseException
public void ReInit(CharStream stream)
public void ReInit(JSONPathCompilerTokenManager tm)
public final void selector() throws ParseException
ParseException
public final void term() throws ParseException
ParseException