org.apache.commons.jexl.parser
Class Parser

java.lang.Object
  extended by org.apache.commons.jexl.parser.Parser
All Implemented Interfaces:
ParserConstants, ParserTreeConstants

public class Parser
extends java.lang.Object
implements ParserTreeConstants, ParserConstants


Field Summary
 Token jj_nt
           
protected  org.apache.commons.jexl.parser.JJTParserState jjtree
           
 boolean lookingAhead
           
 Token token
           
 ParserTokenManager token_source
           
 
Fields inherited from interface org.apache.commons.jexl.parser.ParserTreeConstants
JJTADDNODE, JJTANDNODE, JJTARRAYACCESS, JJTASSIGNMENT, JJTBITWISEANDNODE, JJTBITWISECOMPLNODE, JJTBITWISEORNODE, JJTBITWISEXORNODE, JJTBLOCK, JJTDIVNODE, JJTEMPTYFUNCTION, JJTEQNODE, JJTEXPRESSION, JJTEXPRESSIONEXPRESSION, JJTFALSENODE, JJTFLOATLITERAL, JJTFOREACHSTATEMENT, JJTGENODE, JJTGTNODE, JJTIDENTIFIER, JJTIFSTATEMENT, JJTINTEGERLITERAL, JJTJEXLSCRIPT, JJTLENODE, JJTLTNODE, JJTMETHOD, JJTMODNODE, JJTMULNODE, JJTNENODE, jjtNodeName, JJTNOTNODE, JJTNULLLITERAL, JJTORNODE, JJTREFERENCE, JJTREFERENCEEXPRESSION, JJTSIZEFUNCTION, JJTSIZEMETHOD, JJTSTATEMENTEXPRESSION, JJTSTRINGLITERAL, JJTSUBTRACTNODE, JJTTRUENODE, JJTUNARYMINUSNODE, JJTVOID, JJTWHILESTATEMENT
 
Fields inherited from interface org.apache.commons.jexl.parser.ParserConstants
COMMENT, DEFAULT, DIGIT, EOF, FLOAT_LITERAL, IDENTIFIER, INTEGER_LITERAL, LETTER, STRING_LITERAL, tokenImage
 
Constructor Summary
Parser(java.io.InputStream stream)
           
Parser(ParserTokenManager tm)
           
Parser(java.io.Reader stream)
           
 
Method Summary
 void AdditiveExpression()
           
 void AndExpression()
           
 void ArrayAccess()
           
 void Assignment()
           
 void Block()
           
 void BooleanLiteral()
           
 void ConditionalAndExpression()
           
 void ConditionalOrExpression()
           
 void disable_tracing()
           
 void EmptyFunction()
           
 void enable_tracing()
           
 void EqualityExpression()
           
 void ExclusiveOrExpression()
           
 void Expression()
           
 void ExpressionExpression()
           
 void FloatLiteral()
           
 void ForeachStatement()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void Identifier()
           
 void IfStatement()
           
 void InclusiveOrExpression()
           
 void IntegerLiteral()
           
 SimpleNode JexlScript()
           
 void Literal()
           
 void Method()
           
 void MultiplicativeExpression()
           
 void NullLiteral()
           
 void Parameter()
           
 SimpleNode parse(java.io.Reader reader)
           
 void PrimaryExpression()
           
 void Reference()
           
 void ReferenceExpression()
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(ParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
 void RelationalExpression()
           
 void SizeFunction()
           
 void SizeMethod()
           
 void Statement()
           
 void StatementExpression()
           
 void StringLiteral()
           
 void UnaryExpression()
           
 void WhileStatement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected org.apache.commons.jexl.parser.JJTParserState jjtree

token_source

public ParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

Parser

public Parser(java.io.InputStream stream)

Parser

public Parser(java.io.Reader stream)

Parser

public Parser(ParserTokenManager tm)
Method Detail

parse

public SimpleNode parse(java.io.Reader reader)
                 throws java.lang.Exception
Throws:
java.lang.Exception

JexlScript

public final SimpleNode JexlScript()
                            throws ParseException
Throws:
ParseException

Block

public final void Block()
                 throws ParseException
Throws:
ParseException

EmptyFunction

public final void EmptyFunction()
                         throws ParseException
Throws:
ParseException

SizeFunction

public final void SizeFunction()
                        throws ParseException
Throws:
ParseException

Identifier

public final void Identifier()
                      throws ParseException
Throws:
ParseException

Expression

public final void Expression()
                      throws ParseException
Throws:
ParseException

Assignment

public final void Assignment()
                      throws ParseException
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
Throws:
ParseException

MultiplicativeExpression

public final void MultiplicativeExpression()
                                    throws ParseException
Throws:
ParseException

UnaryExpression

public final void UnaryExpression()
                           throws ParseException
Throws:
ParseException

PrimaryExpression

public final void PrimaryExpression()
                             throws ParseException
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

Statement

public final void Statement()
                     throws ParseException
Throws:
ParseException

ExpressionExpression

public final void ExpressionExpression()
                                throws ParseException
Throws:
ParseException

StatementExpression

public final void StatementExpression()
                               throws ParseException
Throws:
ParseException

ReferenceExpression

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

Method

public final void Method()
                  throws ParseException
Throws:
ParseException

ArrayAccess

public final void ArrayAccess()
                       throws ParseException
Throws:
ParseException

SizeMethod

public final void SizeMethod()
                      throws ParseException
Throws:
ParseException

Reference

public final void Reference()
                     throws ParseException
Throws:
ParseException

Parameter

public final void Parameter()
                     throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(ParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


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