public interface Case extends SwitchElement
Case
is a representation of a Java case
statement. It can only be contained in a Switch
.Term.Instance
Modifier and Type | Method and Description |
---|---|
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.
|
exceptions, exceptions, reachable, reachable
del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitEdge
addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, extRewrite, extRewriteEnter, lang, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitChildren, visitList
Expr expr()
default
case.boolean isDefault()
long value()
Case value(long value)