Download Sources

com.liguorien.flex.generator.writers.as3.methods
Class GetterSetter

java.lang.Object
  extended by com.liguorien.flex.generator.writers.as3.methods.GetterSetter
All Implemented Interfaces:
MethodWriter<FlexModelHandler>

public class GetterSetter
extends java.lang.Object
implements MethodWriter<FlexModelHandler>

Version:
0.2
Author:
Nicolas Désy

Field Summary
 
Fields inherited from interface com.liguorien.flex.generator.writers.MethodWriter
COMPARATOR
 
Constructor Summary
GetterSetter()
           
 
Method Summary
 boolean acceptClass(java.lang.Class<?> clazz)
          Determines if this writer accepts a class.
 int getPriority()
          Returns the priority for this writer.
 void handleProperty(java.io.Writer w, java.beans.PropertyDescriptor property, FlexModelHandler handler)
           
 void writeMethod(java.io.Writer w, FlexGenerator gen, FlexModelHandler handler, java.lang.Class<?> clazz)
          Writes method signature and body to the writer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetterSetter

public GetterSetter()
Method Detail

writeMethod

public void writeMethod(java.io.Writer w,
                        FlexGenerator gen,
                        FlexModelHandler handler,
                        java.lang.Class<?> clazz)
                 throws java.io.IOException
Description copied from interface: MethodWriter
Writes method signature and body to the writer

Specified by:
writeMethod in interface MethodWriter<FlexModelHandler>
Parameters:
w -
gen -
handler -
clazz -
Throws:
java.io.IOException

handleProperty

public void handleProperty(java.io.Writer w,
                           java.beans.PropertyDescriptor property,
                           FlexModelHandler handler)
Parameters:
property -
handler -

acceptClass

public boolean acceptClass(java.lang.Class<?> clazz)
Description copied from interface: MethodWriter
Determines if this writer accepts a class.

Specified by:
acceptClass in interface MethodWriter<FlexModelHandler>
Parameters:
clazz - The class to check
Returns:
a boolean which indicated if the writer accepts the class

getPriority

public int getPriority()
Description copied from interface: MethodWriter
Returns the priority for this writer. Writer with the highest value will be the first executed.

Specified by:
getPriority in interface MethodWriter<FlexModelHandler>
Returns:
The priority for this writer

FlexGenerator

Copyright 2006 Nicolas Désy. All rights reserved.