public class AlignofExpression extends Expression implements Intrinsic
| Constructor and Description |
|---|
AlignofExpression(Expression expr)
Constructs a new alignof expression with the specified expression.
|
AlignofExpression(java.util.List pspecs)
Constructs a new alignof expression with the given specifiers.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
defaultPrint(AlignofExpression e,
java.io.PrintWriter o)
Prints an alignof expression to a stream.
|
boolean |
equals(java.lang.Object o)
Checks if the alignof expression is equal to the specified object.
|
Expression |
getExpression()
Returns the operand 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 AlignofExpression(Expression expr)
expr - the operand expression.NotAnOrphanException - if expr has a parent object.public AlignofExpression(java.util.List pspecs)
pspecs - the operand specifiers.public static void defaultPrint(AlignofExpression 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