org.jboss.errai.ioc.rebind.ioc.codegen.meta.impl
Class AbstractMetaClass<T>

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.codegen.meta.MetaClass
      extended by org.jboss.errai.ioc.rebind.ioc.codegen.meta.impl.AbstractMetaClass<T>
All Implemented Interfaces:
HasAnnotations, MetaGenericDeclaration, MetaType
Direct Known Subclasses:
BuildMetaClass, GWTClass, JavaReflectionClass

public abstract class AbstractMetaClass<T>
extends MetaClass

Author:
Mike Brock , Christian Sadilek

Field Summary
protected  MetaParameterizedType parameterizedType
           
 
Constructor Summary
protected AbstractMetaClass(T enclosedMetaObject)
           
 
Method Summary
protected static MetaConstructor _getConstructor(MetaConstructor[] constructors, MetaClass... parmTypes)
           
protected static MetaMethod _getMethod(MetaMethod[] methods, String name, MetaClass... parmTypes)
           
 MetaClass asBoxed()
           
 Class<?> asClass()
           
 MetaClass asUnboxed()
           
 boolean equals(Object o)
           
<A extends Annotation>
A
getAnnotation(Class<A> annotation)
           
 MetaConstructor getBestMatchingConstructor(Class... parameters)
           
 MetaConstructor getBestMatchingConstructor(MetaClass... parameters)
           
 MetaMethod getBestMatchingMethod(String name, Class... parameters)
           
 MetaMethod getBestMatchingMethod(String name, MetaClass... parameters)
           
 MetaMethod getBestMatchingStaticMethod(String name, Class... parameters)
           
 MetaMethod getBestMatchingStaticMethod(String name, MetaClass... parameters)
           
 MetaConstructor getConstructor(Class... parameters)
           
 MetaConstructor getConstructor(MetaClass... parameters)
           
 MetaConstructor getDeclaredConstructor(Class... parameters)
           
 MetaMethod getDeclaredMethod(String name, Class... parmTypes)
           
 MetaMethod getDeclaredMethod(String name, MetaClass... parmTypes)
           
 T getEnclosedMetaObject()
           
 MetaClass getErased()
           
 String getFullyQualifiedNameWithTypeParms()
           
 String getInternalName()
           
 MetaMethod getMethod(String name, Class... parmTypes)
           
 MetaMethod getMethod(String name, MetaClass... parameters)
           
 MetaParameterizedType getParameterizedType()
           
 int hashCode()
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotation)
           
 boolean isAssignableFrom(Class clazz)
           
 boolean isAssignableFrom(com.google.gwt.core.ext.typeinfo.JClassType clazz)
           
 boolean isAssignableFrom(MetaClass clazz)
           
 boolean isAssignableTo(Class clazz)
           
 boolean isAssignableTo(com.google.gwt.core.ext.typeinfo.JClassType clazz)
           
 boolean isAssignableTo(MetaClass clazz)
           
 
Methods inherited from class org.jboss.errai.ioc.rebind.ioc.codegen.meta.MetaClass
getCanonicalName, getComponentType, getConstructors, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethods, getField, getFields, getFullyQualifiedName, getInterfaces, getMethods, getName, getPackageName, getSuperClass, isAbstract, isAnnotation, isArray, isEnum, isFinal, isInterface, isPrimitive, isPrivate, isProtected, isPublic, isStatic, isVoid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.errai.ioc.rebind.ioc.codegen.meta.HasAnnotations
getAnnotations
 
Methods inherited from interface org.jboss.errai.ioc.rebind.ioc.codegen.meta.MetaGenericDeclaration
getTypeParameters
 

Field Detail

parameterizedType

protected MetaParameterizedType parameterizedType
Constructor Detail

AbstractMetaClass

protected AbstractMetaClass(T enclosedMetaObject)
Method Detail

getFullyQualifiedNameWithTypeParms

public String getFullyQualifiedNameWithTypeParms()
Specified by:
getFullyQualifiedNameWithTypeParms in class MetaClass

_getMethod

protected static MetaMethod _getMethod(MetaMethod[] methods,
                                       String name,
                                       MetaClass... parmTypes)

_getConstructor

protected static MetaConstructor _getConstructor(MetaConstructor[] constructors,
                                                 MetaClass... parmTypes)

getMethod

public MetaMethod getMethod(String name,
                            Class... parmTypes)
Specified by:
getMethod in class MetaClass

getMethod

public MetaMethod getMethod(String name,
                            MetaClass... parameters)
Specified by:
getMethod in class MetaClass

getDeclaredMethod

public MetaMethod getDeclaredMethod(String name,
                                    Class... parmTypes)
Specified by:
getDeclaredMethod in class MetaClass

getDeclaredMethod

public MetaMethod getDeclaredMethod(String name,
                                    MetaClass... parmTypes)
Specified by:
getDeclaredMethod in class MetaClass

getBestMatchingMethod

public MetaMethod getBestMatchingMethod(String name,
                                        Class... parameters)
Specified by:
getBestMatchingMethod in class MetaClass

getBestMatchingMethod

public MetaMethod getBestMatchingMethod(String name,
                                        MetaClass... parameters)
Specified by:
getBestMatchingMethod in class MetaClass

getBestMatchingStaticMethod

public MetaMethod getBestMatchingStaticMethod(String name,
                                              Class... parameters)
Specified by:
getBestMatchingStaticMethod in class MetaClass

getBestMatchingStaticMethod

public MetaMethod getBestMatchingStaticMethod(String name,
                                              MetaClass... parameters)
Specified by:
getBestMatchingStaticMethod in class MetaClass

getBestMatchingConstructor

public MetaConstructor getBestMatchingConstructor(Class... parameters)
Specified by:
getBestMatchingConstructor in class MetaClass

getBestMatchingConstructor

public MetaConstructor getBestMatchingConstructor(MetaClass... parameters)
Specified by:
getBestMatchingConstructor in class MetaClass

getConstructor

public MetaConstructor getConstructor(Class... parameters)
Specified by:
getConstructor in class MetaClass

getConstructor

public MetaConstructor getConstructor(MetaClass... parameters)
Specified by:
getConstructor in class MetaClass

getDeclaredConstructor

public MetaConstructor getDeclaredConstructor(Class... parameters)
Specified by:
getDeclaredConstructor in class MetaClass

getAnnotation

public final <A extends Annotation> A getAnnotation(Class<A> annotation)

isAnnotationPresent

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

getEnclosedMetaObject

public T getEnclosedMetaObject()

isAssignableFrom

public boolean isAssignableFrom(MetaClass clazz)
Specified by:
isAssignableFrom in class MetaClass

isAssignableTo

public boolean isAssignableTo(MetaClass clazz)
Specified by:
isAssignableTo in class MetaClass

isAssignableFrom

public boolean isAssignableFrom(Class clazz)
Specified by:
isAssignableFrom in class MetaClass

isAssignableTo

public boolean isAssignableTo(Class clazz)
Specified by:
isAssignableTo in class MetaClass

isAssignableTo

public boolean isAssignableTo(com.google.gwt.core.ext.typeinfo.JClassType clazz)
Specified by:
isAssignableTo in class MetaClass

isAssignableFrom

public boolean isAssignableFrom(com.google.gwt.core.ext.typeinfo.JClassType clazz)
Specified by:
isAssignableFrom in class MetaClass

getParameterizedType

public MetaParameterizedType getParameterizedType()
Specified by:
getParameterizedType in class MetaClass

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

asClass

public Class<?> asClass()
Specified by:
asClass in class MetaClass

asBoxed

public MetaClass asBoxed()
Specified by:
asBoxed in class MetaClass

asUnboxed

public MetaClass asUnboxed()
Specified by:
asUnboxed in class MetaClass

getErased

public MetaClass getErased()
Specified by:
getErased in class MetaClass

getInternalName

public String getInternalName()
Specified by:
getInternalName in class MetaClass


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.