org.geotools.filter.expression
Class SubtractImpl
java.lang.Object
org.geotools.filter.expression.ExpressionAbstract
org.geotools.filter.DefaultExpression
org.geotools.filter.MathExpressionImpl
org.geotools.filter.expression.SubtractImpl
- All Implemented Interfaces:
- org.opengis.filter.expression.BinaryExpression, org.opengis.filter.expression.Expression, Expression, ExpressionType, MathExpression, org.opengis.filter.expression.Subtract
- public class SubtractImpl
- extends MathExpressionImpl
- implements org.opengis.filter.expression.Subtract
Implementation of Subtract expression.
- Author:
- Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
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 |
SubtractImpl(org.opengis.filter.expression.Expression expr1,
org.opengis.filter.expression.Expression expr2)
|
Method Summary |
java.lang.Object |
accept(org.opengis.filter.expression.ExpressionVisitor visitor,
java.lang.Object extraData)
Subclass should override, default implementation just returns extraData |
boolean |
equals(java.lang.Object obj)
Compares this expression to the specified object. |
java.lang.Object |
evaluate(Feature feature)
Returns the value for this expression. |
int |
hashCode()
Override of hashCode method. |
java.lang.String |
toString()
|
Methods inherited from class org.geotools.filter.MathExpressionImpl |
addLeftValue, addRightValue, ensureOperandsSet, getExpression1, getExpression2, getLeftValue, getRightValue, getType, number, setExpression1, setExpression2 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.filter.expression.BinaryExpression |
getExpression1, getExpression2, setExpression1, setExpression2 |
Methods inherited from interface org.opengis.filter.expression.Expression |
evaluate |
Methods inherited from interface org.geotools.filter.expression.Expression |
accept |
SubtractImpl
public SubtractImpl(org.opengis.filter.expression.Expression expr1,
org.opengis.filter.expression.Expression expr2)
evaluate
public java.lang.Object evaluate(Feature feature)
throws java.lang.IllegalArgumentException
- Description copied from class:
MathExpressionImpl
- Returns the value for this expression.
- Specified by:
evaluate
in interface Expression
- Specified by:
evaluate
in class MathExpressionImpl
- Parameters:
feature
- Feature to use when return sub expression values.
- Returns:
- Value of this expression.
- Throws:
java.lang.IllegalArgumentException
- Feature does not match declared schema.
accept
public java.lang.Object accept(org.opengis.filter.expression.ExpressionVisitor visitor,
java.lang.Object extraData)
- Description copied from class:
ExpressionAbstract
- Subclass should override, default implementation just returns extraData
- Specified by:
accept
in interface org.opengis.filter.expression.Expression
- Overrides:
accept
in class ExpressionAbstract
equals
public boolean equals(java.lang.Object obj)
- Compares this expression to the specified object. Returns true if the
- Parameters:
obj
- - the object to compare this expression against.
- Returns:
- true if specified object is equal to this expression; false
otherwise.
hashCode
public int hashCode()
- Override of hashCode method.
- Returns:
- a hash code value for this subtract expression.
toString
public java.lang.String toString()
Copyright © GeoTools. All Rights Reserved.