|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.filter.expression.ExpressionAbstract
org.geotools.filter.DefaultExpression
Implements a default expression, with helpful variables and static methods.
| Field Summary | |
protected short |
expressionType
Defines the type of this expression. |
protected boolean |
permissiveConstruction
Defines the type of this expression. |
| Fields inherited from interface org.geotools.filter.expression.ExpressionType |
ATTRIBUTE, ATTRIBUTE_DOUBLE, ATTRIBUTE_GEOMETRY, ATTRIBUTE_INTEGER, ATTRIBUTE_STRING, ATTRIBUTE_UNDECLARED, FUNCTION, LITERAL_DOUBLE, LITERAL_GEOMETRY, LITERAL_INTEGER, LITERAL_STRING, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT |
| Constructor Summary | |
DefaultExpression()
|
|
| Method Summary | |
void |
accept(FilterVisitor visitor)
Used by FilterVisitors to perform some action on this filter instance. |
java.lang.Object |
evaluate(Feature feature)
Returns a value for this expression. |
java.lang.Object |
evaluate(java.lang.Object object)
This method checks if the object is an instance of Feature and
if so, calls through to evaluate(Feature). |
short |
getType()
Gets the type of this expression. |
java.lang.Object |
getValue(Feature feature)
Deprecated. use evaluate(Feature). |
protected static boolean |
isAttributeExpression(short expressionType)
Checks to see if passed type is attribute. |
protected static boolean |
isExpression(short expressionType)
Checks to see if passed type is geometry. |
protected static boolean |
isGeometryExpression(short expressionType)
Checks to see if passed type is geometry. |
protected static boolean |
isLiteralExpression(short expressionType)
Checks to see if passed type is geometry. |
protected static boolean |
isMathExpression(org.opengis.filter.expression.Expression expression)
Checks to see if this expression is a math expresson based on its type. |
protected static boolean |
isMathExpression(short expressionType)
Deprecated. use {@link #is |
| Methods inherited from class org.geotools.filter.expression.ExpressionAbstract |
accept, eval |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opengis.filter.expression.Expression |
accept |
| Field Detail |
protected short expressionType
protected boolean permissiveConstruction
| Constructor Detail |
public DefaultExpression()
| Method Detail |
public short getType()
getType in interface Expressionpublic final java.lang.Object getValue(Feature feature)
evaluate(Feature).
evaluate(Feature).
getValue in interface Expressionfeature - Specified feature to use when returning value. Some
expressions, such as LiteralExpressions, may ignore this as it
does not affect their return value.
public java.lang.Object evaluate(Feature feature)
evaluate in interface Expressionevaluate in class ExpressionAbstractfeature - Specified feature to use when returning value.
public java.lang.Object evaluate(java.lang.Object object)
Feature and
if so, calls through to evaluate(Feature). This is done
to maintain backwards compatability with previous version of Expression api
which depended on Feature. If the object is not an instance of feature
the super implementation is called.
evaluate in interface org.opengis.filter.expression.Expressionevaluate in class ExpressionAbstractpublic final void accept(FilterVisitor visitor)
Expression.accept(ExpressionVisitor, Object)
Expression
accept in interface Expressionvisitor - The visitor which requires access to this filter, the
method must call visitor.visit(this);protected static boolean isAttributeExpression(short expressionType)
expressionType - Type of expression for check.
protected static boolean isMathExpression(short expressionType)
expressionType - Type of expression for check.
protected static boolean isMathExpression(org.opengis.filter.expression.Expression expression)
expression - expression to check.
protected static boolean isLiteralExpression(short expressionType)
expressionType - Type of expression for check.
protected static boolean isGeometryExpression(short expressionType)
expressionType - Type of expression for check.
protected static boolean isExpression(short expressionType)
expressionType - Type of expression for check.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||