public interface Template
| Modifier and Type | Method and Description |
|---|---|
void |
addImport(java.lang.String name)
add an String as import to the top class of this element
|
Template |
getParent()
get the direct parent of this element.
|
void |
setParent(Template t)
set the direct parent of this element
|
void |
write(java.io.PrintWriter writer,
int indent)
write the template information to the PrintWriter at the given
indention.
|
void write(java.io.PrintWriter writer,
int indent)
Indention is multiplied by 4 to supply the spaces
for the indention.
writer - PrintWriter, an initialized PrintWriter to write this
element of the Class toindent - int, the indention for this element.
Value is multiplied by four to give the number of spaces used for indention
Template getParent()
This can be the class, method, try element or loop elements
void setParent(Template t)
The parent can be the class, method, try element or loop elements
t - Template, the parent of this elementvoid addImport(java.lang.String name)
name - String, the fully qualified class name. Could be used
to enter the complete package by adding *