Package org.geotools.filter.expression
Class DivideImpl
-
- All Implemented Interfaces:
BinaryExpression
,Divide
,Expression
public class DivideImpl extends MathExpressionImpl implements Divide
Implementation of divide expression.- Author:
- Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
-
-
Field Summary
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description DivideImpl(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
-
DivideImpl
public DivideImpl(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
-
-