cetus.hir
Class VaArgExpression
java.lang.Object
cetus.hir.Expression
cetus.hir.VaArgExpression
- All Implemented Interfaces:
- Intrinsic, Printable, Traversable, java.lang.Cloneable, java.lang.Comparable<Expression>
public class VaArgExpression
- extends Expression
- implements Intrinsic
|
Method Summary |
static void |
defaultPrint(VaArgExpression expr,
java.io.OutputStream stream)
Prints a __builtin_va_arg expression to a stream. |
Expression |
getExpression()
Returns the expression. |
java.util.List |
getSpecifiers()
Returns the type argument which is also the type of return value. |
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 |
VaArgExpression
public VaArgExpression(Expression expr,
java.util.List pspecs)
defaultPrint
public static void defaultPrint(VaArgExpression expr,
java.io.OutputStream stream)
- Prints a __builtin_va_arg 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 or null if this sizeof operator is
being applied to a type.
getSpecifiers
public java.util.List getSpecifiers()
- Returns the type argument which is also the type of return value.
- Returns:
- the list of specifiers.
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.