org.granite.generator.as3.reflect
Class JavaRemoteDestination

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

public class JavaRemoteDestination
extends JavaAbstractType

Author:
Franck WOLFF

Nested Class Summary
 
Nested classes/interfaces inherited from class org.granite.generator.as3.reflect.JavaAbstractType
JavaAbstractType.GenerationType
 
Nested classes/interfaces inherited from interface org.granite.generator.as3.reflect.JavaType
JavaType.Kind
 
Field Summary
protected  String channelId
           
protected  String destinationName
           
protected  Set<JavaImport> imports
           
protected  List<JavaMethod> methods
           
protected  Map<String,JavaMethodProperty> properties
           
protected  JavaType superclass
           
 
Fields inherited from class org.granite.generator.as3.reflect.JavaAbstractType
clientType, generationType, kind, provider, type, url
 
Constructor Summary
JavaRemoteDestination(JavaTypeFactory provider, Class<?> type, URL url)
           
 
Method Summary
protected  void addToImports(JavaImport javaImport)
           
protected  void addToImports(Set<JavaImport> javaImports)
           
 JavaInterface convertToJavaInterface()
           
static Method[] filterOverrides(Method[] methods, ParameterizedType[] declaringTypes)
           
 String getChannelId()
           
 String getDestinationName()
           
 Set<JavaImport> getImports()
           
 Collection<JavaMethod> getMethods()
           
 Collection<JavaMethodProperty> getProperties()
           
 JavaType getSuperclass()
           
 boolean hasSuperclass()
           
protected  List<JavaMethod> initMethods()
           
protected  Map<String,JavaMethodProperty> initProperties()
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotation)
           
protected  boolean shouldGenerateMethod(Method method)
           
protected  boolean shouldGenerateProperty(Method method)
           
 
Methods inherited from class org.granite.generator.as3.reflect.JavaAbstractType
getAs3Type, getClientType, getGenerationType, getKind, getLastModified, getName, getPackage, getPackageName, getPropertyDescriptors, getProvider, getQualifiedName, getSortedUnmodifiableList, getType, getUrl, isBean, isEntity, isEnum, isGenerated, isInterface, isRemoteDestination, isWithBase, removeNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imports

protected final Set<JavaImport> imports

superclass

protected final JavaType superclass

methods

protected final List<JavaMethod> methods

properties

protected final Map<String,JavaMethodProperty> properties

destinationName

protected final String destinationName

channelId

protected final String channelId
Constructor Detail

JavaRemoteDestination

public JavaRemoteDestination(JavaTypeFactory provider,
                             Class<?> type,
                             URL url)
Method Detail

getImports

public Set<JavaImport> getImports()

addToImports

protected void addToImports(JavaImport javaImport)

addToImports

protected void addToImports(Set<JavaImport> javaImports)

hasSuperclass

public boolean hasSuperclass()

getSuperclass

public JavaType getSuperclass()

getMethods

public Collection<JavaMethod> getMethods()

getProperties

public Collection<JavaMethodProperty> getProperties()

getDestinationName

public String getDestinationName()

getChannelId

public String getChannelId()

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotation)

initMethods

protected List<JavaMethod> initMethods()

shouldGenerateMethod

protected boolean shouldGenerateMethod(Method method)

initProperties

protected Map<String,JavaMethodProperty> initProperties()

shouldGenerateProperty

protected boolean shouldGenerateProperty(Method method)

convertToJavaInterface

public JavaInterface convertToJavaInterface()

filterOverrides

public static Method[] filterOverrides(Method[] methods,
                                       ParameterizedType[] declaringTypes)