uic.output.builder
Class CodeSnippet

java.lang.Object
  extended byuic.output.builder.Representer
      extended byuic.output.builder.CodeSnippet

public class CodeSnippet
extends Representer

This represents a piece of code that only the JavaFileWriter will write out.


Nested Class Summary
static class CodeSnippet.Argument
           
 
Field Summary
 
Fields inherited from class uic.output.builder.Representer
name, parent, staticParent
 
Constructor Summary
CodeSnippet(String title)
           
 
Method Summary
 CodeSnippet addArgument(String className, String name)
           
 CodeSnippet addText(String txt)
           
 void addUsedClassName(String fullClassName)
           
 Vector getArguments()
           
 Vector getClassNamesUsed()
           
 String getReturnType()
           
 String getText()
           
 CodeSnippet printDocumentationLine(String txt)
           
 CodeSnippet println(String txt)
           
 void setReturnType(String returnType)
           
 String toString()
           
 
Methods inherited from class uic.output.builder.Representer
getName, getParent, getStaticParent, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodeSnippet

public CodeSnippet(String title)
Method Detail

addText

public CodeSnippet addText(String txt)

println

public CodeSnippet println(String txt)

printDocumentationLine

public CodeSnippet printDocumentationLine(String txt)

toString

public String toString()
Overrides:
toString in class Representer

getText

public String getText()

getReturnType

public String getReturnType()

setReturnType

public void setReturnType(String returnType)

addUsedClassName

public void addUsedClassName(String fullClassName)

getClassNamesUsed

public Vector getClassNamesUsed()

addArgument

public CodeSnippet addArgument(String className,
                               String name)

getArguments

public Vector getArguments()


Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence