org.geotools.filter.expression
Class MultiplyImpl

java.lang.Object
  extended byorg.geotools.filter.expression.ExpressionAbstract
      extended byorg.geotools.filter.DefaultExpression
          extended byorg.geotools.filter.MathExpressionImpl
              extended byorg.geotools.filter.expression.MultiplyImpl
All Implemented Interfaces:
org.opengis.filter.expression.BinaryExpression, org.opengis.filter.expression.Expression, Expression, ExpressionType, MathExpression, org.opengis.filter.expression.Multiply

public class MultiplyImpl
extends MathExpressionImpl
implements org.opengis.filter.expression.Multiply

Implementation of Multiply expression.

Author:
Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org

Field Summary
 
Fields inherited from class org.geotools.filter.DefaultExpression
expressionType, permissiveConstruction
 
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
MultiplyImpl(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 org.geotools.filter.DefaultExpression
accept, evaluate, getValue, isAttributeExpression, isExpression, isGeometryExpression, isLiteralExpression, isMathExpression, isMathExpression
 
Methods inherited from class org.geotools.filter.expression.ExpressionAbstract
eval
 
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.MathExpression
getValue
 
Methods inherited from interface org.geotools.filter.expression.Expression
accept
 

Constructor Detail

MultiplyImpl

public MultiplyImpl(org.opengis.filter.expression.Expression expr1,
                    org.opengis.filter.expression.Expression expr2)
Method Detail

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 multiply expression.

toString

public java.lang.String toString()


Copyright © GeoTools. All Rights Reserved.