webwork.expr
Class Parser

java.lang.Object
  extended bywebwork.expr.Parser
All Implemented Interfaces:
ParserConstants

public final class Parser
extends java.lang.Object
implements ParserConstants

The WebWork Expression language Parser and Interpreter.

Version:
$Revision: 1.21 $
Author:
Maurice C. Parker (maurice@vineyardenterprise.com)

Field Summary
 Token jj_nt
           
protected static org.apache.commons.logging.Log log
           
 Token token
           
 ParserTokenManager token_source
           
 
Fields inherited from interface webwork.expr.ParserConstants
AND, DEFAULT, EOF, EQ, GE, GT, ID, LE, LPAREN, LT, NE, OR, RPAREN, STRING_LITERAL, tokenImage
 
Constructor Summary
Parser(java.io.InputStream stream)
           
Parser(ParserTokenManager tm)
           
Parser(java.io.Reader stream)
           
 
Method Summary
 boolean comparative_expression()
           
 void disable_tracing()
           
 void enable_tracing()
           
 java.lang.Object findValue()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 boolean logical_and_expression()
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(ParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
 void setValueStack(ValueStack valueStack)
          Set the value stack
 boolean test()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log

token_source

public ParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt
Constructor Detail

Parser

public Parser(java.io.InputStream stream)

Parser

public Parser(java.io.Reader stream)

Parser

public Parser(ParserTokenManager tm)
Method Detail

setValueStack

public void setValueStack(ValueStack valueStack)
Set the value stack


test

public final boolean test()
                   throws ParseException
Throws:
ParseException

logical_and_expression

public final boolean logical_and_expression()
                                     throws ParseException
Throws:
ParseException

comparative_expression

public final boolean comparative_expression()
                                     throws ParseException
Throws:
ParseException

findValue

public final java.lang.Object findValue()
                                 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 © 2001-2003 WebWork All Rights Reserved.