|
Download Sources | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClassWriter
| Method Summary | |
|---|---|
int |
getClassIndentationLevel()
Returns the indentation level of the class declaration |
void |
writeClassDeclaration(java.io.Writer w,
FlexGenerator g,
java.lang.String className,
java.lang.String subClass,
java.util.Set<java.lang.String> interfaces)
Writes package declaration |
void |
writeClassEnd(java.io.Writer w,
FlexGenerator g)
Writes class's end declaration. |
void |
writePackageDeclaration(java.io.Writer w,
FlexGenerator g,
java.lang.Class<?> clazz,
java.util.Set<java.lang.String> imports)
Writes package declaration |
void |
writeProperty(java.io.Writer w,
FlexGenerator g,
java.lang.String varName,
java.beans.PropertyDescriptor prop,
java.lang.String prefix,
java.lang.String suffix,
NodeType type)
Writes code to access a property. |
| Method Detail |
|---|
int getClassIndentationLevel()
void writeProperty(java.io.Writer w,
FlexGenerator g,
java.lang.String varName,
java.beans.PropertyDescriptor prop,
java.lang.String prefix,
java.lang.String suffix,
NodeType type)
throws java.io.IOException
w - The writer used to output the resultg - The current generator.varName - The name of variable where the property is accessedprop - The ProspectorDescriptor of the current propertyprefix - The code to be written before generated code (can be null)suffix - The code to be written after generated code (can be null)type - The type of XML element for this property
java.io.IOException - If an IO error occursNodeType
void writePackageDeclaration(java.io.Writer w,
FlexGenerator g,
java.lang.Class<?> clazz,
java.util.Set<java.lang.String> imports)
throws java.io.IOException
w - The writer used to output the resultg - The current generator.clazz - The current classimports - A Set of import statement.
java.io.IOException - If an IO error occurs
void writeClassDeclaration(java.io.Writer w,
FlexGenerator g,
java.lang.String className,
java.lang.String subClass,
java.util.Set<java.lang.String> interfaces)
throws java.io.IOException
w - The writer used to output the resultg - The current generator.className - The name of the generated classsubClass - The subclass of the generated class (can be null)interfaces - The interfaces implemented by the generated class (can be null)
java.io.IOException
void writeClassEnd(java.io.Writer w,
FlexGenerator g)
throws java.io.IOException
w - The writer used to output the resultg - The current generator
java.io.IOException
|
FlexGenerator | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||