org.granite.generator.as3.reflect
Class JavaMethodProperty

java.lang.Object
  extended by org.granite.generator.as3.reflect.JavaMethodProperty
All Implemented Interfaces:
java.lang.Comparable<JavaProperty>, ClientTyped, JavaProperty

public class JavaMethodProperty
extends java.lang.Object
implements JavaProperty

Author:
Franck WOLFF

Constructor Summary
JavaMethodProperty(JavaTypeFactory provider, java.lang.String name, JavaMethod readMethod, JavaMethod writeMethod)
           
JavaMethodProperty(JavaTypeFactory provider, java.lang.String name, JavaMethod readMethod, JavaMethod writeMethod, java.lang.reflect.ParameterizedType declaringType)
           
 
Method Summary
 int compareTo(JavaProperty o)
           
 boolean equals(java.lang.Object obj)
           
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.Class<T> annotationClass)
           
 ClientType getAs3Type()
           
 java.lang.String getCapitalizedName()
           
 ClientType getClientType()
           
 java.lang.annotation.Annotation[] getDeclaredAnnotations()
           
 java.lang.reflect.Type getGenericType()
           
 java.lang.reflect.Type[] getGenericTypes()
           
 java.lang.String getName()
           
 JavaMethod getReadMethod()
           
 java.lang.Class<?> getType()
           
 JavaMethod getWriteMethod()
           
 int hashCode()
           
 boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
           
 boolean isEnum()
           
 boolean isExternalizedProperty()
           
 boolean isReadable()
           
 boolean isReadOverride()
           
 boolean isWritable()
           
 boolean isWriteOverride()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMethodProperty

public JavaMethodProperty(JavaTypeFactory provider,
                          java.lang.String name,
                          JavaMethod readMethod,
                          JavaMethod writeMethod)

JavaMethodProperty

public JavaMethodProperty(JavaTypeFactory provider,
                          java.lang.String name,
                          JavaMethod readMethod,
                          JavaMethod writeMethod,
                          java.lang.reflect.ParameterizedType declaringType)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface JavaProperty

getCapitalizedName

public java.lang.String getCapitalizedName()
Specified by:
getCapitalizedName in interface JavaProperty

getType

public java.lang.Class<?> getType()
Specified by:
getType in interface JavaProperty

getGenericType

public java.lang.reflect.Type getGenericType()

getGenericTypes

public java.lang.reflect.Type[] getGenericTypes()
Specified by:
getGenericTypes in interface JavaProperty

isReadable

public boolean isReadable()
Specified by:
isReadable in interface JavaProperty

isWritable

public boolean isWritable()
Specified by:
isWritable in interface JavaProperty

isExternalizedProperty

public boolean isExternalizedProperty()
Specified by:
isExternalizedProperty in interface JavaProperty

isEnum

public boolean isEnum()
Specified by:
isEnum in interface JavaProperty

isAnnotationPresent

public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Specified by:
isAnnotationPresent in interface JavaProperty

getAnnotation

public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
Specified by:
getAnnotation in interface JavaProperty

getDeclaredAnnotations

public java.lang.annotation.Annotation[] getDeclaredAnnotations()
Specified by:
getDeclaredAnnotations in interface JavaProperty

isReadOverride

public boolean isReadOverride()
Specified by:
isReadOverride in interface JavaProperty

isWriteOverride

public boolean isWriteOverride()
Specified by:
isWriteOverride in interface JavaProperty

getReadMethod

public JavaMethod getReadMethod()
Specified by:
getReadMethod in interface JavaProperty

getWriteMethod

public JavaMethod getWriteMethod()
Specified by:
getWriteMethod in interface JavaProperty

getAs3Type

public ClientType getAs3Type()

getClientType

public ClientType getClientType()
Specified by:
getClientType in interface ClientTyped

compareTo

public int compareTo(JavaProperty o)
Specified by:
compareTo in interface java.lang.Comparable<JavaProperty>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object