|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.codemodel.ClassWriter
public class ClassWriter
Writes single classes to a specified Writer
write(com.sun.codemodel.JDefinedClass),
render(com.sun.codemodel.JDefinedClass)| Constructor Summary | |
|---|---|
ClassWriter(Writer writer)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the underlying writer |
static String |
render(com.sun.codemodel.JDefinedClass type)
Render the specified type as a string |
void |
write(com.sun.codemodel.JDefinedClass type)
Write the specified type to the Writer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassWriter(Writer writer)
writer - the writer to write all types to| Method Detail |
|---|
public void write(com.sun.codemodel.JDefinedClass type)
Writer
type - the type to write to the writer
public void close()
throws IOException
IOException - if the writer throws an IOException while closingpublic static String render(com.sun.codemodel.JDefinedClass type)
type - the type to render
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||