| |
|
| java.lang.Object org.openjx.core.JXCompiler
JXCompiler | public class JXCompiler (Code) | | This class handles compilation of a JXObject into a Java class.
author: Jared Spigner |
Method Summary | |
public boolean | Compile(JXObject jxObject) This method compiles the script recursively starting with the form
object.
Parameters: jxObject - is the object we want to start compilation with. | public boolean | compileJXObject(JXObject jxObject) This method compiles individual elements of the stack.
Parameters: jxObject - is the object we want to compile. | public boolean | compileScript(JXObject jxObject) This method compiles the script recursively.
Parameters: jxObject - is the object we want to start compilation with. | public void | setupScriptEngine() This method initializes and sets up the scripting engine. |
scriptEngine | public ScriptEngine scriptEngine(Code) | | This is a reference to the ScriptEngine.
|
virtualMachine | public VirtualMachine virtualMachine(Code) | | This is a reference to the Virtual Machine.
|
JXCompiler | public JXCompiler(VirtualMachine vm)(Code) | | This the constructor for the JXCompiler class. It creates a new
instance of JXCompiler.
Parameters: vm - is a reference to the virtual machine. |
Compile | public boolean Compile(JXObject jxObject)(Code) | | This method compiles the script recursively starting with the form
object.
Parameters: jxObject - is the object we want to start compilation with. true on success, else false on failure. |
compileJXObject | public boolean compileJXObject(JXObject jxObject)(Code) | | This method compiles individual elements of the stack.
Parameters: jxObject - is the object we want to compile. true on success, else false on failure. |
compileScript | public boolean compileScript(JXObject jxObject)(Code) | | This method compiles the script recursively.
Parameters: jxObject - is the object we want to start compilation with. true on success, else false on failure. |
setupScriptEngine | public void setupScriptEngine()(Code) | | This method initializes and sets up the scripting engine. We are using
JavaScript, perhaps in the future we can add to the language base.
|
|
|
|