public class ExpressionStatement extends Statement
| Constructor and Description |
|---|
ExpressionStatement(Expression expr)
Create an expression statement given an expression.
|
| Modifier and Type | Method and Description |
|---|---|
ExpressionStatement |
clone()
Clone this ExpressionStatement.
|
static void |
defaultPrint(ExpressionStatement s,
java.io.PrintWriter o)
Prints a statement to a stream.
|
Expression |
getExpression()
Returns the expression 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 ExpressionStatement(Expression expr)
expr - The expression part of the statement.java.lang.IllegalArgumentException - if expr is null.NotAnOrphanException - if expr has a parent.public static void defaultPrint(ExpressionStatement s, java.io.PrintWriter o)
s - The statement to print.o - The writer on which to print the statement.public Expression getExpression()
public static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.public ExpressionStatement clone()