comp
Class ArgList
java.lang.Object
|
+--comp.Node
|
+--comp.ArgList
- class ArgList
- extends Node
An argument list is a list of expressions that are to be evaluated
as actual parameters to a function call.
- See Also:
CallNode
Constructor Summary |
(package private) |
ArgList()
|
Method Summary |
void |
add(ExprNode e)
Add an expression to end of this arg list. |
void |
asHTML(java.io.PrintStream out)
Process each parameter. |
void |
clearStack()
Shrink the stack by the right amount after a call. |
java.lang.String |
codeGen(Scope scope,
RegBank bank)
Generating code is a matter of growing the stack by the right
amount, and then storing the values of each argument expression
onto it in order. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ArgList
ArgList()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
add
public void add(ExprNode e)
- Add an expression to end of this arg list.
codeGen
public java.lang.String codeGen(Scope scope,
RegBank bank)
- Generating code is a matter of growing the stack by the right
amount, and then storing the values of each argument expression
onto it in order.
- Specified by:
codeGen
in class Node
clearStack
public void clearStack()
- Shrink the stack by the right amount after a call.
asHTML
public void asHTML(java.io.PrintStream out)
- Process each parameter.
- Specified by:
asHTML
in class Node