|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springmodules.validation.valang.parser.ValangParser
public class ValangParser
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
ValangParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface org.springmodules.validation.valang.parser.ValangParserConstants |
---|
ADD, AND, BETWEEN, DATE, DEFAULT, DIGIT, DIVIDE, DOT, ENUM, EOF, EQUALS, FALSE, FUNCTION_NAME, GREATER_THAN, GREATER_THAN_OR_EQUAL, 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, MULTIPLY, NOT, NOT_BETWEEN, NOT_EQUAL, NOT_IN, NUM, OR, PATH, PLAIN_PATH_ELEMENT, POSITIVE_INTEGER, STRING, SUBTRACT, tokenImage, TRUE, UNDERSCORE, UPPERLETTER, WHERE |
Constructor Summary | |
---|---|
ValangParser(InputStream stream)
Constructor with InputStream. |
|
ValangParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding |
|
ValangParser(Reader stream)
Constructor. |
|
ValangParser(String expression)
Constructor |
|
ValangParser(String expression,
Map<String,Object> customFunctions,
Map dateParsers)
Constructor |
|
ValangParser(String expression,
String className,
Map<String,Object> customFunctions,
Map dateParsers)
Constructor |
|
ValangParser(ValangParserTokenManager tm)
Constructor with generated Token Manager. |
Method Summary | |
---|---|
Function |
additiveExpr(Function fieldFunction)
|
Function |
beanProperty(Function fieldFunction)
|
Function |
beanPropertyOrLiteral(Function fieldFunction)
|
Operator |
binaryOperator()
|
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
org.apache.commons.collections.Predicate |
expression(Function fieldFunction)
|
Function |
function(Function fieldFunction)
|
ParseException |
generateParseException()
Generate ParseException. |
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
DefaultVisitor |
getVisitor()
Gets visitor used for processing parsed expressions. |
Function |
literal()
|
Function |
multiplicativeExpr(Function fieldFunction)
|
org.apache.commons.collections.Predicate |
not(Function fieldFunction)
|
org.apache.commons.collections.Predicate |
parseExpression()
|
Collection<ValidationRule> |
parseValidation()
|
Function |
path()
|
org.apache.commons.collections.Predicate |
predicate(Function fieldFunction)
|
org.apache.commons.collections.Predicate |
predicates(Function fieldFunction)
|
void |
ReInit(InputStream stream)
Reinitialise. |
void |
ReInit(InputStream stream,
String encoding)
Reinitialise. |
void |
ReInit(Reader stream)
Reinitialise. |
void |
ReInit(ValangParserTokenManager tm)
Reinitialise. |
void |
setDateParsersByRegexp(Map dateParsersByRegexp)
|
void |
setFunctionsByName(Map<String,Object> hFunctions)
Sets functions by name. |
void |
setVisitor(DefaultVisitor visitor)
Sets visitor used for processing parsed expressions. |
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 |
---|
public ValangParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public ValangParser(String expression)
public ValangParser(String expression, Map<String,Object> customFunctions, Map dateParsers)
public ValangParser(String expression, String className, Map<String,Object> customFunctions, Map dateParsers)
public ValangParser(InputStream stream)
public ValangParser(InputStream stream, String encoding)
public ValangParser(Reader stream)
public ValangParser(ValangParserTokenManager tm)
Method Detail |
---|
public DefaultVisitor getVisitor()
public void setVisitor(DefaultVisitor visitor)
public void setDateParsersByRegexp(Map dateParsersByRegexp)
public void setFunctionsByName(Map<String,Object> hFunctions)
public final org.apache.commons.collections.Predicate parseExpression() throws ParseException
ParseException
public final Collection<ValidationRule> parseValidation() throws ParseException
ParseException
public final org.apache.commons.collections.Predicate not(Function fieldFunction) throws ParseException
ParseException
public final org.apache.commons.collections.Predicate predicates(Function fieldFunction) throws ParseException
ParseException
public final org.apache.commons.collections.Predicate expression(Function fieldFunction) throws ParseException
ParseException
public final org.apache.commons.collections.Predicate predicate(Function fieldFunction) throws ParseException
ParseException
public final Function function(Function fieldFunction) throws ParseException
ParseException
public final Function additiveExpr(Function fieldFunction) throws ParseException
ParseException
public final Function subtractiveExpr(Function fieldFunction) throws ParseException
ParseException
public final Function multiplicativeExpr(Function fieldFunction) throws ParseException
ParseException
public final Function beanPropertyOrLiteral(Function fieldFunction) throws ParseException
ParseException
public final Function literal() throws ParseException
ParseException
public final Function beanProperty(Function fieldFunction) throws ParseException
ParseException
public final Function path() throws ParseException
ParseException
public final Operator binaryOperator() throws ParseException
ParseException
public final Operator unaryOperator() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(ValangParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |