org.apache.struts.validator.validwhen

Class ValidWhenParser

Implemented Interfaces:
ValidWhenParserTokenTypes

public class ValidWhenParser
extends antlr.LLkParser
implements ValidWhenParserTokenTypes

Field Summary

private int
AND
private int
EQUAL
private int
GREATER_EQUAL
private int
GREATER_THAN
private int
LESS_EQUAL
private int
LESS_THAN
private int
NOT_EQUAL
private int
OR
static String[]
_tokenNames
static BitSet
_tokenSet_0
static BitSet
_tokenSet_1
(package private) Stack
argStack
(package private) Object
form
(package private) int
index
(package private) String
value

Fields inherited from interface org.apache.struts.validator.validwhen.ValidWhenParserTokenTypes

ANDSIGN, DECIMAL_LITERAL, EOF, EQUALSIGN, GREATEREQUALSIGN, GREATERTHANSIGN, HEX_LITERAL, IDENTIFIER, LBRACKET, LESSEQUALSIGN, LESSTHANSIGN, LITERAL_null, LPAREN, NOTEQUALSIGN, NULL_TREE_LOOKAHEAD, OCTAL_LITERAL, ORSIGN, RBRACKET, RPAREN, STRING_LITERAL, THIS, WS

Constructor Summary

ValidWhenParser(ParserSharedInputState state)
ValidWhenParser(TokenBuffer tokenBuf)
ValidWhenParser(TokenBuffer tokenBuf, int k)
ValidWhenParser(TokenStream lexer)
ValidWhenParser(TokenStream lexer, int k)

Method Summary

void
comparison()
void
comparisonExpression()
private boolean
evaluateComparison(Object v1, Object compare, Object v2)
void
expr()
void
expression()
void
field()
boolean
getResult()
void
identifier()
void
integer()
void
join()
void
joinedExpression()
void
literal()
private static long[]
mk_tokenSet_0()
private static long[]
mk_tokenSet_1()
void
setForm(Object f)
void
setIndex(int i)
void
setValue(String v)
void
string()
void
value()

Field Details

AND

private final int AND

EQUAL

private final int EQUAL

GREATER_EQUAL

private final int GREATER_EQUAL

GREATER_THAN

private final int GREATER_THAN

LESS_EQUAL

private final int LESS_EQUAL

LESS_THAN

private final int LESS_THAN

NOT_EQUAL

private final int NOT_EQUAL

OR

private final int OR

_tokenNames

public static final String[] _tokenNames

_tokenSet_0

public static final BitSet _tokenSet_0

_tokenSet_1

public static final BitSet _tokenSet_1

argStack

(package private)  Stack argStack

form

(package private)  Object form

index

(package private)  int index

value

(package private)  String value

Constructor Details

ValidWhenParser

public ValidWhenParser(ParserSharedInputState state)

ValidWhenParser

public ValidWhenParser(TokenBuffer tokenBuf)

ValidWhenParser

protected ValidWhenParser(TokenBuffer tokenBuf,
                          int k)

ValidWhenParser

public ValidWhenParser(TokenStream lexer)

ValidWhenParser

protected ValidWhenParser(TokenStream lexer,
                          int k)

Method Details

comparison

public final void comparison()
            throws RecognitionException,
                   TokenStreamException

comparisonExpression

public final void comparisonExpression()
            throws RecognitionException,
                   TokenStreamException

evaluateComparison

private boolean evaluateComparison(Object v1,
                                   Object compare,
                                   Object v2)

expr

public final void expr()
            throws RecognitionException,
                   TokenStreamException

expression

public final void expression()
            throws RecognitionException,
                   TokenStreamException

field

public final void field()
            throws RecognitionException,
                   TokenStreamException

getResult

public boolean getResult()

identifier

public final void identifier()
            throws RecognitionException,
                   TokenStreamException

integer

public final void integer()
            throws RecognitionException,
                   TokenStreamException

join

public final void join()
            throws RecognitionException,
                   TokenStreamException

joinedExpression

public final void joinedExpression()
            throws RecognitionException,
                   TokenStreamException

literal

public final void literal()
            throws RecognitionException,
                   TokenStreamException

mk_tokenSet_0

private static final long[] mk_tokenSet_0()

mk_tokenSet_1

private static final long[] mk_tokenSet_1()

setForm

public void setForm(Object f)

setIndex

public void setIndex(int i)

setValue

public void setValue(String v)

string

public final void string()
            throws RecognitionException,
                   TokenStreamException

value

public final void value()
            throws RecognitionException,
                   TokenStreamException

Copyright B) 2000-2007 - The Apache Software Foundation