|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Branch
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
|
| Fields inherited from interface polyglot.ast.Term |
|---|
ENTRY, EXIT |
| 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. |
Id |
labelNode()
Target label of the branch. |
Branch |
labelNode(Id label)
Set the target label of the branch. |
| Methods inherited from interface polyglot.ast.Term |
|---|
acceptCFG, exceptions, exceptions, firstChild, reachable, reachable |
| Methods inherited from interface polyglot.ast.Node |
|---|
childExpectedType, del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitChild, visitEdge, visitList |
| Methods inherited from interface polyglot.ast.JL |
|---|
init, node |
| Methods inherited from interface polyglot.ast.NodeOps |
|---|
addDecls, buildTypes, buildTypesEnter, checkConstants, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChildren |
| Methods inherited from interface polyglot.util.Copy |
|---|
copy |
| Field Detail |
|---|
static final Branch.Kind BREAK
static final Branch.Kind CONTINUE
| Method Detail |
|---|
Branch.Kind kind()
Branch kind(Branch.Kind kind)
Id labelNode()
Branch labelNode(Id label)
java.lang.String label()
Branch label(java.lang.String label)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||