|
Download Sources | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liguorien.flex.generator.writers.as3.AS3Writer
public class AS3Writer
| Field Summary | |
|---|---|
static AS3Writer |
WRITER
|
| Constructor Summary | |
|---|---|
AS3Writer()
|
|
| Method Summary | |
|---|---|
int |
getClassIndentationLevel()
Returns the indentation level of the class declaration |
static ClassWriter |
getContextWriter()
|
static java.lang.String |
getTypeName(java.lang.Class type)
Returns the AS3 classname of a Java type. |
static void |
setContextWriter(ClassWriter w)
|
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 e4xPrefix,
java.lang.String e4xSuffix,
NodeType type)
Writes code to access a property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final AS3Writer WRITER
| Constructor Detail |
|---|
public AS3Writer()
| Method Detail |
|---|
public static ClassWriter getContextWriter()
public static void setContextWriter(ClassWriter w)
public int getClassIndentationLevel()
ClassWriter
getClassIndentationLevel in interface ClassWriterpublic static java.lang.String getTypeName(java.lang.Class type)
type - A Java class
public void writeProperty(java.io.Writer w,
FlexGenerator g,
java.lang.String varName,
java.beans.PropertyDescriptor prop,
java.lang.String e4xPrefix,
java.lang.String e4xSuffix,
NodeType type)
throws java.io.IOException
ClassWriter
writeProperty in interface ClassWriterw - 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 propertye4xPrefix - The code to be written before generated code (can be null)e4xSuffix - 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
public void writePackageDeclaration(java.io.Writer w,
FlexGenerator g,
java.lang.Class<?> clazz,
java.util.Set<java.lang.String> imports)
throws java.io.IOException
ClassWriter
writePackageDeclaration in interface ClassWriterw - 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
public 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
ClassWriter
writeClassDeclaration in interface ClassWriterw - 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
public void writeClassEnd(java.io.Writer w,
FlexGenerator g)
throws java.io.IOException
ClassWriter
writeClassEnd in interface ClassWriterw - 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 | |||||||||