|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
to write
a class to a specified path, including the correct indention
packagename,imports,etc.
- ClassTemplate(ClassTemplate, String, String, String[]) -
Constructor for class org.brains2b.typewriter.ClassTemplate
- Constructor for creating a ClassTemplate for an Innerclass
- ClassTemplate(String, String, String[]) -
Constructor for class org.brains2b.typewriter.ClassTemplate
- Constructor for creating a ClassTemplate
- ClassTemplate(String, String, String, String[]) -
Constructor for class org.brains2b.typewriter.ClassTemplate
- Constructor for creating a ClassTemplate
- CommentTemplate - class org.brains2b.typewriter.CommentTemplate.
- Create a comment in a ClassTemplate
TODO this should also be used to create Javadoc and comments for methods
- CommentTemplate() -
Constructor for class org.brains2b.typewriter.CommentTemplate
- Constructor
- ContentTemplate - class org.brains2b.typewriter.ContentTemplate.
- Abstract ContentTemplate which is the basis for most of what a java
method can contain
Provides methods for creating contents for a method for conditions,
loops and exceptions
Every class which extends this should implement it's own
write(PrintWriter,indent)
method and call super.write(PrintWriter,indent)
to write out the content of this
method - ContentTemplate() -
Constructor for class org.brains2b.typewriter.ContentTemplate
-
- compareTo(Object) -
Method in class org.brains2b.typewriter.MethodTemplate
- compare this object to another MethodTemplate
Compares on the following properties
Modifiers, public goes for protected goes for private
Name of the method
Number of arguments to this method, smaller number before
larger
- createComment() -
Method in class org.brains2b.typewriter.ClassTemplate
- create a comment template for this class file
- createConstructor(String[]) -
Method in class org.brains2b.typewriter.ClassTemplate
- create a constructor for this class template
- createConstructor(String[][]) -
Method in class org.brains2b.typewriter.ClassTemplate
- create a constructor for this class template
- createElse() -
Method in class org.brains2b.typewriter.IfTemplate
- create an else statement for this condition
- createException(String) -
Method in class org.brains2b.typewriter.TryTemplate
- create a new Exception for this Try statement.
- createFinally() -
Method in class org.brains2b.typewriter.TryTemplate
- create a finally block for this Exception
- createFor(String) -
Method in class org.brains2b.typewriter.ContentTemplate
- create a LoopTemplate for a
for-next-loop
within this content
- createIf(String) -
Method in class org.brains2b.typewriter.ContentTemplate
- create an IfTemplate for a
condition-statement
within this content
- createInnerClass(String, String, String[]) -
Method in class org.brains2b.typewriter.ClassTemplate
- create an inner class template in this ClassTemplate
- createMember(String, String, Object) -
Method in class org.brains2b.typewriter.ClassTemplate
- create a private member variable in this ClassTemplate
- createMember(int, String, String, Object) -
Method in class org.brains2b.typewriter.ClassTemplate
- create a private member variable in this ClassTemplate
- createMember(String, String, Object, boolean) -
Method in class org.brains2b.typewriter.ClassTemplate
-
- createMember(String, String) -
Method in class org.brains2b.typewriter.ClassTemplate
- create a private member variable in this ClassTemplate without an initial value
- createMethod(String, String[]) -
Method in class org.brains2b.typewriter.ClassTemplate
- create a method with public access and no return value for the given name and with the parameters
If a method with the exact name and parameters already exist this method is returned instead of creating a new
one
- createMethod(String, String, String[]) -
Method in class org.brains2b.typewriter.ClassTemplate
- create a method with public access and the given type of return value for the given name and with the parameters
If a method with the exact name and parameters already exist this method is returned instead of creating a new
one
- createMethod(int, String, String, String[]) -
Method in class org.brains2b.typewriter.ClassTemplate
- create a method with the given access, the given type of return value for the given name and with the parameters
If a method with the exact name and parameters already exist this method is returned instead of creating a new
one
- createMethod(int, String, String, String[][]) -
Method in class org.brains2b.typewriter.ClassTemplate
- create a method with the given access, the given type of return value for the given name and with the parameters
If a method with the exact name and parameters already exist this method is returned instead of creating a new
one
- createTry(String) -
Method in class org.brains2b.typewriter.ContentTemplate
- create a TryTemplate for a
try-catch-block
within this content
- createWhile(String) -
Method in class org.brains2b.typewriter.ContentTemplate
- create a LoopTemplate for a
while-loop
within this content
java.lang.reflect.Modifier
supports:
private
public
protected
final
static
This can be the class, method, try element or loop elements
This can be the class, method, try element or loop elements
This can be the class, method, try element or loop elements
This can be the class, method, try element or loop elements
isReserved
and isMethodReserved
which checks if a String
is a Java reserved word.The parent can be the class, method, try element or loop elements
The parent can be the class, method, try element or loop elements
The parent can be the class, method, try element or loop elements
The parent can be the class, method, try element or loop elements
super.write(PrintWriter,int)
to write out
the content for this method.
Indention is multiplied by 4
to supply the spaces
for the indention.
Indention is multiplied by 4
to supply the spaces
for the indention.
super.write(PrintWriter,int)
to write out
the content for this method.
super.write(PrintWriter,int)
to write out
the content for this method.
} else if (
instead of closing the else and starting with a new condition.
Indention is multiplied by 4
to supply the spaces
for the indention.
super.write(PrintWriter,int)
to write out
the content for this method.
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |