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 Objectaccept(ExpressionVisitor visitor, Object extraData)Accepts a visitor.protected ObjectdoArithmeticOperation(Double operand1, Double operand2)booleanequals(Object obj)Compares this expression to the specified object.Objectevaluate(Object feature)Subclass should override, default implementation returns null.inthashCode()Override of hashCode method.StringtoString()-
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:ExpressionAbstractSubclass should override, default implementation returns null.- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classExpressionAbstract- Returns:
- default implementation returns null
- Throws:
IllegalArgumentException
-
accept
public Object accept(ExpressionVisitor visitor, Object extraData)
Description copied from interface:ExpressionAccepts a visitor. Subclasses must implement with a method whose content is the following:return visitor.visit(this, extraData);
- Specified by:
acceptin 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:
doArithmeticOperationin classMathExpressionImpl
-
-