|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpolyglot.ast.Node_c
polyglot.ast.Term_c
polyglot.ast.Stmt_c
polyglot.ast.AbstractBlock_c
polyglot.ast.SwitchBlock_c
public class SwitchBlock_c
A SwitchBlock is a list of statements within a switch.
| Field Summary |
|---|
| Fields inherited from class polyglot.ast.AbstractBlock_c |
|---|
statements |
| Fields inherited from class polyglot.ast.Term_c |
|---|
exceptions, reachable |
| Fields inherited from class polyglot.ast.Node_c |
|---|
del, error, ext, position |
| Constructor Summary | |
|---|---|
SwitchBlock_c(Position pos,
java.util.List statements)
|
|
| Method Summary | |
|---|---|
Node |
copy(NodeFactory nf)
Produce a copy of this node using the given NodeFactory. |
Context |
enterScope(Context c)
A SwitchBlock differs from a normal block in that
declarations made in the context of the switch block are in the scope
following the switch block. |
| Methods inherited from class polyglot.ast.AbstractBlock_c |
|---|
acceptCFG, append, firstChild, prepend, prettyPrint, reconstruct, statements, statements, toString, visitChildren |
| Methods inherited from class polyglot.ast.Term_c |
|---|
exceptionCheck, exceptions, exceptions, listChild, reachable, reachable |
| Methods inherited from class polyglot.ast.Node_c |
|---|
addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, enterChildScope, error, error, exceptionCheckEnter, ext, ext, ext, ext, init, isDisambiguated, isTypeChecked, node, position, position, prettyPrint, prettyPrint, print, printBlock, printSubStmt, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visit, visitChild, visitEdge, visitList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface polyglot.ast.Block |
|---|
append, prepend, statements, statements |
| Constructor Detail |
|---|
public SwitchBlock_c(Position pos,
java.util.List statements)
| Method Detail |
|---|
public Context enterScope(Context c)
SwitchBlock differs from a normal block in that
declarations made in the context of the switch block are in the scope
following the switch block. For example
switch (i) {
case 0:
int i = 4;
case 1:
// i is in scope, but may not have been initialized.
...
}
enterScope in interface NodeOpsenterScope in class AbstractBlock_cc - the current Context
Context to be used for visiting this node.public Node copy(NodeFactory nf)
NodeOps
copy in interface NodeOpscopy in class Node_c
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||