org.springmodules.validation.valang.parser
Class ValangParser
java.lang.Object
org.springmodules.validation.valang.parser.ValangParser
- All Implemented Interfaces:
- ValangParserConstants
public class ValangParser
- extends java.lang.Object
- implements ValangParserConstants
| Fields inherited from interface org.springmodules.validation.valang.parser.ValangParserConstants |
ADD, AND, BETWEEN, DATE, DEFAULT, DIGIT, DIVIDE, DOT, EOF, EQUALS, FALSE, FUNCTION_NAME, HAS_LENGTH, HAS_NO_LENGTH, HAS_NO_TEXT, HAS_TEXT, IN, INDEXED_PATH_ELEMENT, IS_BLANK, IS_LOWER_CASE, IS_NOT_BLANK, IS_NOT_LOWER_CASE, IS_NOT_NULL, IS_NOT_UPPER_CASE, IS_NOT_WORD, IS_NULL, IS_UPPER_CASE, IS_WORD, LESS_THAN, LESS_THAN_OR_EQUAL, LOWERLETTER, MOD, MORE_THAN, MORE_THAN_OR_EQUAL, MULTIPLY, NOT, NOT_BETWEEN, NOT_EQUAL, NOT_IN, NUM, OR, PATH, PLAIN_PATH_ELEMENT, POSITIVE_INTEGER, STRING, SUBTRACT, tokenImage, TRUE, UNDERSCORE, UPPERLETTER |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public ValangParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
ValangParser
public ValangParser(java.lang.String expression)
ValangParser
public ValangParser(java.lang.String expression,
java.util.Map customFunctions,
java.util.Map dateParsers)
ValangParser
public ValangParser(java.io.InputStream stream)
ValangParser
public ValangParser(java.io.InputStream stream,
java.lang.String encoding)
ValangParser
public ValangParser(java.io.Reader stream)
ValangParser
public ValangParser(ValangParserTokenManager tm)
getVisitor
public DefaultVisitor getVisitor()
setVisitor
public void setVisitor(DefaultVisitor visitor)
setDateParsersByRegexp
public void setDateParsersByRegexp(java.util.Map dateParsersByRegexp)
setFunctionsByName
public void setFunctionsByName(java.util.Map functionsByName)
parseExpression
public final Predicate parseExpression()
throws ParseException
- Throws:
ParseException
parseValidation
public final java.util.Collection parseValidation()
throws ParseException
- Throws:
ParseException
not
public final Predicate not(Function fieldFunction)
throws ParseException
- Throws:
ParseException
predicates
public final Predicate predicates(Function fieldFunction)
throws ParseException
- Throws:
ParseException
expression
public final Predicate expression(Function fieldFunction)
throws ParseException
- Throws:
ParseException
predicate
public final Predicate predicate(Function fieldFunction)
throws ParseException
- Throws:
ParseException
function
public final Function function(Function fieldFunction)
throws ParseException
- Throws:
ParseException
additiveExpr
public final Function additiveExpr(Function fieldFunction)
throws ParseException
- Throws:
ParseException
subtractiveExpr
public final Function subtractiveExpr(Function fieldFunction)
throws ParseException
- Throws:
ParseException
multiplicativeExpr
public final Function multiplicativeExpr(Function fieldFunction)
throws ParseException
- Throws:
ParseException
beanPropertyOrLiteral
public final Function beanPropertyOrLiteral(Function fieldFunction)
throws ParseException
- Throws:
ParseException
literal
public final Function literal()
throws ParseException
- Throws:
ParseException
beanProperty
public final Function beanProperty(Function fieldFunction)
throws ParseException
- Throws:
ParseException
path
public final Function path()
throws ParseException
- Throws:
ParseException
binaryOperator
public final Operator binaryOperator()
throws ParseException
- Throws:
ParseException
unaryOperator
public final Operator unaryOperator()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.InputStream stream,
java.lang.String encoding)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(ValangParserTokenManager 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 © 2005. All Rights Reserved.