Package nz.org.riskscape.engine.expr
Class ConstantExpression
java.lang.Object
org.geotools.filter.expression.ExpressionAbstract
org.geotools.filter.DefaultExpression
org.geotools.filter.LiteralExpressionImpl
nz.org.riskscape.engine.expr.ConstantExpression
- All Implemented Interfaces:
TypedExpression
,org.geotools.api.filter.expression.Expression
,org.geotools.api.filter.expression.Literal
public class ConstantExpression
extends org.geotools.filter.LiteralExpressionImpl
implements TypedExpression
Returns a constant object of a constant type
-
Field Summary
Fields inherited from interface org.geotools.api.filter.expression.Expression
NIL
-
Constructor Summary
ConstructorDescriptionConstantExpression
(Object value) ConstantExpression
(nz.org.riskscape.engine.types.Type type, Object value) -
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.types.Type>
evaluateType
(nz.org.riskscape.engine.types.Type sourceType) The riskscape type this expression will return as aValue
nz.org.riskscape.engine.types.Type
getType()
Methods inherited from class org.geotools.filter.LiteralExpressionImpl
equals, evaluate, evaluate, getValue, hashCode, setValue, toString
Methods inherited from class org.geotools.filter.DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.geotools.api.filter.expression.Expression
evaluate, evaluate
-
Constructor Details
-
ConstantExpression
-
ConstantExpression
-
-
Method Details
-
accept
public Object accept(org.geotools.api.filter.expression.ExpressionVisitor visitor, Object extraData) - Specified by:
accept
in interfaceorg.geotools.api.filter.expression.Expression
- Overrides:
accept
in classorg.geotools.filter.LiteralExpressionImpl
-
evaluateType
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.types.Type> evaluateType(nz.org.riskscape.engine.types.Type sourceType) Description copied from interface:TypedExpression
The riskscape type this expression will return as a
Value
- Specified by:
evaluateType
in interfaceTypedExpression
-
getType
public nz.org.riskscape.engine.types.Type getType()
-