public class Case extends Statement
| Constructor and Description |
|---|
Case(Expression expr)
Create a new case with the specified expression.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
defaultPrint(Case c,
java.io.PrintWriter o)
Prints a case label to a stream.
|
Expression |
getExpression()
Returns the target expression associated with the case statement.
|
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently
created objects will use the supplied method.
|
annotate, annotateAfter, annotateBefore, clone, containsAnnotation, detach, equals, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getChildren, getParent, getProcedure, hashCode, print, removeAnnotations, removeAnnotations, removeChild, setChild, setLineNumber, setParent, setPrintMethod, swapWith, toString, verify, wherepublic Case(Expression expr)
expr - The expression that activates the case.NotAnOrphanException - if expr has a parent.public static void defaultPrint(Case c, java.io.PrintWriter o)
c - The case label to print.o - The writer on which to print the case label.public Expression getExpression()
public static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.