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
ConstructorsConstructorDescriptionConstantExpression(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 aValuenz.org.riskscape.engine.types.TypegetType()Methods inherited from class org.geotools.filter.LiteralExpressionImpl
equals, evaluate, evaluate, getValue, hashCode, setValue, toStringMethods inherited from class org.geotools.filter.DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpressionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
acceptin interfaceorg.geotools.api.filter.expression.Expression- Overrides:
acceptin 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:TypedExpressionThe riskscape type this expression will return as a
Value- Specified by:
evaluateTypein interfaceTypedExpression
-
getType
public nz.org.riskscape.engine.types.Type getType()
-