Class JsltParser
- java.lang.Object
-
- com.schibsted.spt.data.jslt.parser.JsltParser
-
- All Implemented Interfaces:
JsltParserConstants
,JsltParserTreeConstants
public class JsltParser extends java.lang.Object implements JsltParserTreeConstants, JsltParserConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
JsltParser.JJCalls
private static class
JsltParser.LookaheadSuccess
-
Field Summary
Fields Modifier and Type Field Description private JsltParser.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 Token
jj_lastpos
private int[]
jj_lasttokens
private static JsltParser.LookaheadSuccess
jj_ls
Token
jj_nt
Next token.private int
jj_ntk
private boolean
jj_rescan
private Token
jj_scanpos
protected JJTJsltParserState
jjtree
Token
token
Current token.JsltParserTokenManager
token_source
Generated Token Manager.private boolean
trace_enabled
-
Fields 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, VARIABLE
-
Fields 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
Constructors Constructor Description JsltParser(JsltParserTokenManager tm)
Constructor with generated Token Manager.JsltParser(java.io.InputStream stream)
Constructor with InputStream.JsltParser(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encodingJsltParser(java.io.Reader stream)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AdditiveExpr()
void
AdditiveOperator()
void
AndExpr()
void
Array()
void
ArrayElem()
void
ArraySlicing()
void
BaseExpr()
void
Chainable()
void
ChainLink()
void
Colon()
void
ComparativeExpr()
void
Comparator()
void
disable_tracing()
Disable tracing.void
DotKey()
void
ElseBranch()
void
enable_tracing()
Enable tracing.void
Expr()
void
FunctionCall()
void
FunctionDecl()
ParseException
generateParseException()
Generate ParseException.Token
getNextToken()
Get the next Token.Token
getToken(int index)
Get the specific Token.void
IfStatement()
void
Import()
private boolean
jj_2_1(int xla)
private boolean
jj_2_2(int xla)
private boolean
jj_3_1()
private boolean
jj_3_2()
private boolean
jj_3R_AdditiveExpr_148_3_29()
private boolean
jj_3R_AndExpr_121_3_27()
private boolean
jj_3R_Array_231_3_40()
private boolean
jj_3R_BaseExpr_174_3_31()
private boolean
jj_3R_BaseExpr_176_18_33()
private boolean
jj_3R_BaseExpr_176_34_34()
private boolean
jj_3R_BaseExpr_176_4_32()
private boolean
jj_3R_BaseExpr_177_4_35()
private boolean
jj_3R_BaseExpr_178_30_41()
private boolean
jj_3R_BaseExpr_178_4_36()
private boolean
jj_3R_Chainable_185_3_37()
private boolean
jj_3R_Chainable_185_34_43()
private boolean
jj_3R_Chainable_185_4_42()
private boolean
jj_3R_ComparativeExpr_127_3_28()
private boolean
jj_3R_Expr_109_5_25()
private boolean
jj_3R_FunctionCall_300_3_45()
private boolean
jj_3R_IfStatement_282_3_39()
private boolean
jj_3R_Let_306_3_20()
private boolean
jj_3R_Matcher_252_3_24()
private boolean
jj_3R_MultiplicativeExpr_161_3_30()
private boolean
jj_3R_Object_243_3_17()
private boolean
jj_3R_Object_244_6_18()
private boolean
jj_3R_Object_245_15_22()
private boolean
jj_3R_Object_245_6_19()
private boolean
jj_3R_Object_245_6_21()
private boolean
jj_3R_ObjectComprehension_271_3_44()
private boolean
jj_3R_OrExpr_115_3_26()
private boolean
jj_3R_Pair_264_3_23()
private boolean
jj_3R_Parenthesis_199_3_38()
private void
jj_add_error_token(int kind, int pos)
private Token
jj_consume_token(int kind)
private static void
jj_la1_init_0()
private static void
jj_la1_init_1()
private int
jj_ntk_f()
private void
jj_rescan_token()
private void
jj_save(int index, int xla)
private boolean
jj_scan_token(int kind)
void
Let()
void
Matcher()
void
MatcherMinus()
void
Module()
Root production for module filesvoid
MultiplicativeExpr()
void
MultiplicativeOperator()
void
Object()
void
ObjectComprehension()
void
OrExpr()
void
Pair()
void
Parenthesis()
void
PipeOperator()
void
ReInit(JsltParserTokenManager tm)
Reinitialise.void
ReInit(java.io.InputStream stream)
Reinitialise.void
ReInit(java.io.InputStream stream, java.lang.String encoding)
Reinitialise.void
ReInit(java.io.Reader stream)
Reinitialise.void
Start()
Root production.boolean
trace_enabled()
Trace enabled.
-
-
-
Field Detail
-
jjtree
protected JJTJsltParserState jjtree
-
token_source
public JsltParserTokenManager 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_2_rtns
private final JsltParser.JJCalls[] jj_2_rtns
-
jj_rescan
private boolean jj_rescan
-
jj_gc
private int jj_gc
-
jj_ls
private static final JsltParser.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
-
JsltParser
public JsltParser(java.io.InputStream stream)
Constructor with InputStream.
-
JsltParser
public JsltParser(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encoding
-
JsltParser
public JsltParser(java.io.Reader stream)
Constructor.
-
JsltParser
public JsltParser(JsltParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
Start
public final void Start() throws ParseException
Root production.- Throws:
ParseException
-
Module
public final void Module() throws ParseException
Root production for module files- Throws:
ParseException
-
Expr
public final void Expr() throws ParseException
- Throws:
ParseException
-
OrExpr
public final void OrExpr() throws ParseException
- Throws:
ParseException
-
AndExpr
public final void AndExpr() throws ParseException
- Throws:
ParseException
-
ComparativeExpr
public final void ComparativeExpr() throws ParseException
- Throws:
ParseException
-
Comparator
public final void Comparator() throws ParseException
- Throws:
ParseException
-
PipeOperator
public final void PipeOperator() throws ParseException
- Throws:
ParseException
-
AdditiveExpr
public final void AdditiveExpr() throws ParseException
- Throws:
ParseException
-
AdditiveOperator
public final void AdditiveOperator() throws ParseException
- Throws:
ParseException
-
MultiplicativeExpr
public final void MultiplicativeExpr() throws ParseException
- Throws:
ParseException
-
MultiplicativeOperator
public final void MultiplicativeOperator() throws ParseException
- Throws:
ParseException
-
BaseExpr
public final void BaseExpr() throws ParseException
- Throws:
ParseException
-
Chainable
public final void Chainable() throws ParseException
- Throws:
ParseException
-
ChainLink
public final void ChainLink() throws ParseException
- Throws:
ParseException
-
Parenthesis
public final void Parenthesis() throws ParseException
- Throws:
ParseException
-
DotKey
public final void DotKey() throws ParseException
- Throws:
ParseException
-
ArraySlicing
public final void ArraySlicing() throws ParseException
- Throws:
ParseException
-
Colon
public final void Colon() throws ParseException
- Throws:
ParseException
-
ArrayElem
public final void ArrayElem() throws ParseException
- Throws:
ParseException
-
Array
public final void Array() throws ParseException
- Throws:
ParseException
-
Object
public final void Object() throws ParseException
- Throws:
ParseException
-
Matcher
public final void Matcher() throws ParseException
- Throws:
ParseException
-
MatcherMinus
public final void MatcherMinus() throws ParseException
- Throws:
ParseException
-
Pair
public final void Pair() throws ParseException
- Throws:
ParseException
-
ObjectComprehension
public final void ObjectComprehension() throws ParseException
- Throws:
ParseException
-
IfStatement
public final void IfStatement() throws ParseException
- Throws:
ParseException
-
ElseBranch
public final void ElseBranch() throws ParseException
- Throws:
ParseException
-
FunctionCall
public final void FunctionCall() throws ParseException
- Throws:
ParseException
-
Let
public final void Let() throws ParseException
- Throws:
ParseException
-
FunctionDecl
public final void FunctionDecl() throws ParseException
- Throws:
ParseException
-
Import
public final void Import() 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_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
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(JsltParserTokenManager 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)
-
-