Class JsltParser

java.lang.Object
com.schibsted.spt.data.jslt.parser.JsltParser
All Implemented Interfaces:
JsltParserConstants, JsltParserTreeConstants

public class JsltParser extends Object implements JsltParserTreeConstants, JsltParserConstants
  • Field Details

    • 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 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 Details

    • JsltParser

      public JsltParser(InputStream stream)
      Constructor with InputStream.
    • JsltParser

      public JsltParser(InputStream stream, String encoding)
      Constructor with InputStream and supplied encoding
    • JsltParser

      public JsltParser(Reader stream)
      Constructor.
    • JsltParser

      public JsltParser(JsltParserTokenManager tm)
      Constructor with generated Token Manager.
  • Method Details

    • 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(InputStream stream)
      Reinitialise.
    • ReInit

      public void ReInit(InputStream stream, String encoding)
      Reinitialise.
    • ReInit

      public void ReInit(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)