|
Download Sources | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liguorien.flex.generator.handlers.AbstractGeneratorHandler<FlexModelBuilderHandler>
com.liguorien.flex.generator.handlers.FlexModelBuilderHandler
public class FlexModelBuilderHandler
Generates code which will read and create XML from ActionScript objects.
| Constructor Summary | |
|---|---|
FlexModelBuilderHandler()
|
|
FlexModelBuilderHandler(java.lang.String builderSuffix)
Creates a new instance of FlexModelBuilderHandler |
|
| Method Summary | |
|---|---|
protected void |
appendClassSuffix(java.lang.StringBuilder buffer)
Appends a suffix to name of the generated class. |
protected void |
appendExtension(java.lang.StringBuilder buffer)
Appends the extension of the generated file. |
java.lang.String |
getBuilderSuffix()
|
ClassType |
getClassType()
Get the ClassType for this handler. |
ClassWriter |
getClassWriter()
Get the ClassWriter of this handler. |
java.io.File |
getOutputDirectory()
Return the output directory of this handler |
void |
handleClassBegin(java.lang.Class<?> clazz)
Invoked when the generator begin a new class. |
void |
handleClassEnd(java.lang.Class<?> clazz)
Basic implementation of FlexGeneratorHandler.handleClassEnd(java.lang.Class>) |
| Methods inherited from class com.liguorien.flex.generator.handlers.AbstractGeneratorHandler |
|---|
addContextMethodWriter, addImport, addMethodWriter, addPropertyWriter, appendClassPrefix, clearImports, getAttributes, getClassName, getContextMethodWriters, getCurrentClass, getElements, getGenerator, getImports, getMethodWriters, getPropertyWriters, getRelativeFilePath, getWriter, handleClassBegin, handleClassEnd, handleProperty, initWriter, resetImports, setGenerator, setWriter, writeClassName, writeDocumentation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlexModelBuilderHandler()
public FlexModelBuilderHandler(java.lang.String builderSuffix)
| Method Detail |
|---|
public java.io.File getOutputDirectory()
AbstractGeneratorHandlerReturn the output directory of this handler
getOutputDirectory in class AbstractGeneratorHandler<FlexModelBuilderHandler>public java.lang.String getBuilderSuffix()
public ClassType getClassType()
AbstractGeneratorHandlerGet the ClassType for this handler.
getClassType in interface FlexGeneratorHandlergetClassType in class AbstractGeneratorHandler<FlexModelBuilderHandler>ClassType of this handler.ClassTypepublic void handleClassBegin(java.lang.Class<?> clazz)
FlexGeneratorHandler
clazz - The class which the generator is parsing.public void handleClassEnd(java.lang.Class<?> clazz)
AbstractGeneratorHandlerBasic implementation of
FlexGeneratorHandler.handleClassEnd(java.lang.Class>)
The default behavior is to invoke
AbstractGeneratorHandler.handleClassEnd(Class clazz, ClassWriter cw) using
AbstractGeneratorHandler.getClassWriter() as the ClassWriter.
handleClassEnd in interface FlexGeneratorHandlerhandleClassEnd in class AbstractGeneratorHandler<FlexModelBuilderHandler>clazz - The current classprotected void appendClassSuffix(java.lang.StringBuilder buffer)
AbstractGeneratorHandlerAppends a suffix to name of the generated class. The default behavior
is to append (if not null) value of FlexGenerator.getClassSuffix().
appendClassSuffix in class AbstractGeneratorHandler<FlexModelBuilderHandler>buffer - The buffer which the suffix must be appended.protected void appendExtension(java.lang.StringBuilder buffer)
AbstractGeneratorHandlerAppends the extension of the generated file.
appendExtension in class AbstractGeneratorHandler<FlexModelBuilderHandler>buffer - The buffer which the extension must be appended.public ClassWriter getClassWriter()
AbstractGeneratorHandlerGet the ClassWriter of this handler.
getClassWriter in class AbstractGeneratorHandler<FlexModelBuilderHandler>ClassWriter of this handler.ClassWriter
|
FlexGenerator | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||