|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Case
is a representation of a Java case
statement. It can only be contained in a Switch
.
Method Summary | |
Expr |
expr()
Get the case label. |
Case |
expr(Expr expr)
Set the case label. |
boolean |
isDefault()
Returns true iff this is the default case. |
long |
value()
Returns the value of the case label. |
Case |
value(long value)
Set the value of the case label. |
Methods inherited from interface polyglot.ast.Term |
acceptCFG, entry, 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 |
public Expr expr()
default
case.
public Case expr(Expr expr)
public boolean isDefault()
public long value()
public Case value(long value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |