polyglot.ast
Interface Branch

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

public interface Branch
extends Stmt

A Branch is an immutable representation of a branch statment in Java (a break or continue).


Nested Class Summary
static class Branch.Kind
          Branch kind: either break or continue.
 
Field Summary
static Branch.Kind BREAK
           
static Branch.Kind CONTINUE
           
 
Method Summary
 Branch.Kind kind()
          The kind of branch.
 Branch kind(Branch.Kind kind)
          Set the kind of branch.
 java.lang.String label()
          Target label of the branch.
 Branch label(java.lang.String label)
          Set the target label of the branch.
 
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
 

Field Detail

BREAK

static final Branch.Kind BREAK

CONTINUE

static final Branch.Kind CONTINUE
Method Detail

kind

Branch.Kind kind()
The kind of branch.


kind

Branch kind(Branch.Kind kind)
Set the kind of branch.


label

java.lang.String label()
Target label of the branch.


label

Branch label(java.lang.String label)
Set the target label of the branch.