Class JsltParser
java.lang.Object
com.schibsted.spt.data.jslt.parser.JsltParser
- All Implemented Interfaces:
JsltParserConstants,JsltParserTreeConstants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JsltParser.JJCalls[]private intprivate List<int[]> private int[]private intprivate int(package private) SimpleCharStreamprivate intprivate intprivate final int[]private static int[]private static int[]private Tokenprivate int[]private static final JsltParser.LookaheadSuccessNext token.private intprivate booleanprivate Tokenprotected JJTJsltParserStateCurrent token.Generated Token Manager.private booleanFields inherited from interface com.schibsted.spt.data.jslt.parser.JsltParserConstants
AND, AS, ASSIGN, BIGGER, BIGOREQ, COLON, COMMA, DECIMAL, DEF, DEFAULT, DOT, ELSE, EOF, EQUALS, FALSE, FOR, IDENT, IF, IMPORT, INTEGER, LBRACKET, LCURLY, LET, LPAREN, MINUS, NULL, OR, PIDENT, PIPE, PLUS, RBRACKET, RCURLY, RPAREN, SINGLE_LINE_COMMENT, SLASH, SMALLER, SMALLOREQ, STAR, STRING, tokenImage, TRUE, UNEQUALS, VARIABLEFields inherited from interface com.schibsted.spt.data.jslt.parser.JsltParserTreeConstants
JJTADDITIVEEXPR, JJTADDITIVEOPERATOR, JJTANDEXPR, JJTARRAY, JJTARRAYSLICING, JJTBASEEXPR, JJTCHAINABLE, JJTCHAINLINK, JJTCOLON, JJTCOMPARATIVEEXPR, JJTCOMPARATOR, JJTDOTKEY, JJTELSEBRANCH, JJTEXPR, JJTFUNCTIONCALL, JJTFUNCTIONDECL, JJTIFSTATEMENT, JJTIMPORT, JJTLET, JJTMATCHER, JJTMATCHERMINUS, JJTMODULE, JJTMULTIPLICATIVEEXPR, JJTMULTIPLICATIVEOPERATOR, jjtNodeName, JJTOBJECT, JJTOBJECTCOMPREHENSION, JJTOREXPR, JJTPAIR, JJTPARENTHESIS, JJTPIPEOPERATOR, JJTSTART, JJTVOID -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with generated Token Manager.JsltParser(InputStream stream) Constructor with InputStream.JsltParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingJsltParser(Reader stream) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidfinal voidAndExpr()final voidArray()final voidfinal voidfinal voidBaseExpr()final voidfinal voidfinal voidColon()final voidfinal voidfinal voidDisable tracing.final voidDotKey()final voidfinal voidEnable tracing.final voidExpr()final voidfinal voidGenerate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final voidfinal voidImport()private booleanjj_2_1(int xla) private booleanjj_2_2(int xla) private booleanjj_3_1()private booleanjj_3_2()private booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate voidjj_add_error_token(int kind, int pos) private Tokenjj_consume_token(int kind) private static voidprivate static voidprivate intjj_ntk_f()private voidprivate voidjj_save(int index, int xla) private booleanjj_scan_token(int kind) final voidLet()final voidMatcher()final voidfinal voidModule()Root production for module filesfinal voidfinal voidfinal voidObject()final voidfinal voidOrExpr()final voidPair()final voidfinal voidvoidReinitialise.voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.final voidStart()Root production.final booleanTrace enabled.
-
Field Details
-
jjtree
-
token_source
Generated Token Manager. -
jj_input_stream
SimpleCharStream jj_input_stream -
token
Current token. -
jj_nt
Next token. -
jj_ntk
private int jj_ntk -
jj_scanpos
-
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_2_rtns
-
jj_rescan
private boolean jj_rescan -
jj_gc
private int jj_gc -
jj_ls
-
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 Details
-
JsltParser
Constructor with InputStream. -
JsltParser
Constructor with InputStream and supplied encoding -
JsltParser
Constructor. -
JsltParser
Constructor with generated Token Manager.
-
-
Method Details
-
Start
Root production.- Throws:
ParseException
-
Module
Root production for module files- Throws:
ParseException
-
Expr
- Throws:
ParseException
-
OrExpr
- Throws:
ParseException
-
AndExpr
- Throws:
ParseException
-
ComparativeExpr
- Throws:
ParseException
-
Comparator
- Throws:
ParseException
-
PipeOperator
- Throws:
ParseException
-
AdditiveExpr
- Throws:
ParseException
-
AdditiveOperator
- Throws:
ParseException
-
MultiplicativeExpr
- Throws:
ParseException
-
MultiplicativeOperator
- Throws:
ParseException
-
BaseExpr
- Throws:
ParseException
-
Chainable
- Throws:
ParseException
-
ChainLink
- Throws:
ParseException
-
Parenthesis
- Throws:
ParseException
-
DotKey
- Throws:
ParseException
-
ArraySlicing
- Throws:
ParseException
-
Colon
- Throws:
ParseException
-
ArrayElem
- Throws:
ParseException
-
Array
- Throws:
ParseException
-
Object
- Throws:
ParseException
-
Matcher
- Throws:
ParseException
-
MatcherMinus
- Throws:
ParseException
-
Pair
- Throws:
ParseException
-
ObjectComprehension
- Throws:
ParseException
-
IfStatement
- Throws:
ParseException
-
ElseBranch
- Throws:
ParseException
-
FunctionCall
- Throws:
ParseException
-
Let
- Throws:
ParseException
-
FunctionDecl
- Throws:
ParseException
-
Import
- Throws:
ParseException
-
jj_2_1
private boolean jj_2_1(int xla) -
jj_2_2
private boolean jj_2_2(int xla) -
jj_3R_Array_231_3_40
private boolean jj_3R_Array_231_3_40() -
jj_3_1
private boolean jj_3_1() -
jj_3R_BaseExpr_178_4_36
private boolean jj_3R_BaseExpr_178_4_36() -
jj_3R_BaseExpr_177_4_35
private boolean jj_3R_BaseExpr_177_4_35() -
jj_3R_ObjectComprehension_271_3_44
private boolean jj_3R_ObjectComprehension_271_3_44() -
jj_3R_BaseExpr_176_4_32
private boolean jj_3R_BaseExpr_176_4_32() -
jj_3_2
private boolean jj_3_2() -
jj_3R_ComparativeExpr_127_3_28
private boolean jj_3R_ComparativeExpr_127_3_28() -
jj_3R_BaseExpr_174_3_31
private boolean jj_3R_BaseExpr_174_3_31() -
jj_3R_Pair_264_3_23
private boolean jj_3R_Pair_264_3_23() -
jj_3R_Chainable_185_34_43
private boolean jj_3R_Chainable_185_34_43() -
jj_3R_AndExpr_121_3_27
private boolean jj_3R_AndExpr_121_3_27() -
jj_3R_Let_306_3_20
private boolean jj_3R_Let_306_3_20() -
jj_3R_Object_245_15_22
private boolean jj_3R_Object_245_15_22() -
jj_3R_OrExpr_115_3_26
private boolean jj_3R_OrExpr_115_3_26() -
jj_3R_MultiplicativeExpr_161_3_30
private boolean jj_3R_MultiplicativeExpr_161_3_30() -
jj_3R_BaseExpr_176_34_34
private boolean jj_3R_BaseExpr_176_34_34() -
jj_3R_FunctionCall_300_3_45
private boolean jj_3R_FunctionCall_300_3_45() -
jj_3R_BaseExpr_178_30_41
private boolean jj_3R_BaseExpr_178_30_41() -
jj_3R_Matcher_252_3_24
private boolean jj_3R_Matcher_252_3_24() -
jj_3R_Expr_109_5_25
private boolean jj_3R_Expr_109_5_25() -
jj_3R_Object_245_6_21
private boolean jj_3R_Object_245_6_21() -
jj_3R_Object_245_6_19
private boolean jj_3R_Object_245_6_19() -
jj_3R_Object_244_6_18
private boolean jj_3R_Object_244_6_18() -
jj_3R_Parenthesis_199_3_38
private boolean jj_3R_Parenthesis_199_3_38() -
jj_3R_Object_243_3_17
private boolean jj_3R_Object_243_3_17() -
jj_3R_AdditiveExpr_148_3_29
private boolean jj_3R_AdditiveExpr_148_3_29() -
jj_3R_BaseExpr_176_18_33
private boolean jj_3R_BaseExpr_176_18_33() -
jj_3R_IfStatement_282_3_39
private boolean jj_3R_IfStatement_282_3_39() -
jj_3R_Chainable_185_4_42
private boolean jj_3R_Chainable_185_4_42() -
jj_3R_Chainable_185_3_37
private boolean jj_3R_Chainable_185_3_37() -
jj_la1_init_0
private static void jj_la1_init_0() -
jj_la1_init_1
private static void jj_la1_init_1() -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
jj_consume_token
- Throws:
ParseException
-
jj_scan_token
private boolean jj_scan_token(int kind) -
getNextToken
Get the next Token. -
getToken
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
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)
-