protected static class AbstractGenerator.CodeWriter extends BufferedWriter
| Constructor and Description |
|---|
CodeWriter(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
fwrite(String str) |
void |
indent() |
void |
outdent() |
void |
writeBlockComment(String str) |
void |
writeImport(String fullyQualifiedClassName) |
void |
writeJavadocComment(String str) |
void |
writeLineComment(String str) |
void |
writePackage(String packageName) |
void |
writePublicClassDeclaration(String className,
String extendsClass,
String[] implementsClasses,
boolean isAbstract,
boolean isFinal) |
void |
writeReadOnlyProperty(String propertyName,
String type) |
void |
writeReadOnlyProperty(String propertyName,
String type,
String defaultValue) |
void |
writeReadWriteProperty(String propertyName,
String type) |
void |
writeReadWriteProperty(String propertyName,
String type,
String defaultValue) |
void |
writeWriteOnlyProperty(String propertyName,
String type) |
void |
writeWriteOnlyProperty(String propertyName,
String type,
String defaultValue) |
public CodeWriter(Writer writer)
public void indent()
public void outdent()
public void fwrite(String str) throws IOException
IOExceptionpublic void writePackage(String packageName) throws IOException
IOExceptionpublic void writeImport(String fullyQualifiedClassName) throws IOException
IOExceptionpublic void writePublicClassDeclaration(String className, String extendsClass, String[] implementsClasses, boolean isAbstract, boolean isFinal) throws IOException
IOExceptionpublic void writeJavadocComment(String str) throws IOException
IOExceptionpublic void writeLineComment(String str) throws IOException
IOExceptionpublic void writeBlockComment(String str) throws IOException
IOExceptionpublic void writeReadWriteProperty(String propertyName, String type, String defaultValue) throws IOException
IOExceptionpublic void writeReadWriteProperty(String propertyName, String type) throws IOException
IOExceptionpublic void writeReadOnlyProperty(String propertyName, String type, String defaultValue) throws IOException
IOExceptionpublic void writeReadOnlyProperty(String propertyName, String type) throws IOException
IOExceptionpublic void writeWriteOnlyProperty(String propertyName, String type, String defaultValue) throws IOException
IOExceptionpublic void writeWriteOnlyProperty(String propertyName, String type) throws IOException
IOExceptionCopyright © 2010–2020 JBoss by Red Hat. All rights reserved.