com.sun.faces.generate
Class AbstractGenerator.CodeWriter
java.lang.Object
java.io.Writer
java.io.BufferedWriter
com.sun.faces.generate.AbstractGenerator.CodeWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
- Enclosing class:
- AbstractGenerator
protected static class AbstractGenerator.CodeWriter
- extends BufferedWriter
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGenerator.CodeWriter
public AbstractGenerator.CodeWriter(Writer writer)
indent
public void indent()
outdent
public void outdent()
fwrite
public void fwrite(String str)
throws IOException
- Throws:
IOException
writePackage
public void writePackage(String packageName)
throws IOException
- Throws:
IOException
writeImport
public void writeImport(String fullyQualifiedClassName)
throws IOException
- Throws:
IOException
writePublicClassDeclaration
public void writePublicClassDeclaration(String className,
String extendsClass,
String[] implementsClasses,
boolean isAbstract,
boolean isFinal)
throws IOException
- Throws:
IOException
writeJavadocComment
public void writeJavadocComment(String str)
throws IOException
- Throws:
IOException
writeLineComment
public void writeLineComment(String str)
throws IOException
- Throws:
IOException
writeBlockComment
public void writeBlockComment(String str)
throws IOException
- Throws:
IOException
writeReadWriteProperty
public void writeReadWriteProperty(String propertyName,
String type,
String defaultValue)
throws IOException
- Throws:
IOException
writeReadWriteProperty
public void writeReadWriteProperty(String propertyName,
String type)
throws IOException
- Throws:
IOException
writeReadOnlyProperty
public void writeReadOnlyProperty(String propertyName,
String type,
String defaultValue)
throws IOException
- Throws:
IOException
writeReadOnlyProperty
public void writeReadOnlyProperty(String propertyName,
String type)
throws IOException
- Throws:
IOException
writeWriteOnlyProperty
public void writeWriteOnlyProperty(String propertyName,
String type,
String defaultValue)
throws IOException
- Throws:
IOException
writeWriteOnlyProperty
public void writeWriteOnlyProperty(String propertyName,
String type)
throws IOException
- Throws:
IOException
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.