cvm.ucm.interpreter
Class Script

java.lang.Object
  extended by cvm.ucm.interpreter.Script

public class Script
extends java.lang.Object

Data structure that holds a control script in memory.

Author:
Eduardo Monteiro

Nested Class Summary
 class Script.Call
          Call holds function calls in a given control script.
 
Constructor Summary
Script()
          Constructor
 
Method Summary
 boolean add(java.lang.String functionName, java.lang.String returnType, java.util.ArrayList parmTypes, java.util.ArrayList parmValues)
          Adds a new call to the script data structure.
 Script.Call getNextCall()
          Retrieves the next available call in the control script.
 boolean hasNext()
          Checks if the script has any more function calls.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Script

public Script()
Constructor

Method Detail

hasNext

public boolean hasNext()
Checks if the script has any more function calls.

Returns:
True if script has more calls, False otherwise.

getNextCall

public Script.Call getNextCall()
Retrieves the next available call in the control script.

Returns:
Call object representing the next available function call.

add

public boolean add(java.lang.String functionName,
                   java.lang.String returnType,
                   java.util.ArrayList parmTypes,
                   java.util.ArrayList parmValues)
Adds a new call to the script data structure.

Parameters:
functionName - , name of the function
returnType - , return type of the function
parmTypes - , function parameter types
parmValues - , function parameter values
Returns:
True if added successfuly, False otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object