public class GotoStatement extends Statement
| Constructor and Description |
|---|
GotoStatement()
Create a new goto statement.
|
GotoStatement(Expression label)
Create a new goto statement with the specified label.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
defaultPrint(GotoStatement s,
java.io.PrintWriter o)
Prints a case label to a stream.
|
Expression |
getExpression()
Returns the label name in the goto statement.
|
Label |
getTarget()
Returns the
Label object that this GotoStatement Jumps to. |
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently
created objects will use the supplied method.
|
void |
setExpression(Expression label)
Sets the target label name with the specified expression.
|
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 GotoStatement()
public GotoStatement(Expression label)
label - the target label of the goto statement.java.lang.IllegalArgumentException - if label is null.NotAnOrphanException - if label has a parent.public Expression getExpression()
public void setExpression(Expression label)
java.lang.IllegalArgumentException - if label is null.NotAnOrphanException - if label has a parent.public static void defaultPrint(GotoStatement s, java.io.PrintWriter o)
s - The goto statement to print.o - The writer on which to print the goto statement.public static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.