A C D E F G I K L M O S T 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
 
addImport(String) - Method in class org.brains2b.typewriter.ContentTemplate
 
addImport(String) - Method in class org.brains2b.typewriter.MemberTemplate
 
addImport(String) - Method in interface org.brains2b.typewriter.Template
add an String as import to the top class of this element
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.

C

ClassTemplate - class org.brains2b.typewriter.ClassTemplate.
Template for creating a complete class file
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
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
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
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.
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(String, String, Object, boolean) - Method in class org.brains2b.typewriter.ClassTemplate
create a private member variable in this 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
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
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
 

E

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

F

FOR - Static variable in class org.brains2b.typewriter.LoopTemplate
 

G

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.
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
getInitialValue() - Method in class org.brains2b.typewriter.MemberTemplate
get the initial value for this member
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
getObjectName(Class) - Method in class org.brains2b.typewriter.ClassTemplate
Deprecated. use TypeWriterHelper.getClassName(Class)
getObjectName(String) - Method in class org.brains2b.typewriter.ClassTemplate
Deprecated. use TypeWriterHelper.getClassName(String)
getObjectName(String) - Method in class org.brains2b.typewriter.CommentTemplate
Deprecated. use TypeWriterHelper.getClassName(String)
getObjectName(String) - Method in class org.brains2b.typewriter.ContentTemplate
Deprecated. use TypeWriterHelper.getClassName(String)
getObjectName(String) - Method in class org.brains2b.typewriter.MemberTemplate
 
getObjectName(String) - Method in interface org.brains2b.typewriter.Template
Deprecated. use TypeWriterHelper.getClassName(String)
getPackage() - Method in class org.brains2b.typewriter.ClassTemplate
get the package for this class
getParent() - Method in class org.brains2b.typewriter.ClassTemplate
 
getParent() - Method in class org.brains2b.typewriter.CommentTemplate
 
getParent() - Method in class org.brains2b.typewriter.ContentTemplate
 
getParent() - Method in class org.brains2b.typewriter.MemberTemplate
 
getParent() - Method in interface org.brains2b.typewriter.Template
get the direct parent of this element.

I

IfTemplate - class org.brains2b.typewriter.IfTemplate.
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 TODO This method needs to change
invokeMethod(String, String, Object[]) - Method in class org.brains2b.typewriter.MethodTemplate
invoke a method from another instance of an object TODO implementation needs to change to only use Strings if explicitly defined as Literal
isConstructor() - Method in class org.brains2b.typewriter.MethodTemplate
check if this method is a constrcutor instead of a method
isReserved(String) - Static method in class org.brains2b.typewriter.KeyWords
check if a String is a Java reserved word/keyword

K

KeyWords - class org.brains2b.typewriter.KeyWords.
Class that implements one single static function isReserved which checks if a String is a Java reserved word.

L

Literal - class org.brains2b.typewriter.Literal.
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 org.brains2b.typewriter.LoopTemplate.
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

MemberTemplate - class org.brains2b.typewriter.MemberTemplate.
Template for creating a Member in a class
MemberTemplate(String, String) - Constructor for class org.brains2b.typewriter.MemberTemplate
Constructor
MemberTemplate(String, String, Object, boolean) - 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, boolean) - Constructor for class org.brains2b.typewriter.MemberTemplate
Constructor
MethodTemplate - class org.brains2b.typewriter.MethodTemplate.
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
m_content - Variable in class org.brains2b.typewriter.CommentTemplate
 
m_content - Variable in class org.brains2b.typewriter.ContentTemplate
 
m_parent - Variable in class org.brains2b.typewriter.ClassTemplate
 
makeInstance(Class, String) - Method in class org.brains2b.typewriter.ContentTemplate
Create a local instance for a class by calling its constructor with no parameters
makeInstance(Class, 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 parameter and adds it to the content
makeInstance(Class, 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
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) - Method in class org.brains2b.typewriter.ClassTemplate
Deprecated. use TemplateHelper.makeString(String)
makeString(String) - Static method in class org.brains2b.typewriter.TypeWriterHelper
make a String between quotes from the supplied String

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(Vector) - Method in class org.brains2b.typewriter.CommentTemplate
Set the content for this Template
setContent(Vector) - Method in class org.brains2b.typewriter.ContentTemplate
Set the content for this Template
setInitialValue(Object) - Method in class org.brains2b.typewriter.MemberTemplate
set the initial value for this member
setInitialValue(Object, boolean) - Method in class org.brains2b.typewriter.MemberTemplate
set the initial value for this member as literal
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
 
setParent(Template) - Method in class org.brains2b.typewriter.CommentTemplate
 
setParent(Template) - Method in class org.brains2b.typewriter.ContentTemplate
 
setParent(Template) - Method in class org.brains2b.typewriter.MemberTemplate
 
setParent(Template) - Method in interface org.brains2b.typewriter.Template
set the direct parent of this element

T

Template - interface org.brains2b.typewriter.Template.
Definition of a Template used both for writing the Class and the containing elements
TryTemplate - class org.brains2b.typewriter.TryTemplate.
Create a Try statement.
TryTemplate(Class) - Constructor for class org.brains2b.typewriter.TryTemplate
Constructor for TryTemplate.
TryTemplate(String) - Constructor for class org.brains2b.typewriter.TryTemplate
Constructor for TryTemplate.
TypeWriterException - exception org.brains2b.typewriter.TypeWriterException.
Exception for problems occurring while invoking TypeWriter classes
TypeWriterException() - Constructor for class org.brains2b.typewriter.TypeWriterException
Constructor for TypeWriterException.
TypeWriterException(String) - Constructor for class org.brains2b.typewriter.TypeWriterException
Constructor for TypeWriterException.
TypeWriterHelper - class org.brains2b.typewriter.TypeWriterHelper.
Helper library for TypeWriter
TypeWriterHelper() - Constructor for class org.brains2b.typewriter.TypeWriterHelper
 
toString() - Method in class org.brains2b.typewriter.Literal
 

W

WHILE - Static variable in class org.brains2b.typewriter.LoopTemplate
 
write(PrintWriter, int) - Method in class org.brains2b.typewriter.ClassTemplate
 
write(PrintWriter, int) - Method in class org.brains2b.typewriter.CommentTemplate
 
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
 
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) - Method in class org.brains2b.typewriter.LoopTemplate
 
write(PrintWriter, int) - Method in class org.brains2b.typewriter.MemberTemplate
 
write(PrintWriter, int) - Method in class org.brains2b.typewriter.MethodTemplate
 
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 C D E F G I K L M O S T W