org.codehaus.aspectwerkz.definition.expression.ast
Class ExpressionParser

java.lang.Object
  extended byorg.codehaus.aspectwerkz.definition.expression.ast.ExpressionParser
All Implemented Interfaces:
ExpressionParserConstants, ExpressionParserTreeConstants

public class ExpressionParser
extends java.lang.Object
implements ExpressionParserTreeConstants, ExpressionParserConstants


Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 ExpressionParserTokenManager token_source
           
 
Fields inherited from interface org.codehaus.aspectwerkz.definition.expression.ast.ExpressionParserTreeConstants
JJTANDNODE, JJTBOOLEANLITERAL, JJTEXPRESSIONSCRIPT, JJTFALSENODE, JJTIDENTIFIER, JJTINNODE, jjtNodeName, JJTNOTINNODE, JJTNOTNODE, JJTORNODE, JJTTRUENODE, JJTVOID
 
Fields inherited from interface org.codehaus.aspectwerkz.definition.expression.ast.ExpressionParserConstants
AND, DEFAULT, DIGIT, EOF, IDENTIFIER, IN, LETTER, NOT, OR, tokenImage
 
Constructor Summary
ExpressionParser(ExpressionParserTokenManager tm)
           
ExpressionParser(java.io.InputStream stream)
           
ExpressionParser(java.io.Reader stream)
           
 
Method Summary
 void AndExpression()
          And
 void BooleanLiteral()
          Boolean literal - only lower case is supported for now
 void disable_tracing()
           
 void enable_tracing()
           
 void Expression()
          Expression NOT > AND > OR priority
 SimpleNode ExpressionScript()
          Syntax entry
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void Identifier()
          Identifier
 SimpleNode parse(java.io.Reader reader)
           
 SimpleNode parse(java.lang.String expression)
           
 void PrimaryExpression()
          Expression leafs are literal and identifier Nested expression within parenthesis can be seen as anonymous identifier
 void ReInit(ExpressionParserTokenManager tm)
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(java.io.Reader stream)
           
 void UnaryExpression()
          NOT expression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ExpressionParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

ExpressionParser

public ExpressionParser(java.io.InputStream stream)

ExpressionParser

public ExpressionParser(java.io.Reader stream)

ExpressionParser

public ExpressionParser(ExpressionParserTokenManager tm)
Method Detail

parse

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

parse

public SimpleNode parse(java.lang.String expression)
                 throws ParseException
Throws:
ParseException

ExpressionScript

public final SimpleNode ExpressionScript()
                                  throws ParseException
Syntax entry

Throws:
ParseException

Expression

public final void Expression()
                      throws ParseException
Expression NOT > AND > OR priority

Throws:
ParseException

AndExpression

public final void AndExpression()
                         throws ParseException
And

Throws:
ParseException

UnaryExpression

public final void UnaryExpression()
                           throws ParseException
NOT expression

Throws:
ParseException

PrimaryExpression

public final void PrimaryExpression()
                             throws ParseException
Expression leafs are literal and identifier Nested expression within parenthesis can be seen as anonymous identifier

Throws:
ParseException

Identifier

public final void Identifier()
                      throws ParseException
Identifier

Throws:
ParseException

BooleanLiteral

public final void BooleanLiteral()
                          throws ParseException
Boolean literal - only lower case is supported for now

Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(ExpressionParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.