| java.lang.Object org.openjx.core.JXInterpreter
JXInterpreter | public class JXInterpreter (Code) | | This class interprets the object stack into Java and executes it.
author: Jared Spigner |
Method Summary | |
public boolean | executeScript(String script) This method executes a specific script.
Parameters: script - is the script we want to execute. | public boolean | interpretJXObject(JXObject jxObject) This method interprets individual elements of the stack.
Parameters: jxObject - is the object we want to interpret. | public boolean | interpretScript(JXObject jxObject) This method interprets the jxscript by walking the stack.
Parameters: jxObject - is the object we want to start interpretation with. | public boolean | oldinterpretScript(JXObject jxObject) This method interprets the jxscript by walking the stack.
Parameters: jxObject - is the top level JXObject. | public void | setScriptEngine(ScriptEngine se, ScriptEngineManager sem) This method sets the script engine and script engine manager. |
JXInterpreter | public JXInterpreter(VirtualMachine vm)(Code) | | This the constructor for the JXInterpreter class. It creates a new
instance of JXInterpreter.
Parameters: vm - is a reference to the virtual machine. |
executeScript | public boolean executeScript(String script)(Code) | | This method executes a specific script.
Parameters: script - is the script we want to execute. true on success, else false on failure. |
interpretJXObject | public boolean interpretJXObject(JXObject jxObject)(Code) | | This method interprets individual elements of the stack.
Parameters: jxObject - is the object we want to interpret. true on success, else false on failure. |
interpretScript | public boolean interpretScript(JXObject jxObject)(Code) | | This method interprets the jxscript by walking the stack.
Parameters: jxObject - is the object we want to start interpretation with. true on success, else false on failure. |
oldinterpretScript | public boolean oldinterpretScript(JXObject jxObject)(Code) | | This method interprets the jxscript by walking the stack.
Parameters: jxObject - is the top level JXObject. true on success, else false on failure. |
setScriptEngine | public void setScriptEngine(ScriptEngine se, ScriptEngineManager sem)(Code) | | This method sets the script engine and script engine manager. It also
makes the virtual machine available to the scripting language.
Parameters: se - is the script engine we want to set. Parameters: sem - is the script engine manager we want to set. |
|
|