public interface Conditional extends Expr
Conditional
is a representation of a Java ternary
expression. That is, (cond ? consequent : alternative)
.Term.Instance
Modifier and Type | Method and Description |
---|---|
Expr |
alternative()
Get the expression to evaluate when the condition is false.
|
Conditional |
alternative(Expr alternative)
Set the expression to evaluate when the condition is false.
|
Expr |
cond()
Get the condition to test.
|
Conditional |
cond(Expr cond)
Set the condition to test.
|
Expr |
consequent()
Get the expression to evaluate when the condition is true.
|
Conditional |
consequent(Expr consequent)
Set the expression to evaluate when the condition is true.
|
constantValue, constantValueSet, isConstant, precedence, printSubExpr, printSubExpr, type
del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitEdge
addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, extRewrite, extRewriteEnter, lang, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitChildren, visitList
exceptions, exceptions, reachable, reachable
Expr cond()
Conditional cond(Expr cond)
Expr consequent()
Conditional consequent(Expr consequent)
Expr alternative()
Conditional alternative(Expr alternative)