- ClassTemplate - Class in org.brains2b.typewriter
-
Template for creating a complete class file
- ClassTemplate(ClassTemplate, int, 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 in org.brains2b.typewriter
-
Create a comment in a ClassTemplate
- CommentTemplate() - Constructor for class org.brains2b.typewriter.CommentTemplate
-
Constructor
- 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
- ContentTemplate - Class in org.brains2b.typewriter
-
Abstract ContentTemplate which is the basis for most of what a java
method can contain
- ContentTemplate() - Constructor for class org.brains2b.typewriter.ContentTemplate
-
- 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
- createInnerClass(int, String, String, String[]) - Method in class org.brains2b.typewriter.ClassTemplate
-
create an inner class template in this ClassTemplate
- createJavadoc() - Method in class org.brains2b.typewriter.ClassTemplate
-
create a comment template for this class file
- createJavadoc() - Method in class org.brains2b.typewriter.MemberTemplate
-
create a comment template for this class file
- createJavadoc() - Method in class org.brains2b.typewriter.MethodTemplate
-
create an empty javadoc template for this method
- 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
-
Deprecated.
- 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
- 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
- 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
- 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
- createTry(String) - Method in class org.brains2b.typewriter.ContentTemplate
-
create a TryTemplate for a try-catch-block within this content
- createTry(String, 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
- generateJavadoc() - Method in class org.brains2b.typewriter.MethodTemplate
-
create an javadoc and generates default entries for params, exceptions and return
- getClassName(Class) - Static method in class org.brains2b.typewriter.TypeWriterHelper
-
get the name without the package from the class
- getClassName(String) - Static method in class org.brains2b.typewriter.TypeWriterHelper
-
get the name without the package from the String representing a class
- getCompleteFile() - Method in class org.brains2b.typewriter.ClassTemplate
-
get the filename of the completed file.
- getCondition() - Method in class org.brains2b.typewriter.IfTemplate
-
get the condition.
- getCondition() - Method in class org.brains2b.typewriter.LoopTemplate
-
- getContent() - Method in class org.brains2b.typewriter.CommentTemplate
-
get the content for this template
- getContent() - Method in class org.brains2b.typewriter.ContentTemplate
-
get the content for this template
- getDefaultException() - Method in class org.brains2b.typewriter.TryTemplate
-
get the Exception this Try statement was created with
- getExceptions() - Method in class org.brains2b.typewriter.MethodTemplate
-
- getExceptions() - Method in class org.brains2b.typewriter.TryTemplate
-
- getInitialValue() - Method in class org.brains2b.typewriter.MemberTemplate
-
get the initial value for this member
- getMethods() - Method in class org.brains2b.typewriter.ClassTemplate
-
- getModifiers(int) - Static method in class org.brains2b.typewriter.TypeWriterHelper
-
get a String representation for the sum of modifiers as
defined in java.lang.reflect.Modifier
supports:
private
public
protected
final
static
- getName() - Method in class org.brains2b.typewriter.ClassTemplate
-
get the name of this class
- getName() - Method in class org.brains2b.typewriter.MethodTemplate
-
get the name of this method
- getPackage() - Method in class org.brains2b.typewriter.ClassTemplate
-
get the package for this class
- getParent() - Method in class org.brains2b.typewriter.ClassTemplate
-
get the direct parent of this element.
- getParent() - Method in class org.brains2b.typewriter.CommentTemplate
-
get the direct parent of this element.
- getParent() - Method in class org.brains2b.typewriter.ContentTemplate
-
get the direct parent of this element.
- getParent() - Method in class org.brains2b.typewriter.MemberTemplate
-
get the direct parent of this element.
- getParent() - Method in interface org.brains2b.typewriter.Template
-
get the direct parent of this element.
- getReturnType() - Method in class org.brains2b.typewriter.MethodTemplate
-
get the return type of this method
- getSuperclass() - Method in class org.brains2b.typewriter.ClassTemplate
-
- getTag() - Method in enum org.brains2b.typewriter.JavaDocTag
-
- getType() - Method in class org.brains2b.typewriter.MemberTemplate
-
- setCondition(String) - Method in class org.brains2b.typewriter.IfTemplate
-
set the expression to evaluate for this condition
- setCondition(String) - Method in class org.brains2b.typewriter.LoopTemplate
-
set the condition.
- setConstructor(boolean) - Method in class org.brains2b.typewriter.MethodTemplate
-
set this Methodtemplate to be a constructor instead of a normal
method
- setContent(List) - Method in class org.brains2b.typewriter.CommentTemplate
-
set the content for this Template
- setContent(List) - Method in class org.brains2b.typewriter.ContentTemplate
-
set the content for this Template
- setDescription(JavaDocTag, String, String) - Method in class org.brains2b.typewriter.JavaDocTemplate
-
- setInitialValue(Object) - Method in class org.brains2b.typewriter.MemberTemplate
-
set the initial value for this member
- setModifiers(int) - Method in class org.brains2b.typewriter.MethodTemplate
-
set the modifiers for this method
- setName(String) - Method in class org.brains2b.typewriter.ClassTemplate
-
set the name of the class
- setName(String) - Method in class org.brains2b.typewriter.MethodTemplate
-
get the name of this method
- setPackage(String) - Method in class org.brains2b.typewriter.ClassTemplate
-
set the package name for this class
- setParent(Template) - Method in class org.brains2b.typewriter.ClassTemplate
-
set the direct parent of this element
- setParent(Template) - Method in class org.brains2b.typewriter.CommentTemplate
-
set the direct parent of this element
- setParent(Template) - Method in class org.brains2b.typewriter.ContentTemplate
-
set the direct parent of this element
- setParent(Template) - Method in class org.brains2b.typewriter.MemberTemplate
-
(non-Javadoc)
set the direct parent of this element
- setParent(Template) - Method in interface org.brains2b.typewriter.Template
-
set the direct parent of this element
- setReturnType(String) - Method in class org.brains2b.typewriter.MethodTemplate
-
set the return type of this method
- setType(String) - Method in class org.brains2b.typewriter.MemberTemplate
-
- spaces(int) - Static method in class org.brains2b.typewriter.TypeWriterHelper
-
create a String of length length filled with spaces
- WHILE - Static variable in class org.brains2b.typewriter.LoopTemplate
-
constant to define a while loop
- write(PrintWriter, int) - Method in class org.brains2b.typewriter.BlockTemplate
-
overwrite this to implement a content types specific needs and
call super.write(PrintWriter,int) to write out
the content for this method.
- write(PrintWriter, int) - Method in class org.brains2b.typewriter.ClassTemplate
-
write the template information to the PrintWriter at the given
indention.
- write(PrintWriter, int) - Method in class org.brains2b.typewriter.CommentTemplate
-
write the template information to the PrintWriter at the given
indention.
- write(PrintWriter, int) - Method in class org.brains2b.typewriter.ContentTemplate
-
overwrite this to implement a content types specific needs and
call super.write(PrintWriter,int) to write out
the content for this method.
- write(PrintWriter, int) - Method in class org.brains2b.typewriter.ExceptionTemplate
-
overwrite this to implement a content types specific needs and
call super.write(PrintWriter,int) to write out
the content for this method.
- write(PrintWriter, int) - Method in class org.brains2b.typewriter.IfTemplate
-
this implementation of write follows the rule that if
this statement has an else statement which only contains
another if statement the statement should read } else if (
instead of closing the else and starting with a new condition.
- write(PrintWriter, int, boolean) - Method in class org.brains2b.typewriter.IfTemplate
-
write the if statement to the PrintWriter
- write(PrintWriter, int) - Method in class org.brains2b.typewriter.JavaDocTemplate
-
write the template information to the PrintWriter at the given
indention.
- write(PrintWriter, int) - Method in class org.brains2b.typewriter.LoopTemplate
-
- write(PrintWriter, int) - Method in class org.brains2b.typewriter.MemberTemplate
-
write the template information to the PrintWriter at the given
indention.
- write(PrintWriter, int) - Method in class org.brains2b.typewriter.MethodTemplate
-
overwrite this to implement a content types specific needs and
call super.write(PrintWriter,int) to write out
the content for this method.
- write(PrintWriter, int) - Method in interface org.brains2b.typewriter.Template
-
write the template information to the PrintWriter at the given
indention.
- write(PrintWriter, int) - Method in class org.brains2b.typewriter.TryTemplate
-
write the TryStatement to the PrintWriter.
- writeClass(String) - Method in class org.brains2b.typewriter.ClassTemplate
-
write a class file with filename equals name+".java" to a given
path