public interface CodeBuilder
| Modifier and Type | Method and Description |
|---|---|
void |
addImport(java.lang.String import_)
Add one import to the existing set.
|
java.lang.String |
getBody()
Returns the custom Java code.
|
java.lang.String |
getClassDefinition()
Returns a regular Java class definition.
|
java.lang.Object |
getCompiledClass()
Returns an object of a proper class incorporating the custom code.
|
void |
setBody(java.lang.String body)
Set the body of the custom code.
|
void |
setImports(java.util.HashSet imports)
Set the imports used for buliding the code.
|
void setImports(java.util.HashSet imports)
imports - A set of imports.void addImport(java.lang.String import_)
import_ - The import to be added.void setBody(java.lang.String body)
body - A string with Java code.java.lang.String getBody()
java.lang.String getClassDefinition()
java.lang.Object getCompiledClass()
throws GSException
GSException