org.granite.generator.as3.reflect
Class JavaAbstractType

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

public abstract class JavaAbstractType
extends java.lang.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  As3Type as3Type
           
protected  JavaAbstractType.GenerationType generationType
           
protected  JavaType.Kind kind
           
protected  JavaTypeFactory provider
           
protected  java.lang.Class<?> type
           
protected  java.net.URL url
           
 
Constructor Summary
protected JavaAbstractType(JavaTypeFactory provider, java.lang.Class<?> type, java.net.URL url)
           
 
Method Summary
 As3Type getAs3Type()
           
 JavaAbstractType.GenerationType getGenerationType()
           
 JavaType.Kind getKind()
           
 long getLastModified()
           
 java.lang.String getName()
           
 java.lang.Package getPackage()
           
 java.lang.String getPackageName()
           
protected  java.beans.PropertyDescriptor[] getPropertyDescriptors(java.lang.Class<?> type)
           
protected  JavaTypeFactory getProvider()
           
 java.lang.String getQualifiedName()
           
protected  java.util.List<JavaProperty> getSortedUnmodifiableList(java.util.Collection<JavaProperty> coll)
           
 java.lang.Class<?> getType()
           
 java.net.URL getUrl()
           
 boolean isBean()
           
 boolean isEntity()
           
 boolean isEnum()
           
 boolean isGenerated()
           
 boolean isInterface()
           
 boolean isRemoteDestination()
           
 boolean isWithBase()
           
protected
<T extends java.util.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 java.lang.Class<?> type

url

protected final java.net.URL url

as3Type

protected final As3Type as3Type

kind

protected final JavaType.Kind kind

generationType

protected final JavaAbstractType.GenerationType generationType
Constructor Detail

JavaAbstractType

protected JavaAbstractType(JavaTypeFactory provider,
                           java.lang.Class<?> type,
                           java.net.URL url)
Method Detail

getProvider

protected JavaTypeFactory getProvider()

getType

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

getName

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

getPackage

public java.lang.Package getPackage()
Specified by:
getPackage in interface JavaType

getPackageName

public java.lang.String getPackageName()
Specified by:
getPackageName in interface JavaType

getQualifiedName

public java.lang.String getQualifiedName()

getUrl

public java.net.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 As3Type getAs3Type()
Specified by:
getAs3Type in interface As3Typed

removeNull

protected <T extends java.util.Collection<?>> T removeNull(T coll)

getPropertyDescriptors

protected java.beans.PropertyDescriptor[] getPropertyDescriptors(java.lang.Class<?> type)

getSortedUnmodifiableList

protected java.util.List<JavaProperty> getSortedUnmodifiableList(java.util.Collection<JavaProperty> coll)