Class CallExprNode

java.lang.Object
  extended by ASTNode
      extended by ExprNode
          extended by CallExprNode

public class CallExprNode
extends ExprNode

An AST node representing a function call: "func(args)" or "func". At parse time, this class is also used to represent a subscripted variable reference "var(subscript)".


Nested Class Summary
 
Nested classes/interfaces inherited from class ASTNode
ASTNode.DataType
 
Constructor Summary
CallExprNode(IdNode func, java.util.List<ExprNode> arguments)
          Creates a new CallExprNode.
 
Method Summary
 void unparse(java.io.PrintWriter p, int level)
          Prints a source representation of the tree rooted at this node on output stream p.
 
Methods inherited from class ASTNode
indent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallExprNode

public CallExprNode(IdNode func,
                    java.util.List<ExprNode> arguments)
Creates a new CallExprNode.

Parameters:
func - the name of the function.
arguments - the list of arguments. May be a zero-length list, but must not be null.
Method Detail

unparse

public void unparse(java.io.PrintWriter p,
                    int level)
Prints a source representation of the tree rooted at this node on output stream p.

Specified by:
unparse in class ASTNode
Parameters:
p - the place to display the output.
level - the number of levels of indentation to use if the output requires more than one line.