|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
java.io.PrintWriter
org.eclipse.jpt.common.utility.IndentingPrintWriter
org.eclipse.jpt.common.core.utility.BodySourceWriter
public class BodySourceWriter
Extend IndentingPrintWriter with some methods that facilitate
building class source code.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jpt.common.utility.IndentingPrintWriter |
|---|
DEFAULT_INDENT |
| Constructor Summary | |
|---|---|
BodySourceWriter(java.lang.String packageName,
java.lang.String className)
|
|
| Method Summary | |
|---|---|
java.lang.Iterable<java.lang.String> |
getImports()
|
int |
getLength()
|
java.lang.String |
getSource()
|
void |
printAnnotation(java.lang.String annotationName)
|
void |
printStringLiteral(java.lang.String string)
Convert the specified string to a String Literal and print it, adding the surrounding double-quotes and escaping characters as necessary. |
void |
printTypeDeclaration(java.lang.String typeDeclaration)
|
| Methods inherited from class org.eclipse.jpt.common.utility.IndentingPrintWriter |
|---|
decrementIndentLevel, getIndentLevel, incrementIndentLevel, indent, println, setIndentLevel, undent, write, write, write |
| Methods inherited from class java.io.PrintWriter |
|---|
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BodySourceWriter(java.lang.String packageName,
java.lang.String className)
| Method Detail |
|---|
public java.lang.String getSource()
public int getLength()
public void printAnnotation(java.lang.String annotationName)
public void printTypeDeclaration(java.lang.String typeDeclaration)
public void printStringLiteral(java.lang.String string)
public java.lang.Iterable<java.lang.String> getImports()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||