public class SizeofExpression extends Expression implements Intrinsic
| Constructor and Description |
|---|
SizeofExpression(Expression expr)
Constructs a sizeof expression with the specified expression operand
|
SizeofExpression(java.util.List pspecs)
Constructs a sizeof expression with the given specifiers
|
| Modifier and Type | Method and Description |
|---|---|
static void |
defaultPrint(SizeofExpression e,
java.io.PrintWriter o)
Prints a sizeof expression to a stream.
|
boolean |
equals(java.lang.Object o)
Compares the sizeof expression with the specified object for equality
|
Expression |
getExpression()
Returns the expression.
|
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently
created objects will use the supplied method.
|
java.lang.String |
toString()
Returns a string representation of the expression
|
clone, compareTo, findExpression, getChildren, getParent, getStatement, hashCode, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verifypublic SizeofExpression(Expression expr)
public SizeofExpression(java.util.List pspecs)
public static void defaultPrint(SizeofExpression e, java.io.PrintWriter o)
e - The expression to print.o - The writer on which to print the expression.public java.lang.String toString()
ExpressiontoString in class Expressionpublic Expression getExpression()
getExpression in interface Intrinsicpublic static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.public boolean equals(java.lang.Object o)
equals in class Expressiono - the object to be compared with.o!=null, this.getClass()==o.getClass(),
and this.children.equals(o.children) ||
this.children==o.children==null