Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.jexl2.parser
Class Parser

    java.lang.Object
      org.apache.commons.jexl2.parser.StringParser
          org.apache.commons.jexl2.parser.Parser

All Implemented Interfaces:
  ParserConstants, ParserTreeConstants

    public class Parser

extends StringParser
implements ParserTreeConstants, ParserConstants

Field Summary
`Token` | `jj_nt` Next token.
`protected JJTParserState` | `jjtree`
`Token` | `token` Current token.
`ParserTokenManager` | `token_source` Generated Token Manager.

Fields inherited from interface org.apache.commons.jexl2.parser.ParserTreeConstants
`JJTADDITIVENODE, JJTADDITIVEOPERATOR, JJTAMBIGUOUS, JJTANDNODE, JJTARRAYACCESS, JJTARRAYLITERAL, JJTASSIGNMENT, JJTBITWISEANDNODE, JJTBITWISECOMPLNODE, JJTBITWISEORNODE, JJTBITWISEXORNODE, JJTBLOCK, JJTCONSTRUCTORNODE, JJTDIVNODE, JJTEMPTYFUNCTION, JJTEQNODE, JJTERNODE, JJTFALSENODE, JJTFLOATLITERAL, JJTFOREACHSTATEMENT, JJTFUNCTIONNODE, JJTGENODE, JJTGTNODE, JJTIDENTIFIER, JJTIFSTATEMENT, JJTINTEGERLITERAL, JJTJEXLSCRIPT, JJTLENODE, JJTLTNODE, JJTMAPENTRY, JJTMAPLITERAL, JJTMETHODNODE, JJTMODNODE, JJTMULNODE, JJTNENODE, jjtNodeName, JJTNOTNODE, JJTNRNODE, JJTNULLLITERAL, JJTORNODE, JJTREFERENCE, JJTSIZEFUNCTION, JJTSIZEMETHOD, JJTSTRINGLITERAL, JJTTERNARYNODE, JJTTRUENODE, JJTUNARYMINUSNODE, JJTVOID, JJTWHILESTATEMENT`

Fields inherited from interface org.apache.commons.jexl2.parser.ParserConstants
`COLON, COMMA, DEFAULT, DIGIT, ELSE, EMPTY, EOF, FALSE, FLOAT_LITERAL, FOR, FOR_EACH_IN, FOREACH, IDENTIFIER, IF, IN, INTEGER_LITERAL, LBRACKET, LCURLY, LETTER, LPAREN, NEW, NULL, RBRACKET, RCURLY, RPAREN, SEMICOL, SIZE, STRING_LITERAL, tokenImage, TRUE, WHILE`

Constructor Summary
`Parser(InputStream stream)` Constructor with InputStream.
`Parser(InputStream stream, String encoding)` Constructor with InputStream and supplied encoding
`Parser(ParserTokenManager tm)` Constructor with generated Token Manager.
`Parser(Reader stream)` Constructor.

Method Summary
`void` | `AdditiveExpression()` Arithmetic
`void` | `AdditiveOperator()`
`void` | `AndExpression()`
`void` | `AnyMethod()`
`void` | `ArrayAccess()`
`void` | `ArrayLiteral()`
`void` | `Assignment()`
`void` | `Block()`
`void` | `BooleanLiteral()`
`void` | `ConditionalAndExpression()`
`void` | `ConditionalExpression()` Conditional & relational
`void` | `ConditionalOrExpression()`
`void` | `Constructor()`
`void` | `disable_tracing()` Disable tracing.
`void` | `DotReference()`
`void` | `EmptyFunction()` Functions & Methods
`void` | `enable_tracing()` Enable tracing.
`void` | `EqualityExpression()`
`void` | `ExclusiveOrExpression()`
`void` | `Expression()` Expression syntax
`void` | `ExpressionStatement()`
`void` | `FloatLiteral()`
`void` | `ForeachStatement()`
`void` | `Function()`
`ParseException` | `generateParseException()` Generate ParseException.
`Token` | `getNextToken()` Get the next Token.
`Token` | `getToken(int index)` Get the specific Token.
`void` | `Identifier()` Identifier & Literals
`void` | `IfStatement()`
`void` | `InclusiveOrExpression()`
`void` | `IntegerLiteral()`
`ASTJexlScript` | `JexlScript()` Statements
`void` | `Literal()`
`void` | `MapEntry()`
`void` | `MapLiteral()`
`void` | `Method()`
`void` | `MultiplicativeExpression()`
`void` | `NullLiteral()`
`ASTJexlScript` | `parse(Reader reader, JexlInfo info)`
`void` | `PrimaryExpression()` References
`void` | `Reference()`
`void` | `ReInit(InputStream stream)` Reinitialise.
`void` | `ReInit(InputStream stream, String encoding)` Reinitialise.
`void` | `ReInit(ParserTokenManager tm)` Reinitialise.
`void` | `ReInit(Reader stream)` Reinitialise.
`void` | `RelationalExpression()`
`void` | `SizeFunction()`
`void` | `SizeMethod()`
`void` | `Statement()`
`void` | `StringLiteral()`
`void` | `UnaryExpression()`
`void` | `WhileStatement()`

Methods inherited from class org.apache.commons.jexl2.parser.StringParser
`buildString, escapeString, readString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### jjtree

    protected JJTParserState jjtree

### token_source

    public ParserTokenManager token_source

  Generated Token Manager.

### token

    public Token token

  Current token.

### jj_nt

    public Token jj_nt

  Next token.

Constructor Detail

### Parser

    public Parser(InputStream stream)

  Constructor with InputStream.

### Parser

    public Parser(InputStream stream,
                  String encoding)

  Constructor with InputStream and supplied encoding

### Parser

    public Parser(Reader stream)

  Constructor.

### Parser

    public Parser(ParserTokenManager tm)

  Constructor with generated Token Manager.

Method Detail

### parse

    public ASTJexlScript parse(Reader reader,
                               JexlInfo info)
                        throws ParseException

  Throws:
    `ParseException`

### JexlScript

    public final ASTJexlScript JexlScript()
                                   throws ParseException

  Statements

  Throws:
    `ParseException`

### Statement

    public final void Statement()
                         throws ParseException

  Throws:
    `ParseException`

### Block

    public final void Block()
                     throws ParseException

  Throws:
    `ParseException`

### ExpressionStatement

    public final void ExpressionStatement()
                                   throws ParseException

  Throws:
    `ParseException`

### IfStatement

    public final void IfStatement()
                           throws ParseException

  Throws:
    `ParseException`

### WhileStatement

    public final void WhileStatement()
                              throws ParseException

  Throws:
    `ParseException`

### ForeachStatement

    public final void ForeachStatement()
                                throws ParseException

  Throws:
    `ParseException`

### Expression

    public final void Expression()
                          throws ParseException

  Expression syntax

  Throws:
    `ParseException`

### Assignment

    public final void Assignment()
                          throws ParseException

  Throws:
    `ParseException`

### ConditionalExpression

    public final void ConditionalExpression()
                                     throws ParseException

  Conditional & relational

  Throws:
    `ParseException`

### ConditionalOrExpression

    public final void ConditionalOrExpression()
                                       throws ParseException

  Throws:
    `ParseException`

### ConditionalAndExpression

    public final void ConditionalAndExpression()
                                        throws ParseException

  Throws:
    `ParseException`

### InclusiveOrExpression

    public final void InclusiveOrExpression()
                                     throws ParseException

  Throws:
    `ParseException`

### ExclusiveOrExpression

    public final void ExclusiveOrExpression()
                                     throws ParseException

  Throws:
    `ParseException`

### AndExpression

    public final void AndExpression()
                             throws ParseException

  Throws:
    `ParseException`

### EqualityExpression

    public final void EqualityExpression()
                                  throws ParseException

  Throws:
    `ParseException`

### RelationalExpression

    public final void RelationalExpression()
                                    throws ParseException

  Throws:
    `ParseException`

### AdditiveExpression

    public final void AdditiveExpression()
                                  throws ParseException

  Arithmetic

  Throws:
    `ParseException`

### AdditiveOperator

    public final void AdditiveOperator()
                                throws ParseException

  Throws:
    `ParseException`

### MultiplicativeExpression

    public final void MultiplicativeExpression()
                                        throws ParseException

  Throws:
    `ParseException`

### UnaryExpression

    public final void UnaryExpression()
                               throws ParseException

  Throws:
    `ParseException`

### Identifier

    public final void Identifier()
                          throws ParseException

  Identifier & Literals

  Throws:
    `ParseException`

### Literal

    public final void Literal()
                       throws ParseException

  Throws:
    `ParseException`

### NullLiteral

    public final void NullLiteral()
                           throws ParseException

  Throws:
    `ParseException`

### BooleanLiteral

    public final void BooleanLiteral()
                              throws ParseException

  Throws:
    `ParseException`

### IntegerLiteral

    public final void IntegerLiteral()
                              throws ParseException

  Throws:
    `ParseException`

### FloatLiteral

    public final void FloatLiteral()
                            throws ParseException

  Throws:
    `ParseException`

### StringLiteral

    public final void StringLiteral()
                             throws ParseException

  Throws:
    `ParseException`

### ArrayLiteral

    public final void ArrayLiteral()
                            throws ParseException

  Throws:
    `ParseException`

### MapLiteral

    public final void MapLiteral()
                          throws ParseException

  Throws:
    `ParseException`

### MapEntry

    public final void MapEntry()
                        throws ParseException

  Throws:
    `ParseException`

### EmptyFunction

    public final void EmptyFunction()
                             throws ParseException

  Functions & Methods

  Throws:
    `ParseException`

### SizeFunction

    public final void SizeFunction()
                            throws ParseException

  Throws:
    `ParseException`

### Function

    public final void Function()
                        throws ParseException

  Throws:
    `ParseException`

### Method

    public final void Method()
                      throws ParseException

  Throws:
    `ParseException`

### AnyMethod

    public final void AnyMethod()
                         throws ParseException

  Throws:
    `ParseException`

### SizeMethod

    public final void SizeMethod()
                          throws ParseException

  Throws:
    `ParseException`

### Constructor

    public final void Constructor()
                           throws ParseException

  Throws:
    `ParseException`

### PrimaryExpression

    public final void PrimaryExpression()
                                 throws ParseException

  References

  Throws:
    `ParseException`

### ArrayAccess

    public final void ArrayAccess()
                           throws ParseException

  Throws:
    `ParseException`

### DotReference

    public final void DotReference()
                            throws ParseException

  Throws:
    `ParseException`

### Reference

    public final void Reference()
                         throws ParseException

  Throws:
    `ParseException`

### 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(ParserTokenManager tm)

  Reinitialise.

### getNextToken

    public final Token getNextToken()

  Get the next Token.

### getToken

    public final Token getToken(int index)

  Get the specific Token.

### generateParseException

    public ParseException generateParseException()

  Generate ParseException.

### enable_tracing

    public final void enable_tracing()

  Enable tracing.

### disable_tracing

    public final void disable_tracing()

  Disable tracing.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.