com.gridsystems.beanfilter
Class SelectWhereValue
java.lang.Object
com.gridsystems.beanfilter.EvalValue
com.gridsystems.beanfilter.SelectWhereValue
- All Implemented Interfaces:
- FilterParserConstants
public final class SelectWhereValue
- extends EvalValue
- implements FilterParserConstants
EvalValue to process select-where command.
- Version:
- 1.0
- Author:
- Xmas
Fields inherited from interface com.gridsystems.beanfilter.FilterParserConstants |
ALLITEMS, AND, ANYITEMS, COMMA, CONTAINS, DEFAULT, DOT, EOF, EQ, ESCAPES, EXPONENT, FALSE, GE, GT, IDENTIFIER, IN, LBRACKET, LE, LIKE, LPAREN, LT, MATCHES, NE, NOT, NULL, NUMBER, OR, RBRACKET, RPAREN, SELECT, SIZEOF, STRING, STRING1, STRING2, THIS, tokenImage, TRUE, WHERE |
Method Summary |
java.lang.Class<?> |
getClassValue(java.lang.Class<?> parentClass)
|
java.lang.Object |
getValue(java.lang.Object src)
Gets the value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SelectWhereValue
public SelectWhereValue(Token selectToken,
EvalValue select,
Token whereToken,
EvalNode where,
java.lang.Class<?> parentClass)
throws EvalException
- Creates a new instance.
- Parameters:
selectToken
- The select tokenselect
- The select valuewhereToken
- The select tokenwhere
- The where evalNodeparentClass
- The parent Class
- Throws:
EvalException
- If an error occurs
getValue
public java.lang.Object getValue(java.lang.Object src)
throws EvalException
- Gets the value.
- Specified by:
getValue
in class EvalValue
- Parameters:
src
- The data source
- Returns:
- The value
- Throws:
EvalException
- FTR005: Unknown field path
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object
getClassValue
public java.lang.Class<?> getClassValue(java.lang.Class<?> parentClass)
throws EvalException
-
- Specified by:
getClassValue
in class EvalValue
- Parameters:
parentClass
- Parent Class
- Returns:
- Return the Java Class that represents or null if it is unknown.
- Throws:
EvalException
- If an error occurs
Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.