| Modifier and Type | Class and Description |
|---|---|
class |
BlockTemplate
Simplest implementation of ContentTemplate to write blocks of code
to the output (used for finally, final and static blockstatements)
|
class |
ClassTemplate
Template for creating a complete class file
|
class |
CommentTemplate
Create a comment in a ClassTemplate
|
class |
ContentTemplate
Abstract ContentTemplate which is the basis for most of what a java
method can contain
|
class |
ExceptionTemplate
Template for creating a "} catch ([Exception] [ex]) {" statement in a template
|
class |
IfTemplate
Template for creating conditions and else statements in another
ContentTemplate
|
class |
JavaDocTemplate |
class |
LoopTemplate
Create a loop element in a method
A loop can either be
DO
WHILE
FOR
|
class |
MemberTemplate
Template for creating a Member in a class
|
class |
MethodTemplate
Template for creating a Method in a class
|
class |
TryTemplate
Create a Try statement.
|
| Modifier and Type | Method and Description |
|---|---|
Template |
Template.getParent()
get the direct parent of this element.
|
Template |
MemberTemplate.getParent()
get the direct parent of this element.
|
Template |
ClassTemplate.getParent()
get the direct parent of this element.
|
Template |
ContentTemplate.getParent()
get the direct parent of this element.
|
Template |
CommentTemplate.getParent()
get the direct parent of this element.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Template.setParent(Template t)
set the direct parent of this element
|
void |
MemberTemplate.setParent(Template parent)
(non-Javadoc)
set the direct parent of this element
|
void |
ClassTemplate.setParent(Template parent)
set the direct parent of this element
|
void |
ContentTemplate.setParent(Template parent)
set the direct parent of this element
|
void |
CommentTemplate.setParent(Template t)
set the direct parent of this element
|