Package org.brains2b.typewriter

Interface Summary
Template Definition of a Template used both for writing the Class and the containing elements
 

Class Summary
BlockTemplate Simplest implementation of ContentTemplate to write blocks of code to the output (used for finally, final and static blockstatements)
ClassTemplate Template for creating a complete class file call the to write a class to a specified path, including the correct indention packagename,imports,etc.
CommentTemplate Create a comment in a ClassTemplate TODO this should also be used to create Javadoc and comments for methods
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
ExceptionTemplate Template for creating a "} catch ([Exception] [ex]) {" statement in a template This Template will make an variable name out of the Exception itself by taking all capital letters in an exception name and putting them one after another and finally adding ex to it.
IfTemplate Template for creating conditions and else statements in another ContentTemplate
KeyWords Class that implements single static functions isReserved and isMethodReserved which checks if a String is a Java reserved word.
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.
LoopTemplate Create a loop element in a method A loop can either be DO WHILE FOR
MemberTemplate Template for creating a Member in a class
MethodTemplate Template for creating a Method in a class
TryTemplate Create a Try statement.
TypeWriterHelper Helper library for TypeWriter
 

Exception Summary
TypeWriterException Exception for problems occurring while invoking TypeWriter methodes