Package org.geotools.filter.expression
Class SubtractImpl
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- MathExpressionImpl
-
- SubtractImpl
-
- All Implemented Interfaces:
BinaryExpression
,Expression
,Subtract
public class SubtractImpl extends MathExpressionImpl implements Subtract
Implementation of Subtract expression.- Author:
- Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
-
-
Field Summary
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description SubtractImpl(Expression expr1, Expression expr2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(ExpressionVisitor visitor, Object extraData)
Accepts a visitor.protected Object
doArithmeticOperation(Double operand1, Double operand2)
boolean
equals(Object obj)
Compares this expression to the specified object.Object
evaluate(Object feature)
Subclass should override, default implementation returns null.int
hashCode()
Override of hashCode method.String
toString()
-
Methods inherited from class MathExpressionImpl
ensureOperandsSet, getExpression1, getExpression2, handleCollection, number, setExpression1, setExpression2
-
Methods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
-
Methods inherited from class ExpressionAbstract
evaluate
-
Methods inherited from interface BinaryExpression
getExpression1, getExpression2
-
Methods inherited from interface Expression
evaluate
-
-
-
-
Constructor Detail
-
SubtractImpl
public SubtractImpl(Expression expr1, Expression expr2)
-
-
Method Detail
-
evaluate
public Object evaluate(Object feature) throws IllegalArgumentException
Description copied from class:ExpressionAbstract
Subclass should override, default implementation returns null.- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classExpressionAbstract
- Returns:
- default implementation returns null
- Throws:
IllegalArgumentException
-
accept
public Object accept(ExpressionVisitor visitor, Object extraData)
Description copied from interface:Expression
Accepts a visitor. Subclasses must implement with a method whose content is the following:return visitor.visit(this, extraData);
- Specified by:
accept
in interfaceExpression
-
equals
public boolean equals(Object obj)
Compares this expression to the specified object. Returns true if the
-
hashCode
public int hashCode()
Override of hashCode method.
-
doArithmeticOperation
protected Object doArithmeticOperation(Double operand1, Double operand2)
- Specified by:
doArithmeticOperation
in classMathExpressionImpl
-
-