Class RealizedTreeExpression
java.lang.Object
nz.org.riskscape.defaults.classifier.RealizedTreeExpression
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 Summary
Modifier and TypeFieldDescriptionstatic final RealizedTreeExpression
protected final AST.ExpressionDecl
protected final nz.org.riskscape.engine.types.Type
-
Constructor Summary
ConstructorDescriptionRealizedTreeExpression
(AST.ExpressionDecl expression, nz.org.riskscape.engine.types.Type resultType) -
Method Summary
Modifier and TypeMethodDescriptionstatic nz.org.riskscape.problem.ResultOrProblems<RealizedTreeExpression>
build
(nz.org.riskscape.engine.rl.ExpressionRealizer realizer, AST.ExpressionDecl ast, nz.org.riskscape.engine.types.Type inputType) abstract Object
nz.org.riskscape.engine.types.Type
-
Field Details
-
EMPTY
-
expression
-
resultType
protected final nz.org.riskscape.engine.types.Type resultType
-
-
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
-
getExpression
-
getResultType
public nz.org.riskscape.engine.types.Type getResultType()
-