Skip navigation links
A B C D E F G I J K L M O S T V W 

A

addException(String) - Method in class org.brains2b.typewriter.MethodTemplate
add a throws clause to the method
addImport(String) - Method in class org.brains2b.typewriter.ClassTemplate
add an import to this ClassTemplate if it has no parent (is not an Innerclass).
addImport(String) - Method in class org.brains2b.typewriter.CommentTemplate
add an String as import to the top class of this element
addImport(String) - Method in class org.brains2b.typewriter.ContentTemplate
 
addImport(String) - Method in class org.brains2b.typewriter.MemberTemplate
add an String as import to the top class of this element
addImport(String) - Method in interface org.brains2b.typewriter.Template
add an String as import to the top class of this element
addInterface(String) - Method in class org.brains2b.typewriter.ClassTemplate
Add a interface to this class by supplying its full class name
addTag(JavaDocTag, String) - Method in class org.brains2b.typewriter.JavaDocTemplate
 
addText(String) - Method in class org.brains2b.typewriter.CommentTemplate
add a comment line to the content of this template.
addText(String) - Method in class org.brains2b.typewriter.ContentTemplate
add a line to the content of this template.

B

BlockTemplate - Class in org.brains2b.typewriter
Simplest implementation of ContentTemplate to write blocks of code to the output (used for finally, final and static blockstatements)
BlockTemplate(String) - Constructor for class org.brains2b.typewriter.BlockTemplate
Constructor

C

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

D

DO - Static variable in class org.brains2b.typewriter.LoopTemplate
constant to define a do while loop

E

ExceptionTemplate - Class in org.brains2b.typewriter
Template for creating a "} catch ([Exception] [ex]) {" statement in a template
ExceptionTemplate(String) - Constructor for class org.brains2b.typewriter.ExceptionTemplate
Constructor for ExceptionTemplate.

F

FOR - Static variable in class org.brains2b.typewriter.LoopTemplate
constant to define a for loop

G

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
 

I

IfTemplate - Class in org.brains2b.typewriter
Template for creating conditions and else statements in another ContentTemplate
IfTemplate(String) - Constructor for class org.brains2b.typewriter.IfTemplate
Constructor for IfTemplate.
invokeMethod(String, String, Object) - Method in class org.brains2b.typewriter.MethodTemplate
invoke a method from another instance of an object
invokeMethod(String, String, Object[]) - Method in class org.brains2b.typewriter.MethodTemplate
invoke a method from an instance of an object
isConstructor() - Method in class org.brains2b.typewriter.MethodTemplate
check if this method is a constrcutor instead of a method
isMethodReserved(String) - Static method in class org.brains2b.typewriter.KeyWords
check if a String is a Java reserved method
isReserved(String) - Static method in class org.brains2b.typewriter.KeyWords
check if a String is a Java reserved word/keyword

J

JavaDocTag - Enum in org.brains2b.typewriter
 
JavaDocTemplate - Class in org.brains2b.typewriter
 
JavaDocTemplate() - Constructor for class org.brains2b.typewriter.JavaDocTemplate
 

K

KeyWords - Class in org.brains2b.typewriter
Class that implements single static functions isReserved and isMethodReserved which checks if a String is a Java reserved word.

L

Literal - Class in org.brains2b.typewriter
Literal is a simple wrapper class which makes sure that a value supplied is written into the template as is for both String and char.
Literal(String) - Constructor for class org.brains2b.typewriter.Literal
Constructor
Literal(char) - Constructor for class org.brains2b.typewriter.Literal
Constructor
LoopTemplate - Class in org.brains2b.typewriter
Create a loop element in a method A loop can either be DO WHILE FOR
LoopTemplate(int, String) - Constructor for class org.brains2b.typewriter.LoopTemplate
Constructor

M

m_content - Variable in class org.brains2b.typewriter.CommentTemplate
 
m_content - Variable in class org.brains2b.typewriter.ContentTemplate
 
makeInstance(String, String) - Method in class org.brains2b.typewriter.ContentTemplate
create a local instance for a class by calling its constructor with the given parameter and adds it to the content
makeInstance(String, String, Object) - Method in class org.brains2b.typewriter.ContentTemplate
create a local instance for a class by calling its constructor with the given parameter and adds it to the content
makeInstance(String, String, Object[]) - Method in class org.brains2b.typewriter.ContentTemplate
Create a local instance for a class by calling its constructor with the given parameters and adds it to the content
makeString(String) - Static method in class org.brains2b.typewriter.TypeWriterHelper
make a String between quotes from the supplied String
MemberTemplate - Class in org.brains2b.typewriter
Template for creating a Member in a class
MemberTemplate(String, String) - Constructor for class org.brains2b.typewriter.MemberTemplate
Constructor
MemberTemplate(String, String, Object) - Constructor for class org.brains2b.typewriter.MemberTemplate
Constructor
MemberTemplate(int, String, String) - Constructor for class org.brains2b.typewriter.MemberTemplate
Constructor
MemberTemplate(int, String, String, Object) - Constructor for class org.brains2b.typewriter.MemberTemplate
Constructor
MethodTemplate - Class in org.brains2b.typewriter
Template for creating a Method in a class
MethodTemplate(ClassTemplate, int, String, String, String[]) - Constructor for class org.brains2b.typewriter.MethodTemplate
Constructor
MethodTemplate(ClassTemplate, int, String, String, String[][]) - Constructor for class org.brains2b.typewriter.MethodTemplate
Constructor

O

org.brains2b.typewriter - package org.brains2b.typewriter
 

S

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

T

Template - Interface in org.brains2b.typewriter
Definition of a Template used both for writing the Class and the containing elements
toString() - Method in class org.brains2b.typewriter.Literal
Overwritten to represent a String between apostrofes and a char between quotes
TryTemplate - Class in org.brains2b.typewriter
Create a Try statement.
TryTemplate() - Constructor for class org.brains2b.typewriter.TryTemplate
 
TryTemplate(Class) - Constructor for class org.brains2b.typewriter.TryTemplate
Constructor for TryTemplate.
TryTemplate(String) - Constructor for class org.brains2b.typewriter.TryTemplate
 
TryTemplate(String, String) - Constructor for class org.brains2b.typewriter.TryTemplate
Constructor for TryTemplate.
TypeWriterException - Exception in org.brains2b.typewriter
Exception for problems occurring while invoking TypeWriter methodes
TypeWriterException() - Constructor for exception org.brains2b.typewriter.TypeWriterException
Constructor for TypeWriterException.
TypeWriterException(String) - Constructor for exception org.brains2b.typewriter.TypeWriterException
Constructor for TypeWriterException.
TypeWriterHelper - Class in org.brains2b.typewriter
Helper library for TypeWriter
TypeWriterHelper() - Constructor for class org.brains2b.typewriter.TypeWriterHelper
 

V

valueOf(String) - Static method in enum org.brains2b.typewriter.JavaDocTag
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.brains2b.typewriter.JavaDocTag
Returns an array containing the constants of this enum type, in the order they are declared.

W

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
A B C D E F G I J K L M O S T V W 
Skip navigation links