Package ognl

Class OgnlParser

    • Field Detail

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

        private boolean jj_lookingAhead
        Whether we are looking ahead.
      • jj_semLA

        private boolean jj_semLA
      • 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_rescan

        private boolean jj_rescan
      • jj_gc

        private int jj_gc
      • jj_expentries

        private java.util.List 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
    • Constructor Detail

      • OgnlParser

        public OgnlParser​(java.io.InputStream stream)
        Constructor with InputStream.
        Parameters:
        stream - the InputStream to parse.
      • OgnlParser

        public OgnlParser​(java.io.InputStream stream,
                          java.lang.String encoding)
        Constructor with InputStream and supplied encoding
        Parameters:
        stream - the InputStream to parse.
        encoding - the encoding to use for the stream.
      • OgnlParser

        public OgnlParser​(java.io.Reader stream)
        Constructor.
        Parameters:
        stream - the Reader to parse.
      • OgnlParser

        public OgnlParser​(OgnlParserTokenManager tm)
        Constructor with generated Token Manager.
        Parameters:
        tm - the OgnParserTokenManager to use during parsing.
    • Method Detail

      • topLevelExpression

        public final Node topLevelExpression()
                                      throws ParseException
        This is the top-level construct of OGNL.
        Returns:
        the Node representing the top-level expression.
        Throws:
        ParseException - if the expression parsing fails.
      • projection

        public final void projection()
                              throws ParseException
        Apply an expression to all elements of a collection, creating a new collection as the result.
        Throws:
        ParseException - if the application of the projection expression fails.
      • selectAll

        public final void selectAll()
                             throws ParseException
        Apply a boolean expression to all elements of a collection, creating a new collection containing those elements for which the expression returned true.
        Throws:
        ParseException - if the application of the select all expression fails.
      • selectFirst

        public final void selectFirst()
                               throws ParseException
        Apply a boolean expression to all elements of a collection, creating a new collection containing those elements for the first element for which the expression returned true.
        Throws:
        ParseException - if the application of the select first expression fails.
      • selectLast

        public final void selectLast()
                              throws ParseException
        Apply a boolean expression to all elements of a collection, creating a new collection containing those elements for the last element for which the expression returned true.
        Throws:
        ParseException - if the application of the select last expression fails.
      • 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_2_4

        private boolean jj_2_4​(int xla)
      • jj_2_5

        private boolean jj_2_5​(int xla)
      • jj_2_6

        private boolean jj_2_6​(int xla)
      • jj_2_7

        private boolean jj_2_7​(int xla)
      • jj_2_8

        private boolean jj_2_8​(int xla)
      • jj_2_9

        private boolean jj_2_9​(int xla)
      • jj_2_10

        private boolean jj_2_10​(int xla)
      • jj_2_11

        private boolean jj_2_11​(int xla)
      • jj_2_12

        private boolean jj_2_12​(int xla)
      • jj_2_13

        private boolean jj_2_13​(int xla)
      • jj_2_14

        private boolean jj_2_14​(int xla)
      • jj_2_15

        private boolean jj_2_15​(int xla)
      • jj_2_16

        private boolean jj_2_16​(int xla)
      • jj_3R_56

        private boolean jj_3R_56()
      • jj_3R_55

        private boolean jj_3R_55()
      • jj_3R_54

        private boolean jj_3R_54()
      • jj_3R_31

        private boolean jj_3R_31()
      • jj_3_13

        private boolean jj_3_13()
      • jj_3R_53

        private boolean jj_3R_53()
      • jj_3R_26

        private boolean jj_3R_26()
      • jj_3R_52

        private boolean jj_3R_52()
      • jj_3R_42

        private boolean jj_3R_42()
      • jj_3_12

        private boolean jj_3_12()
      • jj_3_11

        private boolean jj_3_11()
      • jj_3R_67

        private boolean jj_3R_67()
      • jj_3_2

        private boolean jj_3_2()
      • jj_3R_66

        private boolean jj_3R_66()
      • jj_3R_64

        private boolean jj_3R_64()
      • jj_3_1

        private boolean jj_3_1()
      • jj_3R_23

        private boolean jj_3R_23()
      • jj_3R_41

        private boolean jj_3R_41()
      • jj_3R_30

        private boolean jj_3R_30()
      • jj_3R_32

        private boolean jj_3R_32()
      • jj_3R_51

        private boolean jj_3R_51()
      • jj_3R_29

        private boolean jj_3R_29()
      • jj_3R_40

        private boolean jj_3R_40()
      • jj_3R_33

        private boolean jj_3R_33()
      • jj_3R_63

        private boolean jj_3R_63()
      • jj_3R_28

        private boolean jj_3R_28()
      • jj_3R_50

        private boolean jj_3R_50()
      • jj_3R_39

        private boolean jj_3R_39()
      • jj_3_10

        private boolean jj_3_10()
      • jj_3R_24

        private boolean jj_3R_24()
      • jj_3R_49

        private boolean jj_3R_49()
      • jj_3R_48

        private boolean jj_3R_48()
      • jj_3_16

        private boolean jj_3_16()
      • jj_3R_47

        private boolean jj_3R_47()
      • jj_3_15

        private boolean jj_3_15()
      • jj_3R_38

        private boolean jj_3R_38()
      • jj_3R_46

        private boolean jj_3R_46()
      • jj_3_14

        private boolean jj_3_14()
      • jj_3R_62

        private boolean jj_3R_62()
      • jj_3R_45

        private boolean jj_3R_45()
      • jj_3R_37

        private boolean jj_3R_37()
      • jj_3R_22

        private boolean jj_3R_22()
      • jj_3_9

        private boolean jj_3_9()
      • jj_3R_36

        private boolean jj_3R_36()
      • jj_3R_61

        private boolean jj_3R_61()
      • jj_3R_60

        private boolean jj_3R_60()
      • jj_3R_59

        private boolean jj_3R_59()
      • jj_3_3

        private boolean jj_3_3()
      • jj_3R_21

        private boolean jj_3R_21()
      • jj_3R_58

        private boolean jj_3R_58()
      • jj_3R_35

        private boolean jj_3R_35()
      • jj_3R_44

        private boolean jj_3R_44()
      • jj_3_8

        private boolean jj_3_8()
      • jj_3R_57

        private boolean jj_3R_57()
      • jj_3R_34

        private boolean jj_3R_34()
      • jj_3_7

        private boolean jj_3_7()
      • jj_3R_25

        private boolean jj_3R_25()
      • jj_3_6

        private boolean jj_3_6()
      • jj_3_5

        private boolean jj_3_5()
      • jj_3R_27

        private boolean jj_3R_27()
      • jj_3_4

        private boolean jj_3_4()
      • jj_3R_65

        private boolean jj_3R_65()
      • jj_3R_43

        private boolean jj_3R_43()
      • 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.
        Parameters:
        stream - the InputStream to parse.
      • ReInit

        public void ReInit​(java.io.InputStream stream,
                           java.lang.String encoding)
        Reinitialise.
        Parameters:
        stream - the InputStream to parse.
        encoding - the encoding to use for the stream.
      • ReInit

        public void ReInit​(java.io.Reader stream)
        Reinitialise.
        Parameters:
        stream - the Reader to parse.
      • ReInit

        public void ReInit​(OgnlParserTokenManager tm)
        Reinitialise.
        Parameters:
        tm - the OgnParserTokenManager to use during parsing.
      • jj_scan_token

        private boolean jj_scan_token​(int kind)
      • getNextToken

        public final Token getNextToken()
        Get the next Token.
        Returns:
        the next Token result from parsing.
      • getToken

        public final Token getToken​(int index)
        Get the specific Token.
        Parameters:
        index - specifies how far to scan ahead for the Token.
        Returns:
        the Token at the given index.
      • jj_ntk

        private int jj_ntk()
      • jj_add_error_token

        private void jj_add_error_token​(int kind,
                                        int pos)
      • generateParseException

        public ParseException generateParseException()
        Generate ParseException.
        Returns:
        a ParseException with information about current token parsing state.
      • 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)