lib.lang
Class Java
java.lang.Object
types.LangDef
lib.lang.Java
public class Java
- extends LangDef
Language definition for compiling Elvis code into Java source.
Constructor Summary |
Java()
Default constructor. |
Method Summary |
String[][] |
generateCode(GUIFile guiFile,
ErrorHandler errorHandler)
generateCode implements the LangDef specification, accepting a guiFile
and an error handler and returning a double array of code file names and
content to be outputted in whatever way desired by the Assembler. |
Class<? extends WidgetDef> |
getRootWidgetType()
returns the root widget type of Java's widget library. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Java
public Java()
- Default constructor. Calls the superclass constructor with "lib.java",
the prefix for Java widget definitions, as the argument.
generateCode
public String[][] generateCode(GUIFile guiFile,
ErrorHandler errorHandler)
throws GUIFileException
- generateCode implements the LangDef specification, accepting a guiFile
and an error handler and returning a double array of code file names and
content to be outputted in whatever way desired by the Assembler.
- Specified by:
generateCode
in class LangDef
- Parameters:
guiFile
- the electronic representation of the code to be generatederrorHandler
- the errorHandler to be consulted in the event of a
guiFile exception.
- Returns:
- files a double array of file names and contents for the code
- Throws:
GUIFileException
- If any errors are found in the file.
getRootWidgetType
public Class<? extends WidgetDef> getRootWidgetType()
- returns the root widget type of Java's widget library.
- Specified by:
getRootWidgetType
in class LangDef
- Returns:
- lib.java.Widget.class the class of the root widget.