|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Conditional
is a representation of a Java ternary
expression. That is, (cond ? consequent : alternative)
.
Method Summary | |
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. |
Methods inherited from interface polyglot.ast.Expr |
constantValue, isConstant, precedence, printSubExpr, printSubExpr, type |
Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge |
Methods inherited from interface polyglot.ast.JL |
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren |
Methods inherited from interface polyglot.util.Copy |
copy |
Methods inherited from interface polyglot.ast.Typed |
type |
Methods inherited from interface polyglot.ast.Term |
acceptCFG, entry, reachable, reachable |
Method Detail |
public Expr cond()
public Conditional cond(Expr cond)
public Expr consequent()
public Conditional consequent(Expr consequent)
public Expr alternative()
public Conditional alternative(Expr alternative)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |