Class IfThenElse

java.lang.Object
nz.org.riskscape.engine.rl.IfThenElse
All Implemented Interfaces:
AutoCloseable, nz.org.riskscape.engine.function.IdentifiedFunction, nz.org.riskscape.engine.function.RiskscapeFunction, nz.org.riskscape.engine.function.UntypedFunction, nz.org.riskscape.engine.Identified, nz.org.riskscape.engine.rl.RealizableFunction

public class IfThenElse extends Object implements nz.org.riskscape.engine.function.IdentifiedFunction, nz.org.riskscape.engine.rl.RealizableFunction

Implementation of https://docs.geoserver.org/latest/en/user/filter/function_reference.html#control-functions

  • Nested Class Summary

    Nested classes/interfaces inherited from interface nz.org.riskscape.engine.function.IdentifiedFunction

    nz.org.riskscape.engine.function.IdentifiedFunction.Category, nz.org.riskscape.engine.function.IdentifiedFunction.Wrapping

    Nested classes/interfaces inherited from interface nz.org.riskscape.engine.rl.RealizableFunction

    nz.org.riskscape.engine.rl.RealizableFunction.MetadataIdentifiedRealizableFunction
  • Field Summary

    Fields inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction

    BUILT_IN
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    call(List<Object> args)
     
    List<nz.org.riskscape.engine.types.Type>
     
    nz.org.riskscape.engine.function.IdentifiedFunction.Category
     
     
     
    nz.org.riskscape.engine.types.Type
     
     
    nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.function.RiskscapeFunction>
    realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall functionCall, List<nz.org.riskscape.engine.types.Type> arguments)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface nz.org.riskscape.engine.Identified

    getIdentifiedClass

    Methods inherited from interface nz.org.riskscape.engine.function.IdentifiedFunction

    infoOutput, isBuiltin, toEntity

    Methods inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction

    builtin, getAggregationFunction, getArguments, getOverloaded, getRealizable, getTypesFromArguments, identified, identified, isA, setProblemReporter, validate

    Methods inherited from interface nz.org.riskscape.engine.function.UntypedFunction

    close
  • Constructor Details

    • IfThenElse

      public IfThenElse()
  • Method Details

    • call

      public Object call(List<Object> args)
      Specified by:
      call in interface nz.org.riskscape.engine.function.UntypedFunction
    • getArgumentTypes

      public List<nz.org.riskscape.engine.types.Type> getArgumentTypes()
      Specified by:
      getArgumentTypes in interface nz.org.riskscape.engine.function.RiskscapeFunction
    • getReturnType

      public nz.org.riskscape.engine.types.Type getReturnType()
      Specified by:
      getReturnType in interface nz.org.riskscape.engine.function.RiskscapeFunction
    • getId

      public String getId()
      Specified by:
      getId in interface nz.org.riskscape.engine.Identified
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface nz.org.riskscape.engine.function.IdentifiedFunction
    • getSource

      public String getSource()
      Specified by:
      getSource in interface nz.org.riskscape.engine.function.IdentifiedFunction
    • getCategory

      public nz.org.riskscape.engine.function.IdentifiedFunction.Category getCategory()
      Specified by:
      getCategory in interface nz.org.riskscape.engine.function.IdentifiedFunction
    • realize

      public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.function.RiskscapeFunction> realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall functionCall, List<nz.org.riskscape.engine.types.Type> arguments)
      Specified by:
      realize in interface nz.org.riskscape.engine.rl.RealizableFunction