org.granite.generator.as3.reflect
Class JavaAbstractType

java.lang.Object
  extended by org.granite.generator.as3.reflect.JavaAbstractType
All Implemented Interfaces:
ClientTyped, JavaType
Direct Known Subclasses:
JavaBean, JavaEnum, JavaImport, JavaInterface, JavaRemoteDestination

public abstract class JavaAbstractType
extends Object
implements JavaType

Author:
Franck WOLFF

Nested Class Summary
static class JavaAbstractType.GenerationType
           
 
Nested classes/interfaces inherited from interface org.granite.generator.as3.reflect.JavaType
JavaType.Kind
 
Field Summary
protected  ClientType clientType
           
protected  JavaAbstractType.GenerationType generationType
           
protected  JavaType.Kind kind
           
protected  JavaTypeFactory provider
           
protected  Class<?> type
           
protected  URL url
           
 
Constructor Summary
protected JavaAbstractType(JavaTypeFactory provider, Class<?> type, URL url)
           
protected JavaAbstractType(JavaTypeFactory provider, Class<?> type, URL url, PropertyType propertyType)
           
 
Method Summary
 ClientType getAs3Type()
           
 ClientType getClientType()
           
 JavaAbstractType.GenerationType getGenerationType()
           
 JavaType.Kind getKind()
           
 long getLastModified()
           
 String getName()
           
 Package getPackage()
           
 String getPackageName()
           
protected  PropertyDescriptor[] getPropertyDescriptors(Class<?> type)
           
protected  JavaTypeFactory getProvider()
           
 String getQualifiedName()
           
protected  List<JavaProperty> getSortedUnmodifiableList(Collection<JavaProperty> coll)
           
 Class<?> getType()
           
 URL getUrl()
           
 boolean isBean()
           
 boolean isEntity()
           
 boolean isEnum()
           
 boolean isGenerated()
           
 boolean isInterface()
           
 boolean isRemoteDestination()
           
 boolean isWithBase()
           
protected
<T extends Collection<?>>
T
removeNull(T coll)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

provider

protected final JavaTypeFactory provider

type

protected final Class<?> type

url

protected final URL url

clientType

protected final ClientType clientType

kind

protected final JavaType.Kind kind

generationType

protected final JavaAbstractType.GenerationType generationType
Constructor Detail

JavaAbstractType

protected JavaAbstractType(JavaTypeFactory provider,
                           Class<?> type,
                           URL url)

JavaAbstractType

protected JavaAbstractType(JavaTypeFactory provider,
                           Class<?> type,
                           URL url,
                           PropertyType propertyType)
Method Detail

getProvider

protected JavaTypeFactory getProvider()

getType

public Class<?> getType()
Specified by:
getType in interface JavaType

getName

public String getName()
Specified by:
getName in interface JavaType

getPackage

public Package getPackage()
Specified by:
getPackage in interface JavaType

getPackageName

public String getPackageName()
Specified by:
getPackageName in interface JavaType

getQualifiedName

public String getQualifiedName()

getUrl

public URL getUrl()
Specified by:
getUrl in interface JavaType

isBean

public boolean isBean()
Specified by:
isBean in interface JavaType

isEntity

public boolean isEntity()
Specified by:
isEntity in interface JavaType

isEnum

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

isInterface

public boolean isInterface()
Specified by:
isInterface in interface JavaType

isRemoteDestination

public boolean isRemoteDestination()
Specified by:
isRemoteDestination in interface JavaType

isGenerated

public boolean isGenerated()
Specified by:
isGenerated in interface JavaType

isWithBase

public boolean isWithBase()
Specified by:
isWithBase in interface JavaType

getGenerationType

public JavaAbstractType.GenerationType getGenerationType()
Specified by:
getGenerationType in interface JavaType

getKind

public JavaType.Kind getKind()
Specified by:
getKind in interface JavaType

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface JavaType

getAs3Type

public ClientType getAs3Type()

getClientType

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

removeNull

protected <T extends Collection<?>> T removeNull(T coll)

getPropertyDescriptors

protected PropertyDescriptor[] getPropertyDescriptors(Class<?> type)

getSortedUnmodifiableList

protected List<JavaProperty> getSortedUnmodifiableList(Collection<JavaProperty> coll)