| java.lang.Object org.openjx.jx.JXControl
All known Subclasses: org.openjx.jx.jxmetaCTL, org.openjx.jx.jxtextfieldCTL, org.openjx.jx.jxcomponentCTL, org.openjx.jx.jxsectionCTL, org.openjx.jx.jxlabelCTL, org.openjx.jx.jxscrollPaneCTL, org.openjx.jx.jxprogressbarCTL, org.openjx.jx.jxcheckboxCTL, org.openjx.jx.jxcomboboxCTL, org.openjx.jx.jxpasswordfieldCTL, org.openjx.jx.jxlistCTL, org.openjx.jx.jxpageCTL, org.openjx.jx.jximageCTL, org.openjx.jx.jxbuttonCTL, org.openjx.jx.jxscriptCTL,
JXControl | abstract public class JXControl (Code) | | This class is an abstract class representing the methods which must be
defined by a component or plugin component.
author: Jared Spigner |
Method Summary | |
abstract public boolean | Compile(JXObject jxObject) This method is called when the compiler wishes to compile the
component into Java code.
Parameters: jxObject - points to the JXObject in the stack we wish to compileinto Java. | abstract public boolean | Interpret(JXObject jxObject) This method is called when the interpreter wishes to interpret the
component's script into Java code.
Parameters: jxObject - points to the JXObject in the stack we wish to interpretinto Java. | public boolean | instantiateObject(JXObject jxObject, String className, Class[] parameterTypes, Object[] objectTypes) This is a generalized utility method which uses the Reflection API to
instantiate a class type to an object.
Parameters: jxObject - is the object we are trying to build for. Parameters: className - is the name of the class we are trying to instantiate. Parameters: parameterTypes - is the paramter types, this should always be an empty array since this particular method does not support constructorswith arguments. Parameters: objectTypes - are the parameters. |
jxTranslator | protected JXTranslator jxTranslator(Code) | | This is a reference to the JXTranslator.
|
virtualMachine | protected VirtualMachine virtualMachine(Code) | | This is a reference to the Virtual Machine.
|
JXControl | public JXControl(VirtualMachine vm)(Code) | | This is the constructor for the JXControl class. It creates a new
instance of JXControl.
Parameters: vm - points to an instance of the Virtual Machine. |
Compile | abstract public boolean Compile(JXObject jxObject)(Code) | | This method is called when the compiler wishes to compile the
component into Java code.
Parameters: jxObject - points to the JXObject in the stack we wish to compileinto Java. true on success, else false on failure. |
Interpret | abstract public boolean Interpret(JXObject jxObject)(Code) | | This method is called when the interpreter wishes to interpret the
component's script into Java code.
Parameters: jxObject - points to the JXObject in the stack we wish to interpretinto Java. true on success, else false on failure. |
instantiateObject | public boolean instantiateObject(JXObject jxObject, String className, Class[] parameterTypes, Object[] objectTypes)(Code) | | This is a generalized utility method which uses the Reflection API to
instantiate a class type to an object.
Parameters: jxObject - is the object we are trying to build for. Parameters: className - is the name of the class we are trying to instantiate. Parameters: parameterTypes - is the paramter types, this should always be an empty array since this particular method does not support constructorswith arguments. Parameters: objectTypes - are the parameters. true on success, else false on failure. |
|
|