public class OffsetofExpression extends Expression implements Intrinsic
| Constructor and Description |
|---|
OffsetofExpression(java.util.List pspecs,
Expression expr)
Constructs an offsetof expression with the specified specifiers and
the expression.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
defaultPrint(OffsetofExpression e,
java.io.PrintWriter o)
Prints a __builtin_offsetof expression to a stream.
|
boolean |
equals(java.lang.Object o)
Compares the expression with the specified object for equality.
|
Expression |
getExpression()
Returns the expression operand.
|
java.util.List |
getSpecifiers()
Returns the list of specifiers.
|
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 OffsetofExpression(java.util.List pspecs,
Expression expr)
pspecs - the list of specifiers.expr - the operand expression.java.lang.IllegalArgumentException - if expr is invalid.NotAnOrphanException - if expr has a parent.public static void defaultPrint(OffsetofExpression 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 java.util.List getSpecifiers()
public 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