public class DeclarationStatement extends Statement
| Constructor and Description |
|---|
DeclarationStatement(Declaration decl)
Create a declaration statement given a declaration.
|
| Modifier and Type | Method and Description |
|---|---|
DeclarationStatement |
clone()
Returns a clone of the declaration statement.
|
static void |
defaultPrint(DeclarationStatement s,
java.io.PrintWriter o)
Prints a statement to a stream.
|
Declaration |
getDeclaration()
Returns the declaration part of the 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, containsAnnotation, detach, equals, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getChildren, getParent, getProcedure, hashCode, print, removeAnnotations, removeAnnotations, removeChild, setChild, setLineNumber, setParent, setPrintMethod, swapWith, toString, verify, wherepublic DeclarationStatement(Declaration decl)
decl - The declaration part of the statement.java.lang.IllegalArgumentException - if decl is null.NotAnOrphanException - if decl has a parent.public static void defaultPrint(DeclarationStatement s, java.io.PrintWriter o)
s - The statement to print.o - The writer on which to print the statement.public Declaration getDeclaration()
public static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.public DeclarationStatement clone()