org.springmodules.validation.valang.parser
Class ValangParser

java.lang.Object
  extended by org.springmodules.validation.valang.parser.ValangParser
All Implemented Interfaces:
ValangParserConstants

public class ValangParser
extends java.lang.Object
implements ValangParserConstants


Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 ValangParserTokenManager token_source
           
 
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
 
Constructor Summary
ValangParser(java.io.InputStream stream)
           
ValangParser(java.io.InputStream stream, java.lang.String encoding)
           
ValangParser(java.io.Reader stream)
           
ValangParser(java.lang.String expression)
           
ValangParser(java.lang.String expression, java.util.Map customFunctions, java.util.Map dateParsers)
           
ValangParser(ValangParserTokenManager tm)
           
 
Method Summary
 Function additiveExpr(Function fieldFunction)
           
 Function beanProperty(Function fieldFunction)
           
 Function beanPropertyOrLiteral(Function fieldFunction)
           
 Operator binaryOperator()
           
 void disable_tracing()
           
 void enable_tracing()
           
 Predicate expression(Function fieldFunction)
           
 Function function(Function fieldFunction)
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 DefaultVisitor getVisitor()
           
 Function literal()
           
 Function multiplicativeExpr(Function fieldFunction)
           
 Predicate not(Function fieldFunction)
           
 Predicate parseExpression()
           
 java.util.Collection parseValidation()
           
 Function path()
           
 Predicate predicate(Function fieldFunction)
           
 Predicate predicates(Function fieldFunction)
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
           
 void ReInit(java.io.Reader stream)
           
 void ReInit(ValangParserTokenManager tm)
           
 void setDateParsersByRegexp(java.util.Map dateParsersByRegexp)
           
 void setFunctionsByName(java.util.Map functionsByName)
           
 void setVisitor(DefaultVisitor visitor)
           
 Function subtractiveExpr(Function fieldFunction)
           
 Operator unaryOperator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ValangParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

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)
Method Detail

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.