| |
|
| org.geotools.filter.DefaultExpression org.geotools.filter.MathExpressionImpl
All known Subclasses: org.geotools.filter.expression.AddImpl, org.geotools.filter.expression.MultiplyImpl, org.geotools.filter.expression.SubtractImpl, org.geotools.filter.expression.DivideImpl,
MathExpressionImpl | abstract public class MathExpressionImpl extends DefaultExpression implements MathExpression(Code) | | 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.
author: Rob Hranac, Vision for New York version: $Id: MathExpressionImpl.java 24280 2007-02-08 16:40:54Z groldan $ |
Constructor Summary | |
protected | MathExpressionImpl() No argument constructor. | protected | MathExpressionImpl(org.opengis.filter.expression.Expression e1, org.opengis.filter.expression.Expression e2) |
Method Summary | |
final public void | addLeftValue(Expression leftValue) Adds the 'left' value to this expression. | final public void | addRightValue(Expression rightValue) Adds the 'right' value to this expression. | protected void | ensureOperandsSet() Convenience method which ensures that both expressions have been
set. | public org.opengis.filter.expression.Expression | getExpression1() Gets the left or first expression. | public org.opengis.filter.expression.Expression | getExpression2() Gets the second expression. | final public Expression | getLeftValue() Gets the left or first expression. | final public Expression | getRightValue() Gets the right expression. | public short | getType() Gets the type of this expression. | protected Object | number(double number) | public void | setExpression1(org.opengis.filter.expression.Expression expression) Gets the left or first expression. | public void | setExpression2(org.opengis.filter.expression.Expression expression) Gets the second expression. |
MathExpressionImpl | protected MathExpressionImpl()(Code) | | No argument constructor.
|
MathExpressionImpl | protected MathExpressionImpl(org.opengis.filter.expression.Expression e1, org.opengis.filter.expression.Expression e2)(Code) | | |
ensureOperandsSet | protected void ensureOperandsSet() throws IllegalArgumentException(Code) | | Convenience method which ensures that both expressions have been
set. If any of operands not set an exception is thrown.
|
getExpression1 | public org.opengis.filter.expression.Expression getExpression1()(Code) | | Gets the left or first expression.
the expression on the first side of the comparison. |
getExpression2 | public org.opengis.filter.expression.Expression getExpression2()(Code) | | Gets the second expression.
the expression on the second side of the comparison. |
getType | public short getType()(Code) | | Gets the type of this expression.
Expression type. |
setExpression1 | public void setExpression1(org.opengis.filter.expression.Expression expression)(Code) | | Gets the left or first expression.
throws: IllegalFilterException - |
setExpression2 | public void setExpression2(org.opengis.filter.expression.Expression expression)(Code) | | Gets the second expression.
throws: IllegalFilterException - |
Fields inherited from org.geotools.filter.DefaultExpression | protected short expressionType(Code)(Java Doc) protected boolean permissiveConstruction(Code)(Java Doc)
|
|
|
|