polyglot.ast
Interface Labeled

All Superinterfaces:
java.lang.Cloneable, CompoundStmt, Copy, JL, Node, NodeOps, Stmt, Term
All Known Implementing Classes:
Labeled_c

public interface Labeled
extends CompoundStmt

Am immutable representation of a Java statement with a label. A labeled statement contains the statement being labeled and a string label.


Method Summary
 java.lang.String label()
          The label.
 Labeled label(java.lang.String label)
          Set the label.
 Stmt statement()
          The statement to label.
 Labeled statement(Stmt statement)
          Set the statement to label.
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList
 
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
 

Method Detail

label

java.lang.String label()
The label.


label

Labeled label(java.lang.String label)
Set the label.


statement

Stmt statement()
The statement to label.


statement

Labeled statement(Stmt statement)
Set the statement to label.