|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.brains2b.typewriter.ContentTemplate
org.brains2b.typewriter.BlockTemplate
Simplest implementation of ContentTemplate to write blocks of code to the output (used for finally, final and static blockstatements)
Field Summary |
Fields inherited from class org.brains2b.typewriter.ContentTemplate |
m_content |
Constructor Summary | |
BlockTemplate(java.lang.String blockId)
Constructor |
Method Summary | |
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. |
Methods inherited from class org.brains2b.typewriter.ContentTemplate |
addImport, addText, createFor, createIf, createTry, createWhile, getContent, getParent, makeInstance, makeInstance, makeInstance, setContent, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BlockTemplate(java.lang.String blockId)
blockId
- String a valid keyword for a block:
final,finally,static,synchronized,else, etc
Method Detail |
public void write(java.io.PrintWriter writer, int indent)
super.write(PrintWriter,int)
to write out
the content for this method.
write
in interface Template
write
in class ContentTemplate
Template.write(java.io.PrintWriter, int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |