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
public class JsonQueryParser extends antlr.LLkParser implements JsonQueryParserTokenTypes
- Author:
- Narcis Marcu (narcism@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
_tokenNames
static antlr.collections.impl.BitSet
_tokenSet_0
static antlr.collections.impl.BitSet
_tokenSet_1
static antlr.collections.impl.BitSet
_tokenSet_2
-
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
Constructors Modifier Constructor Description JsonQueryParser(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
andExpr()
void
arrayConstructionExpr()
void
arrayExpr()
void
arraySliceExpr()
void
basicExpr()
protected void
buildTokenTypeASTClassMap()
void
complexKeyExpr()
void
filterExpr()
void
filterExprMain()
void
filterNaviExpr()
void
memberExpr()
void
multiLevelUpExpr()
void
non_string_value()
void
notExpr()
void
objectConstructionExpr()
void
operator_to_value()
void
pathExpr()
void
pathNaviExpr()
void
pathTypeCheckExpr()
void
simpleKeyExpr()
void
sizeFnExpr()
void
valueFnExpr()
-
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 Detail
-
_tokenNames
public static final String[] _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 Detail
-
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)
-
JsonQueryParser
public JsonQueryParser(antlr.ParserSharedInputState state)
-
-
Method Detail
-
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
-
pathNaviExpr
public final void pathNaviExpr() 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
-
filterNaviExpr
public final void filterNaviExpr() 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()
-
-