jltools.ast
Interface Switch

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

public interface Switch
extends Stmt

A Switch is an immutable representation of a Java switch statement. Such a statement has an expression which is evaluated to determine where to branch to, an a list of labels and block statements which are conditionally evaluated. One of the labels, rather than having a constant expression, may be lablled default.


Method Summary
 java.util.List elements()
           
 Switch elements(java.util.List elements)
           
 Expr expr()
           
 Switch expr(Expr expr)
           
 
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

expr

public Expr expr()

expr

public Switch expr(Expr expr)

elements

public java.util.List elements()

elements

public Switch elements(java.util.List elements)