|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Definition of a Template used both for writing the Class and the containing elements
Method Summary | |
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 The parent can be the class, method, try element or loop elements |
void |
write(java.io.PrintWriter writer,
int indent)
write the template information to the PrintWriter at the given indention. |
Method Detail |
public 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
public Template getParent()
This can be the class, method, try element or loop elements
public void setParent(Template t)
The parent can be the class, method, try element or loop elements
t
- Template, the parent of this elementpublic void addImport(java.lang.String name)
name
- String, the fully qualified class name. Could be used
to enter the complete package by adding *
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |