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. |
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 |
BREAK
static final Branch.Kind BREAK
CONTINUE
static final Branch.Kind CONTINUE
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.