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.opengis.filter.expression.Expression, org.opengis.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.opengis.filter.expression.Expression

    NIL
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ConstantExpression(nz.org.riskscape.engine.types.Type type, Object value)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    accept(org.opengis.filter.expression.ExpressionVisitor visitor, Object extraData)
     
    nz.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 a Value
    nz.org.riskscape.engine.types.Type
     

    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.opengis.filter.expression.Expression

    evaluate, evaluate
  • Constructor Details

    • ConstantExpression

      public ConstantExpression(Object value)
    • ConstantExpression

      public ConstantExpression(nz.org.riskscape.engine.types.Type type, Object value)
  • Method Details

    • accept

      public Object accept(org.opengis.filter.expression.ExpressionVisitor visitor, Object extraData)
      Specified by:
      accept in interface org.opengis.filter.expression.Expression
      Overrides:
      accept in class org.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 interface TypedExpression
    • getType

      public nz.org.riskscape.engine.types.Type getType()