Package net.sf.jasperreports.json.parser
Class JsonQueryParser
java.lang.Object
antlr.Parser
antlr.LLkParser
net.sf.jasperreports.json.parser.JsonQueryParser
- All Implemented Interfaces:
JsonQueryParserTokenTypes
- Author:
- Narcis Marcu (narcism@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]
static final antlr.collections.impl.BitSet
static final antlr.collections.impl.BitSet
static final antlr.collections.impl.BitSet
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
Fields inherited from interface net.sf.jasperreports.json.parser.JsonQueryParserTokenTypes
ABSOLUTE, AND, ARRAY_CONSTRUCTION, ARRAY_INDEX, ARRAY_SLICE, AT_IS_ARRAY, AT_IS_NOT_NULL, AT_IS_NULL, AT_IS_OBJECT, AT_IS_VALUE, AT_SIZE, AT_VALUE, CARET, COMMA, COMPLEX_KEY, CONTAINS, DIGIT, DOT, DOTDOT, EOF, EQ, ESC, EXP, FILTER, FRAC, GE, GT, ID, ID_LETTER, ID_OR_ABSOLUTE, ID_START_LETTER, INT, INT_OR_REAL_OR_DOTS, LBRACKET, LCURLY, LE, LITERAL_false, LITERAL_null, LITERAL_true, LPAREN, LT, MEMBER, MULTI_LEVEL_UP, MULTI_LINE_COMMENT, NE, NEWLINE, NOT, NULL_TREE_LOOKAHEAD, OBJECT_CONSTRUCTION, OR, PATH, RBRACKET, RCURLY, REAL, RPAREN, SEMI, SIMPLE_KEY, SINGLE_LINE_COMMENT, STRING, TYPE_CHECK, WILDCARD, WS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionJsonQueryParser
(antlr.ParserSharedInputState state) JsonQueryParser
(antlr.TokenBuffer tokenBuf) protected
JsonQueryParser
(antlr.TokenBuffer tokenBuf, int k) JsonQueryParser
(antlr.TokenStream lexer) protected
JsonQueryParser
(antlr.TokenStream lexer, int k) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
andExpr()
final void
final void
final void
final void
protected void
final void
final void
final void
final void
final void
final void
final void
final void
notExpr()
final void
final void
final void
pathExpr()
final void
final void
final void
final void
final void
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
-
Field Details
-
_tokenNames
-
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0 -
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1 -
_tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_2
-
-
Constructor Details
-
JsonQueryParser
protected JsonQueryParser(antlr.TokenBuffer tokenBuf, int k) -
JsonQueryParser
public JsonQueryParser(antlr.TokenBuffer tokenBuf) -
JsonQueryParser
protected JsonQueryParser(antlr.TokenStream lexer, int k) -
JsonQueryParser
public JsonQueryParser(antlr.TokenStream lexer)
-
-
Method Details
-
pathExpr
public final void pathExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
memberExpr
public final void memberExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
filterExprMain
public final void filterExprMain() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
simpleKeyExpr
public final void simpleKeyExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
complexKeyExpr
public final void complexKeyExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
objectConstructionExpr
public final void objectConstructionExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
arrayExpr
public final void arrayExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
arrayConstructionExpr
public final void arrayConstructionExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
arraySliceExpr
public final void arraySliceExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
multiLevelUpExpr
public final void multiLevelUpExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
filterExpr
public final void filterExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
andExpr
public final void andExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
notExpr
public final void notExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
basicExpr
public final void basicExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
pathTypeCheckExpr
public final void pathTypeCheckExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
sizeFnExpr
public final void sizeFnExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
valueFnExpr
public final void valueFnExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
operator_to_value
public final void operator_to_value() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
non_string_value
public final void non_string_value() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
buildTokenTypeASTClassMap
protected void buildTokenTypeASTClassMap()
-