jcaas.script_nodes
Class FunctionCall

java.lang.Object
  extended by jcaas.script_nodes.AbstractInterpretable
      extended by jcaas.script_nodes.Statement
          extended by jcaas.script_nodes.FunctionCall
All Implemented Interfaces:
Interpretable

public class FunctionCall
extends Statement

This class represents a func_stmt node in a syntax tree of a script.


Field Summary
 
Fields inherited from class jcaas.script_nodes.Statement
NULLSTATEMENT
 
Constructor Summary
FunctionCall(Identifier id)
          Constructor for when the function has no arguments.
FunctionCall(Identifier id, ArgumentList list)
          Constructor for the rule func_stmt ::= IDENTIFIER ( argument_list )
 
Method Summary
 void interpret(Context c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionCall

public FunctionCall(Identifier id,
                    ArgumentList list)
Constructor for the rule func_stmt ::= IDENTIFIER ( argument_list )

Parameters:
id - the name of the function.
list - a list of arguments to the function.

FunctionCall

public FunctionCall(Identifier id)
Constructor for when the function has no arguments.

Parameters:
id -
Method Detail

interpret

public void interpret(Context c)