public class BlockTemplate extends ContentTemplate
m_content| Constructor and Description |
|---|
BlockTemplate(java.lang.String blockId)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(java.io.PrintWriter writer,
int indent)
overwrite this to implement a content types specific needs and
call
super.write(PrintWriter,int) to write out
the content for this method. |
addImport, addText, createFor, createIf, createTry, createTry, createWhile, getContent, getParent, makeInstance, makeInstance, makeInstance, setContent, setParentpublic BlockTemplate(java.lang.String blockId)
blockId - String a valid keyword for a block:
final,finally,static,synchronized,else, etcpublic void write(java.io.PrintWriter writer,
int indent)
super.write(PrintWriter,int) to write out
the content for this method.write in interface Templatewrite in class ContentTemplatewriter - 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.write(java.io.PrintWriter, int)