org.apache.commons.jexl.parser
Class Parser

java.lang.Object
  |
  +--org.apache.commons.jexl.parser.Parser
All Implemented Interfaces:
ParserConstants, ParserTreeConstants

public class Parser
extends 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(InputStream stream)
           
Parser(ParserTokenManager tm)
           
Parser(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(Reader reader)
           
 void PrimaryExpression()
           
 void Reference()
           
 void ReferenceExpression()
           
 void ReInit(InputStream stream)
           
 void ReInit(ParserTokenManager tm)
           
 void ReInit(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(InputStream stream)

Parser

public Parser(Reader stream)

Parser

public Parser(ParserTokenManager tm)
Method Detail

parse

public SimpleNode parse(Reader reader)
                 throws Exception
Exception

JexlScript

public final SimpleNode JexlScript()
                            throws ParseException
ParseException

Block

public final void Block()
                 throws ParseException
ParseException

EmptyFunction

public final void EmptyFunction()
                         throws ParseException
ParseException

SizeFunction

public final void SizeFunction()
                        throws ParseException
ParseException

Identifier

public final void Identifier()
                      throws ParseException
ParseException

Expression

public final void Expression()
                      throws ParseException
ParseException

Assignment

public final void Assignment()
                      throws ParseException
ParseException

ConditionalOrExpression

public final void ConditionalOrExpression()
                                   throws ParseException
ParseException

ConditionalAndExpression

public final void ConditionalAndExpression()
                                    throws ParseException
ParseException

InclusiveOrExpression

public final void InclusiveOrExpression()
                                 throws ParseException
ParseException

ExclusiveOrExpression

public final void ExclusiveOrExpression()
                                 throws ParseException
ParseException

AndExpression

public final void AndExpression()
                         throws ParseException
ParseException

EqualityExpression

public final void EqualityExpression()
                              throws ParseException
ParseException

RelationalExpression

public final void RelationalExpression()
                                throws ParseException
ParseException

AdditiveExpression

public final void AdditiveExpression()
                              throws ParseException
ParseException

MultiplicativeExpression

public final void MultiplicativeExpression()
                                    throws ParseException
ParseException

UnaryExpression

public final void UnaryExpression()
                           throws ParseException
ParseException

PrimaryExpression

public final void PrimaryExpression()
                             throws ParseException
ParseException

Literal

public final void Literal()
                   throws ParseException
ParseException

NullLiteral

public final void NullLiteral()
                       throws ParseException
ParseException

BooleanLiteral

public final void BooleanLiteral()
                          throws ParseException
ParseException

IntegerLiteral

public final void IntegerLiteral()
                          throws ParseException
ParseException

FloatLiteral

public final void FloatLiteral()
                        throws ParseException
ParseException

StringLiteral

public final void StringLiteral()
                         throws ParseException
ParseException

Statement

public final void Statement()
                     throws ParseException
ParseException

ExpressionExpression

public final void ExpressionExpression()
                                throws ParseException
ParseException

StatementExpression

public final void StatementExpression()
                               throws ParseException
ParseException

ReferenceExpression

public final void ReferenceExpression()
                               throws ParseException
ParseException

IfStatement

public final void IfStatement()
                       throws ParseException
ParseException

WhileStatement

public final void WhileStatement()
                          throws ParseException
ParseException

ForeachStatement

public final void ForeachStatement()
                            throws ParseException
ParseException

Method

public final void Method()
                  throws ParseException
ParseException

ArrayAccess

public final void ArrayAccess()
                       throws ParseException
ParseException

SizeMethod

public final void SizeMethod()
                      throws ParseException
ParseException

Reference

public final void Reference()
                     throws ParseException
ParseException

Parameter

public final void Parameter()
                     throws ParseException
ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(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-2006 The Apache Software Foundation. All Rights Reserved.