mess.extensions
Class MessLoadScript

java.lang.Object
  |
  +--mess.extensions.MessLoadScript
Direct Known Subclasses:
MessIncludeScript

public class MessLoadScript
extends Object
implements Userfunction


Field Summary
protected  HashSet scripts
           
 
Constructor Summary
MessLoadScript(MessAgent nm)
           
 
Method Summary
 Value call(ValueVector vv, Context c)
          returns number of scripts that loaded properly
protected  Iterator getLoadedScriptsIterator()
          Returns an iterator with all scripts that have been loaded (using loadScript or includeScript) until now
 String getName()
           
protected  boolean isLoaded(String scriptName)
          Returns true if the script scriptName has already been loaded.
protected  boolean loadScript(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scripts

protected HashSet scripts
Constructor Detail

MessLoadScript

public MessLoadScript(MessAgent nm)
Method Detail

getName

public String getName()
Specified by:
getName in interface Userfunction

call

public Value call(ValueVector vv,
                  Context c)
           throws JessException
returns number of scripts that loaded properly
Specified by:
call in interface Userfunction

loadScript

protected boolean loadScript(String name)
                      throws RemoteException

isLoaded

protected boolean isLoaded(String scriptName)
Returns true if the script scriptName has already been loaded. False otherwise

getLoadedScriptsIterator

protected Iterator getLoadedScriptsIterator()
Returns an iterator with all scripts that have been loaded (using loadScript or includeScript) until now