public class Label extends Statement
| Constructor and Description |
|---|
Label(IDExpression name)
Creates a new label with the specified name ID.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
defaultPrint(Label l,
java.io.PrintWriter o)
Prints a label to a stream.
|
IDExpression |
getName()
Returns the string for this Label
|
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 |
setName(IDExpression name)
Sets the name of the label with the specified name.
|
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 Label(IDExpression name)
name - the name of the label.java.lang.IllegalArgumentException - if name is null.NotAnOrphanException - if name has a parent.public static void defaultPrint(Label l, java.io.PrintWriter o)
l - The label to print.o - The writer on which to print the label.public static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.public IDExpression getName()
public void setName(IDExpression name)
name - - name of the label.java.lang.IllegalArgumentException - if name is null.NotAnOrphanException - if name has a parent.