Class ExpressionParser
- java.lang.Object
-
- net.thisptr.jackson.jq.internal.javacc.ExpressionParser
-
- All Implemented Interfaces:
ExpressionParserConstants
public class ExpressionParser extends java.lang.Object implements ExpressionParserConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ExpressionParser.JJCalls
private static class
ExpressionParser.LookaheadSuccess
-
Field Summary
Fields Modifier and Type Field Description private ExpressionParser.JJCalls[]
jj_2_rtns
private int
jj_endpos
private java.util.List<int[]>
jj_expentries
private int[]
jj_expentry
private int
jj_gc
private int
jj_gen
(package private) SimpleCharStream
jj_input_stream
private int
jj_kind
private int
jj_la
private int[]
jj_la1
private static int[]
jj_la1_0
private static int[]
jj_la1_1
private static int[]
jj_la1_2
private Token
jj_lastpos
private int[]
jj_lasttokens
private static ExpressionParser.LookaheadSuccess
jj_ls
Token
jj_nt
Next token.private int
jj_ntk
private boolean
jj_rescan
private Token
jj_scanpos
Token
token
Current token.ExpressionParserTokenManager
token_source
Generated Token Manager.private boolean
trace_enabled
private Version
version
-
Fields inherited from interface net.thisptr.jackson.jq.internal.javacc.ExpressionParserConstants
ASSIGN_OP, ATSIGN, BOOLEAN_LITERAL_FALSE, BOOLEAN_LITERAL_TRUE, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PAR, CODEPOINT_CHAR, COLON, COMMA, COMMENT, COMP_EQUAL, COMP_GREATER, COMP_GREATER_EQUAL, COMP_LESS, COMP_LESS_EQUAL, COMP_NOT_EQUAL, DEFAULT, DEFAULT_EQUAL, DIGIT, DIVIDE, DIVIDE_EQUAL, DOLLAR, DOT, DOUBLE_COLON, ENDQUOTE, EOF, ESCAPE_CHAR, EXPONENT, FLOAT_LITERAL, IDENTIFIER, IDENTIFIER_AFTER_DOT, INTEGER_LITERAL, KEYWORD_AS, KEYWORD_BREAK, KEYWORD_CATCH, KEYWORD_DEF, KEYWORD_ELIF, KEYWORD_ELSE, KEYWORD_END, KEYWORD_FOREACH, KEYWORD_IF, KEYWORD_IMPORT, KEYWORD_INCLUDE, KEYWORD_LABEL, KEYWORD_MODULE, KEYWORD_REDUCE, KEYWORD_THEN, KEYWORD_TRY, LETTER, MINUS, MINUS_EQUAL, MODULO, MODULO_EQUAL, NULL_LITERAL, OP_AND, OP_DEFAULT, OP_OR, OPEN_BRACE, OPEN_BRACKET, OPEN_INTERP, OPEN_PAR, OTHERWISE_AFTER_DOT, PIPE, PLUS, PLUS_EQUAL, QUESTION, QUOTE, RECURSION, SEMICOLON, SPACES, STATE_DOT, STATE_STRING, STATE_STRING_ESCAPE, TIMES, TIMES_EQUAL, tokenImage, UPDATE_OP, VISIBLE_CHAR
-
-
Constructor Summary
Constructors Constructor Description ExpressionParser(java.io.InputStream stream)
Constructor with InputStream.ExpressionParser(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encodingExpressionParser(java.io.Reader stream)
Constructor.ExpressionParser(ExpressionParserTokenManager tm)
Constructor with generated Token Manager.
-
Method Summary
-
-
-
Field Detail
-
version
private Version version
-
token_source
public ExpressionParserTokenManager token_source
Generated Token Manager.
-
jj_input_stream
SimpleCharStream jj_input_stream
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
jj_ntk
private int jj_ntk
-
jj_scanpos
private Token jj_scanpos
-
jj_lastpos
private Token jj_lastpos
-
jj_la
private int jj_la
-
jj_gen
private int jj_gen
-
jj_la1
private final int[] jj_la1
-
jj_la1_0
private static int[] jj_la1_0
-
jj_la1_1
private static int[] jj_la1_1
-
jj_la1_2
private static int[] jj_la1_2
-
jj_2_rtns
private final ExpressionParser.JJCalls[] jj_2_rtns
-
jj_rescan
private boolean jj_rescan
-
jj_gc
private int jj_gc
-
jj_ls
private static final ExpressionParser.LookaheadSuccess jj_ls
-
jj_expentries
private java.util.List<int[]> jj_expentries
-
jj_expentry
private int[] jj_expentry
-
jj_kind
private int jj_kind
-
jj_lasttokens
private int[] jj_lasttokens
-
jj_endpos
private int jj_endpos
-
trace_enabled
private boolean trace_enabled
-
-
Constructor Detail
-
ExpressionParser
public ExpressionParser(java.io.InputStream stream)
Constructor with InputStream.
-
ExpressionParser
public ExpressionParser(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encoding
-
ExpressionParser
public ExpressionParser(java.io.Reader stream)
Constructor.
-
ExpressionParser
public ExpressionParser(ExpressionParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
compile
public static Expression compile(java.lang.String line, Version version) throws JsonQueryException
- Throws:
JsonQueryException
-
KeywordAsString
public final java.lang.String KeywordAsString() throws ParseException
- Throws:
ParseException
-
IdentifierAsString
public final java.lang.String IdentifierAsString() throws ParseException
- Throws:
ParseException
-
KeywordOrIdentifier
public final java.lang.String KeywordOrIdentifier() throws ParseException
- Throws:
ParseException
-
ModuleDirective
public final ModuleDirective ModuleDirective() throws ParseException
- Throws:
ParseException
-
ImportStatement
public final ImportStatement ImportStatement() throws ParseException
- Throws:
ParseException
-
IncludeStatement
public final ImportStatement IncludeStatement() throws ParseException
- Throws:
ParseException
-
Start
public final Expression Start() throws ParseException
- Throws:
ParseException
-
Expression
public final Expression Expression() throws ParseException
- Throws:
ParseException
-
JsonQueryWithoutComma
public final Expression JsonQueryWithoutComma() throws ParseException
- Throws:
ParseException
-
PipeComponent
public final PipeComponent PipeComponent() throws ParseException
- Throws:
ParseException
-
PipeComponentWithoutComma
public final PipeComponent PipeComponentWithoutComma() throws ParseException
- Throws:
ParseException
-
TupleExpression
public final Expression TupleExpression() throws ParseException
- Throws:
ParseException
-
BinaryOperatorExpression
public final Expression BinaryOperatorExpression() throws ParseException
- Throws:
ParseException
-
FunctionDefinition
public final Expression FunctionDefinition() throws ParseException
- Throws:
ParseException
-
FunctionDefinitionParam
public final java.lang.String FunctionDefinitionParam() throws ParseException
- Throws:
ParseException
-
PrimaryExpression
public final Expression PrimaryExpression() throws ParseException
- Throws:
ParseException
-
RecursionOperator
public final Expression RecursionOperator() throws ParseException
- Throws:
ParseException
-
FormattingFilter
public final Expression FormattingFilter() throws ParseException
- Throws:
ParseException
-
TryCatchExpression
public final Expression TryCatchExpression() throws ParseException
- Throws:
ParseException
-
BreakExpression
public final Expression BreakExpression() throws ParseException
- Throws:
ParseException
-
ForeachExpression
public final Expression ForeachExpression() throws ParseException
- Throws:
ParseException
-
ReduceExpression
public final Expression ReduceExpression() throws ParseException
- Throws:
ParseException
-
VariableAccess
public final Expression VariableAccess() throws ParseException
- Throws:
ParseException
-
ConditionalExpression
public final Expression ConditionalExpression() throws ParseException
- Throws:
ParseException
-
ObjectConstruction
public final Expression ObjectConstruction() throws ParseException
- Throws:
ParseException
-
ObjectField
public final void ObjectField(ObjectConstruction obj) throws ParseException
- Throws:
ParseException
-
ObjectFieldName
public final Expression ObjectFieldName() throws ParseException
- Throws:
ParseException
-
ObjectFieldValue
public final Expression ObjectFieldValue() throws ParseException
- Throws:
ParseException
-
ArrayConstruction
public final Expression ArrayConstruction() throws ParseException
- Throws:
ParseException
-
ValueLiteral
public final Expression ValueLiteral() throws ParseException
- Throws:
ParseException
-
FunctionCall
public final Expression FunctionCall() throws ParseException
- Throws:
ParseException
-
FieldAccessor
public final Expression FieldAccessor(Expression obj) throws ParseException
- Throws:
ParseException
-
ThisObjectAccess
public final Expression ThisObjectAccess() throws ParseException
- Throws:
ParseException
-
IdentifierFieldAccessor
public final Expression IdentifierFieldAccessor(Expression obj) throws ParseException
- Throws:
ParseException
-
StringFieldAccessor
public final Expression StringFieldAccessor(Expression obj) throws ParseException
- Throws:
ParseException
-
BracketFieldAccessor
public final Expression BracketFieldAccessor(Expression obj) throws ParseException
- Throws:
ParseException
-
StringInterpolation
public final Expression StringInterpolation() throws ParseException
- Throws:
ParseException
-
Matcher
public final PatternMatcher Matcher() throws ParseException
- Throws:
ParseException
-
ArrayMatcher
public final PatternMatcher ArrayMatcher() throws ParseException
- Throws:
ParseException
-
ObjectMatcher
public final PatternMatcher ObjectMatcher() throws ParseException
- Throws:
ParseException
-
ObjectMatcherField
public final ObjectMatcher.FieldMatcher ObjectMatcherField() throws ParseException
- Throws:
ParseException
-
ValueMatcher
public final PatternMatcher ValueMatcher() throws ParseException
- Throws:
ParseException
-
jj_2_1
private boolean jj_2_1(int xla)
-
jj_2_2
private boolean jj_2_2(int xla)
-
jj_2_3
private boolean jj_2_3(int xla)
-
jj_3R_PrimaryExpression_660_3_45
private boolean jj_3R_PrimaryExpression_660_3_45()
-
jj_3R_TupleExpression_469_2_32
private boolean jj_3R_TupleExpression_469_2_32()
-
jj_3R_PrimaryExpression_658_3_44
private boolean jj_3R_PrimaryExpression_658_3_44()
-
jj_3R_PrimaryExpression_656_3_43
private boolean jj_3R_PrimaryExpression_656_3_43()
-
jj_3R_StringInterpolation_1129_3_27
private boolean jj_3R_StringInterpolation_1129_3_27()
-
jj_3R_PrimaryExpression_654_3_42
private boolean jj_3R_PrimaryExpression_654_3_42()
-
jj_3R_ValueLiteral_938_3_69
private boolean jj_3R_ValueLiteral_938_3_69()
-
jj_3R_PrimaryExpression_652_3_41
private boolean jj_3R_PrimaryExpression_652_3_41()
-
jj_3R_Expression_367_2_28
private boolean jj_3R_Expression_367_2_28()
-
jj_3R_ValueLiteral_935_3_68
private boolean jj_3R_ValueLiteral_935_3_68()
-
jj_3R_ReduceExpression_744_2_56
private boolean jj_3R_ReduceExpression_744_2_56()
-
jj_3R_FunctionDefinition_554_2_47
private boolean jj_3R_FunctionDefinition_554_2_47()
-
jj_3R_PrimaryExpression_648_3_40
private boolean jj_3R_PrimaryExpression_648_3_40()
-
jj_3R_ValueLiteral_932_3_67
private boolean jj_3R_ValueLiteral_932_3_67()
-
jj_3R_StringInterpolation_1122_3_26
private boolean jj_3R_StringInterpolation_1122_3_26()
-
jj_3R_ValueLiteral_929_3_66
private boolean jj_3R_ValueLiteral_929_3_66()
-
jj_3R_ValueLiteral_926_3_65
private boolean jj_3R_ValueLiteral_926_3_65()
-
jj_3R_ValueLiteral_925_2_61
private boolean jj_3R_ValueLiteral_925_2_61()
-
jj_3R_PrimaryExpression_637_3_39
private boolean jj_3R_PrimaryExpression_637_3_39()
-
jj_3R_IdentifierAsString_252_2_20
private boolean jj_3R_IdentifierAsString_252_2_20()
-
jj_3R_PrimaryExpression_627_4_54
private boolean jj_3R_PrimaryExpression_627_4_54()
-
jj_3R_PrimaryExpression_625_4_53
private boolean jj_3R_PrimaryExpression_625_4_53()
-
jj_3R_StringInterpolation_1101_3_25
private boolean jj_3R_StringInterpolation_1101_3_25()
-
jj_3R_ForeachExpression_721_2_58
private boolean jj_3R_ForeachExpression_721_2_58()
-
jj_3R_PrimaryExpression_623_4_52
private boolean jj_3R_PrimaryExpression_623_4_52()
-
jj_3R_StringInterpolation_1098_3_24
private boolean jj_3R_StringInterpolation_1098_3_24()
-
jj_3R_StringInterpolation_1098_3_22
private boolean jj_3R_StringInterpolation_1098_3_22()
-
jj_3R_PrimaryExpression_621_4_51
private boolean jj_3R_PrimaryExpression_621_4_51()
-
jj_3R_ArrayConstruction_906_2_62
private boolean jj_3R_ArrayConstruction_906_2_62()
-
jj_3_1
private boolean jj_3_1()
-
jj_3R_StringInterpolation_1094_3_21
private boolean jj_3R_StringInterpolation_1094_3_21()
-
jj_3R_PipeComponent_428_3_31
private boolean jj_3R_PipeComponent_428_3_31()
-
jj_3R_ThisObjectAccess_998_2_48
private boolean jj_3R_ThisObjectAccess_998_2_48()
-
jj_3R_StringInterpolation_1093_2_19
private boolean jj_3R_StringInterpolation_1093_2_19()
-
jj_3R_PrimaryExpression_615_4_50
private boolean jj_3R_PrimaryExpression_615_4_50()
-
jj_3R_ObjectConstruction_806_2_63
private boolean jj_3R_ObjectConstruction_806_2_63()
-
jj_3R_PrimaryExpression_614_3_38
private boolean jj_3R_PrimaryExpression_614_3_38()
-
jj_3R_BreakExpression_709_2_60
private boolean jj_3R_BreakExpression_709_2_60()
-
jj_3R_PipeComponent_423_3_30
private boolean jj_3R_PipeComponent_423_3_30()
-
jj_3R_PipeComponent_422_2_29
private boolean jj_3R_PipeComponent_422_2_29()
-
jj_3R_PrimaryExpression_605_3_37
private boolean jj_3R_PrimaryExpression_605_3_37()
-
jj_3R_TryCatchExpression_695_2_59
private boolean jj_3R_TryCatchExpression_695_2_59()
-
jj_3R_PrimaryExpression_599_3_36
private boolean jj_3R_PrimaryExpression_599_3_36()
-
jj_3R_PrimaryExpression_595_3_35
private boolean jj_3R_PrimaryExpression_595_3_35()
-
jj_3R_PrimaryExpression_594_2_34
private boolean jj_3R_PrimaryExpression_594_2_34()
-
jj_3R_ConditionalExpression_781_2_55
private boolean jj_3R_ConditionalExpression_781_2_55()
-
jj_3R_FormattingFilter_685_2_23
private boolean jj_3R_FormattingFilter_685_2_23()
-
jj_3R_BinaryOperatorExpression_491_2_33
private boolean jj_3R_BinaryOperatorExpression_491_2_33()
-
jj_3R_RecursionOperator_676_2_57
private boolean jj_3R_RecursionOperator_676_2_57()
-
jj_3_2
private boolean jj_3_2()
-
jj_3_3
private boolean jj_3_3()
-
jj_3R_VariableAccess_763_2_49
private boolean jj_3R_VariableAccess_763_2_49()
-
jj_3R_FunctionCall_952_2_64
private boolean jj_3R_FunctionCall_952_2_64()
-
jj_3R_PrimaryExpression_662_3_46
private boolean jj_3R_PrimaryExpression_662_3_46()
-
jj_la1_init_0
private static void jj_la1_init_0()
-
jj_la1_init_1
private static void jj_la1_init_1()
-
jj_la1_init_2
private static void jj_la1_init_2()
-
ReInit
public void ReInit(java.io.InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
Reinitialise.
-
ReInit
public void ReInit(java.io.Reader stream)
Reinitialise.
-
ReInit
public void ReInit(ExpressionParserTokenManager tm)
Reinitialise.
-
jj_consume_token
private Token jj_consume_token(int kind) throws ParseException
- Throws:
ParseException
-
jj_scan_token
private boolean jj_scan_token(int kind)
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
jj_ntk_f
private int jj_ntk_f()
-
jj_add_error_token
private void jj_add_error_token(int kind, int pos)
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
trace_enabled
public final boolean trace_enabled()
Trace enabled.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
jj_rescan_token
private void jj_rescan_token()
-
jj_save
private void jj_save(int index, int xla)
-
-