Method Summary |
|
public boolean | compileProgram() This method compiles the script into Java code which may be displayed or
executed. |
public boolean | displayProgram(OpenJX openJX, int pageid) This method displays the program.
Parameters: openJX - points to an instance of the viewer. Parameters: pageid - is the id of the page we want to display (page ids startat 1 not 0). |
public String | getApplicationFile() This method returns an instance of the applicationFile. |
public Object | getBound(String property) This method returns the bound property value.
Parameters: property - is the binding. |
public JXCompiler | getJXCompiler() This method returns an instance to the JXCompiler. |
public JXInterpreter | getJXInterpreter() This method returns an instance to the JXInterpreter. |
public JXObject | getPage(int id) This method returns a page by index number.
Parameters: id - is the index number we are searching for. |
public PluginParser | getPluginParser() This method returns an instance of the PluginParser. |
public String | getSerializedForm() This method returns a reference to the last serialized form. |
public JXViewer | getViewer() This method returns an instance of the JXViewer. |
public boolean | interpretProgram() This method compiles the script into Java code which may be displayed or
executed. |
public boolean | isBound(String property) This method returns true if a property is bound syntax wise else false.
Parameters: property - is the property we want to check. |
public boolean | loadPlugins() This method loads the plugin list into the classpath and hence makes
them accessible. |
public boolean | parsePlugins() This method parses the plugin list from the .jx application file. |
public boolean | parseProgram() This method initializes the XML parser and begins the validating and
parsing routines of the .jx application file. |
public JXObject | searchOpen(JXObject next) This method is a recursive method that searches for the first open
object in the given object chain.
Parameters: next - is the node who's children we will start with. |
public JXObject | searchOpenMatch(String localName) This method searches for all occurences of an element matching the
given element and if a match is found, returns it. |
public boolean | serializeForm() This method serializes the form to XML. |
public JXObject | serializeJXObject(JXObject jxObject, StringWriter sw, int nl) This is a recursive utility method to serialize the form.
Parameters: jxObject - is the object we want to serialize. Parameters: sw - is the string writer we want to use to serialize it. Parameters: nl - is the nest level of the XML structured tags. |
public void | setApplicationFile(String file) This method associates an application file with the Virtual Machine. |
public void | setViewer(JXViewer jxViewer) This method associates a JXViewer instance with the Virtual Machine. |
public boolean | stackCall(String localName, String data, Attributes attr, JXGLOBAL.JXSTACK_CALL call) This method calls the specified stack operation:
- Stack Push - JXSTACK_PUSH, pushes data onto the stack.
|
public boolean | stackFinal(String localName) This method is called when all operations on the specific stack item
have been finalized.
Parameters: localName - is the element name that we will use to reference thestack object. |
public boolean | stackPush(String localName, Attributes attr) This method is called when a new item must be added to the stack.
Parameters: localName - is the element we would like to add to the stack. Parameters: attr - is the set of attributes for the specific element. |
public boolean | stackUpdate(String localName, String data) This method is called when a object on the stack needs to be updated.
It can not be called once a stack object has been finalized. |