|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Holds a mathematical relationship between two expressions. Note that the sub expressions must be math expressions. In other words, they must be a math literal, another math expression, or a feature attribute with a declared math type. You may create math expressions of arbitrary complexity by nesting other math expressions as sub expressions in one or more math expressions. This filter defines left and right values to clarify the sub expression precedence for non-associative operations, such as subtraction and division. For example, the left value is the numerator and the right is the denominator in an ExpressionMath division operation.
Field Summary |
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 |
Method Summary | |
void |
addLeftValue(Expression leftValue)
Deprecated. use BinaryExpression.setExpression1(Expression) |
void |
addRightValue(Expression rightValue)
Deprecated. use BinaryExpression.setExpression2(Expression) |
Expression |
getLeftValue()
Deprecated. use BinaryExpression.getExpression1() . |
Expression |
getRightValue()
Deprecated. use BinaryExpression.getExpression2() . |
short |
getType()
Deprecated. The expression type system has been replaced by an actual class type system. |
java.lang.Object |
getValue(Feature feature)
Deprecated. use Expression.evaluate(Feature) . |
Methods inherited from interface org.geotools.filter.expression.Expression |
accept, evaluate |
Methods inherited from interface org.opengis.filter.expression.Expression |
accept, evaluate |
Methods inherited from interface org.opengis.filter.expression.BinaryExpression |
getExpression1, getExpression2, setExpression1, setExpression2 |
Method Detail |
public java.lang.Object getValue(Feature feature)
Expression.evaluate(Feature)
.
getValue
in interface Expression
feature
- Feature to use when return sub expression values.
public void addRightValue(Expression rightValue) throws IllegalFilterException
BinaryExpression.setExpression2(Expression)
rightValue
- Expression to add to this expression.
IllegalFilterException
- Attempting to add non-math expression.public short getType()
getType
in interface Expression
public Expression getLeftValue()
BinaryExpression.getExpression1()
.
public Expression getRightValue()
BinaryExpression.getExpression2()
.
public void addLeftValue(Expression leftValue) throws IllegalFilterException
BinaryExpression.setExpression1(Expression)
leftValue
- Expression to add to this expression.
IllegalFilterException
- Attempting to add non-math expression.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |