public interface If extends CompoundStmt
if
statement.
Contains an expression whose value is tested, a "then" statement
(consequent), and optionally an "else" statement (alternate).Term.Instance
Modifier and Type | Method and Description |
---|---|
Stmt |
alternative()
Get the if's else clause, or null.
|
If |
alternative(Stmt alternative)
Set the if's else clause.
|
Expr |
cond()
Get the if's condition.
|
If |
cond(Expr cond)
Set the if's condition.
|
Stmt |
consequent()
Get the if's then clause.
|
If |
consequent(Stmt consequent)
Set the if's then clause.
|
exceptions, exceptions, reachable, reachable
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