public class VaArgExpression extends Expression implements Intrinsic
| Constructor and Description |
|---|
VaArgExpression(Expression expr,
java.util.List pspecs)
Constructs a va_arg expression with the specified expression and specs.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
defaultPrint(VaArgExpression e,
java.io.PrintWriter o)
Prints a __builtin_va_arg expression to a stream.
|
boolean |
equals(java.lang.Object o)
Compares the va_arg expression with the specified object for equality.
|
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()
Returns a string representation of the expression
|
clone, compareTo, findExpression, getChildren, getParent, getStatement, hashCode, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verifypublic VaArgExpression(Expression expr, java.util.List pspecs)
expr - the operand expression.pspecs - the list of specifiers.NotAnOrphanException - if expr has a parent.public static void defaultPrint(VaArgExpression 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