|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Conditional
A Conditional is a representation of a Java ternary
expression. That is, (cond ? consequent : alternative).
| Field Summary |
|---|
| Fields inherited from interface polyglot.ast.Term |
|---|
ENTRY, EXIT |
| 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, constantValueSet, isConstant, precedence, printSubExpr, printSubExpr, type |
| Methods inherited from interface polyglot.ast.Node |
|---|
childExpectedType, del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitChild, visitEdge, visitList |
| Methods inherited from interface polyglot.ast.JL |
|---|
init, node |
| Methods inherited from interface polyglot.ast.NodeOps |
|---|
addDecls, buildTypes, buildTypesEnter, checkConstants, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, 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, exceptions, exceptions, firstChild, reachable, reachable |
| Method Detail |
|---|
Expr cond()
Conditional cond(Expr cond)
Expr consequent()
Conditional consequent(Expr consequent)
Expr alternative()
Conditional alternative(Expr alternative)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||