|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
BinaryExpression
public interface MathExpression
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 ExpressionType |
---|
ATTRIBUTE, ATTRIBUTE_DOUBLE, ATTRIBUTE_GEOMETRY, ATTRIBUTE_INTEGER, ATTRIBUTE_STRING, ATTRIBUTE_UNDECLARED, FUNCTION, LITERAL_DOUBLE, LITERAL_GEOMETRY, LITERAL_INTEGER, LITERAL_LONG, LITERAL_STRING, LITERAL_UNDECLARED, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT |
Fields inherited from interface Expression |
---|
NIL |
Fields inherited from interface Expression |
---|
NIL |
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. |
Object |
getValue(SimpleFeature feature)
Deprecated. use Expression#evaluate(Feature) . |
Methods inherited from interface Expression |
---|
accept, evaluate |
Methods inherited from interface Expression |
---|
accept, evaluate, evaluate |
Methods inherited from interface BinaryExpression |
---|
getExpression1, getExpression2 |
Methods inherited from interface Expression |
---|
accept, evaluate, evaluate |
Method Detail |
---|
Object getValue(SimpleFeature feature)
Expression#evaluate(Feature)
.
feature
- Feature to use when return sub expression values.
void addRightValue(Expression rightValue) throws IllegalFilterException
BinaryExpression#setExpression2(Expression)
rightValue
- Expression to add to this expression.
IllegalFilterException
- Attempting to add non-math expression.short getType()
Expression getLeftValue()
BinaryExpression.getExpression1()
.
Expression getRightValue()
BinaryExpression.getExpression2()
.
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 |