com.bowstreet.builderutilities
Class CodeFormatter

java.lang.Object
  extended by com.bowstreet.builderutilities.CodeFormatter

public class CodeFormatter
extends java.lang.Object

Class for generating Java method code that looks decent. Indents 4 spaces by default for each curly brace.


Constructor Summary
CodeFormatter()
           
CodeFormatter(int indent)
           
 
Method Summary
 void addLine(java.lang.String text)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodeFormatter

public CodeFormatter()

CodeFormatter

public CodeFormatter(int indent)
Method Detail

addLine

public void addLine(java.lang.String text)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 IBM. All Rights Reserved.