rero.script
Class ScriptCore

java.lang.Object
  extended byrero.script.ScriptCore
All Implemented Interfaces:
Loadable

public class ScriptCore
extends Object
implements Loadable


Field Summary
protected  BridgeKeeper bridges
           
protected  Hashtable environment
           
protected  GlobalVariables globalData
           
protected  ScriptLoader scriptLoader
           
protected  ScriptVariables variables
           
 
Constructor Summary
ScriptCore()
           
 
Method Summary
 void addBridge(Loadable l)
           
 void announceFramework(ChatFramework ircfw)
           
 Scalar callFunction(String function, Stack parameters)
           
static void runCode(ScriptInstance owner, Block code, HashMap locals)
          convienence function for running some code and installing some local variables
 boolean scriptLoaded(ScriptInstance si)
           
 boolean scriptUnloaded(ScriptInstance si)
           
 void storeDataStructures(WeakHashMap centralDataRepository)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scriptLoader

protected ScriptLoader scriptLoader

environment

protected Hashtable environment

variables

protected ScriptVariables variables

globalData

protected GlobalVariables globalData

bridges

protected BridgeKeeper bridges
Constructor Detail

ScriptCore

public ScriptCore()
Method Detail

announceFramework

public void announceFramework(ChatFramework ircfw)

addBridge

public void addBridge(Loadable l)

storeDataStructures

public void storeDataStructures(WeakHashMap centralDataRepository)

callFunction

public Scalar callFunction(String function,
                           Stack parameters)

runCode

public static void runCode(ScriptInstance owner,
                           Block code,
                           HashMap locals)
convienence function for running some code and installing some local variables


scriptLoaded

public boolean scriptLoaded(ScriptInstance si)
Specified by:
scriptLoaded in interface Loadable

scriptUnloaded

public boolean scriptUnloaded(ScriptInstance si)
Specified by:
scriptUnloaded in interface Loadable