cetus.hir
Class OffsetofExpression
java.lang.Object
cetus.hir.Expression
cetus.hir.OffsetofExpression
- All Implemented Interfaces:
- Intrinsic, Printable, Traversable, java.lang.Cloneable, java.lang.Comparable<Expression>
public class OffsetofExpression
- extends Expression
- implements Intrinsic
|
Method Summary |
static void |
defaultPrint(OffsetofExpression expr,
java.io.OutputStream stream)
Prints a __builtin_offsetof expression to a stream. |
Expression |
getExpression()
Returns the expression. |
java.util.List |
getSpecifiers()
|
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()
Every expression class should override toString method. |
| Methods inherited from class cetus.hir.Expression |
clone, compareTo, equals, equals2, findExpression, getChildren, getParent, getStatement, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verify |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OffsetofExpression
public OffsetofExpression(java.util.List pspecs,
Expression expr)
defaultPrint
public static void defaultPrint(OffsetofExpression expr,
java.io.OutputStream stream)
- Prints a __builtin_offsetof expression to a stream.
- Parameters:
expr - The expression to print.stream - The stream on which to print the expression.
toString
public java.lang.String toString()
- Description copied from class:
Expression
- Every expression class should override toString method.
- Overrides:
toString in class Expression
getExpression
public Expression getExpression()
- Returns the expression.
- Specified by:
getExpression in interface Intrinsic
- Returns:
- the expression that is the second parameter
to this function (member-designator)
getSpecifiers
public java.util.List getSpecifiers()
setClassPrintMethod
public static void setClassPrintMethod(java.lang.reflect.Method m)
- Overrides the class print method, so that all subsequently
created objects will use the supplied method.
- Parameters:
m - The new print method.