jltools.ast
Interface If

All Superinterfaces:
java.lang.Cloneable, Copy, Node, java.io.Serializable, Stmt
All Known Implementing Classes:
If_c

public interface If
extends Stmt

An immutable representation of a Java language if statement. Contains an expression whose value is tested, a ``then'' statement (consequent), and optionally an ``else'' statement (alternate).


Method Summary
 Stmt alternative()
           
 If alternative(Stmt alternative)
           
 Expr cond()
           
 If cond(Expr cond)
           
 Stmt consequent()
           
 If consequent(Stmt consequent)
           
 
Methods inherited from interface jltools.ast.Node
buildTypes_, buildTypesOverride_, copy, disambiguate_, disambiguateOverride_, disambiguateTypes_, disambiguateTypesOverride_, dump, enterScope, exceptionCheck_, exceptionCheckOverride_, ext, ext, foldConstants_, foldConstantsOverride_, leaveScope, position, position, reconstructTypes_, translate_, typeCheck_, typeCheckOverride_, visit, visitChildren
 

Method Detail

cond

public Expr cond()

cond

public If cond(Expr cond)

consequent

public Stmt consequent()

consequent

public If consequent(Stmt consequent)

alternative

public Stmt alternative()

alternative

public If alternative(Stmt alternative)