Class RealizedTreeExpression

java.lang.Object
nz.org.riskscape.defaults.classifier.RealizedTreeExpression

public abstract class RealizedTreeExpression extends Object

Wraps an expression from a classifier to deal with either simple or struct type expressions. Used by pre, post default and function parts of classifiers.

  • Field Details

  • Constructor Details

    • RealizedTreeExpression

      public RealizedTreeExpression(AST.ExpressionDecl expression, nz.org.riskscape.engine.types.Type resultType)
  • Method Details

    • build

      public static nz.org.riskscape.problem.ResultOrProblems<RealizedTreeExpression> build(nz.org.riskscape.engine.rl.ExpressionRealizer realizer, AST.ExpressionDecl ast, nz.org.riskscape.engine.types.Type inputType)
    • evaluate

      public abstract Object evaluate(Object scope)
    • getExpression

      public AST.ExpressionDecl getExpression()
    • getResultType

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