Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.meta.impl.java
Class JavaReflectionClass

java.lang.Object
  extended by org.jboss.errai.codegen.meta.MetaClass
      extended by org.jboss.errai.codegen.meta.impl.AbstractMetaClass<Class>
          extended by org.jboss.errai.codegen.meta.impl.java.JavaReflectionClass
All Implemented Interfaces:
HasAnnotations, MetaGenericDeclaration, MetaType

public class JavaReflectionClass
extends AbstractMetaClass<Class>


Field Summary
 
Fields inherited from class org.jboss.errai.codegen.meta.impl.AbstractMetaClass
genericSuperClass, parameterizedType
 
Constructor Summary
protected JavaReflectionClass(Class clazz, boolean erased)
           
 
Method Summary
 MetaClass asArrayOf(int dimensions)
           
 Annotation[] getAnnotations()
           
 String getCanonicalName()
           
 MetaClass getComponentType()
           
 MetaConstructor getConstructor(Class... parameters)
           
 MetaConstructor[] getConstructors()
           
 MetaClass[] getDeclaredClasses()
           
 MetaConstructor getDeclaredConstructor(Class... parameters)
           
 MetaConstructor[] getDeclaredConstructors()
           
 MetaField getDeclaredField(String name)
           
 MetaField[] getDeclaredFields()
           
 MetaMethod[] getDeclaredMethods()
           
 MetaClass getErased()
          Returns a MetaClass that represents the same class as this one, but guaranteed to have no type parameters.
 MetaField getField(String name)
           
 MetaField[] getFields()
           
 String getFullyQualifiedName()
           
 MetaClass[] getInterfaces()
           
 MetaMethod[] getMethods()
          Returns all declared and inherited public, protected, and package-private methods available on this class.
 String getName()
          Returns the name of this type as it was written in the original source code.
 String getPackageName()
           
 MetaClass getSuperClass()
           
 MetaTypeVariable[] getTypeParameters()
          Returns the array of type variables declared on this generic declaration site, in the order they were declared in the source code.
 boolean isAbstract()
           
 boolean isAnnotation()
           
 boolean isAnonymousClass()
           
 boolean isArray()
           
 boolean isEnum()
           
 boolean isFinal()
           
 boolean isInterface()
           
 boolean isPrimitive()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 boolean isSynthetic()
           
 boolean isVoid()
           
static MetaClass newInstance(Class type)
           
static MetaClass newInstance(javax.enterprise.util.TypeLiteral type)
           
static MetaClass newUncachedInstance(Class type)
           
static MetaClass newUncachedInstance(Class clazz, boolean erased)
           
static MetaClass newUncachedInstance(Class clazz, Type type)
           
static MetaClass newUncachedInstance(javax.enterprise.util.TypeLiteral type)
           
 
Methods inherited from class org.jboss.errai.codegen.meta.impl.AbstractMetaClass
_getConstructor, _getMethod, asBoxed, asClass, asUnboxed, equals, getAnnotation, getBeanDescriptor, getBestMatchingConstructor, getBestMatchingConstructor, getBestMatchingMethod, getBestMatchingMethod, getBestMatchingStaticMethod, getBestMatchingStaticMethod, getConstructor, getDeclaredMethod, getDeclaredMethod, getEnclosedMetaObject, getFieldsAnnotatedWith, getFieldsWithMetaAnnotations, getFullyQualifiedNameWithTypeParms, getGenericSuperClass, getInheritedField, getInternalName, getInternalPrimitiveNameFrom, getMethod, getMethod, getMethodsAnnotatedWith, getMethodsWithMetaAnnotations, getOuterComponentType, getParameterizedType, getParametersAnnotatedWith, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isDefaultInstantiable, isPrimitiveWrapper, toString
 
Methods inherited from class org.jboss.errai.codegen.meta.MetaClass
isConcrete
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaReflectionClass

protected JavaReflectionClass(Class clazz,
                              boolean erased)
Method Detail

newInstance

public static MetaClass newInstance(Class type)

newUncachedInstance

public static MetaClass newUncachedInstance(Class type)

newUncachedInstance

public static MetaClass newUncachedInstance(Class clazz,
                                            boolean erased)

newUncachedInstance

public static MetaClass newUncachedInstance(Class clazz,
                                            Type type)

newInstance

public static MetaClass newInstance(javax.enterprise.util.TypeLiteral type)

newUncachedInstance

public static MetaClass newUncachedInstance(javax.enterprise.util.TypeLiteral type)

getErased

public MetaClass getErased()
Description copied from class: MetaClass
Returns a MetaClass that represents the same class as this one, but guaranteed to have no type parameters.

Specified by:
getErased in class MetaClass
Returns:
A raw MetaClass representing the same class as this MetaClass. If this class has no type parameters in the first place, the receiving MetaClass instance is returned.

getName

public String getName()
Description copied from interface: MetaType
Returns the name of this type as it was written in the original source code.

Specified by:
getName in interface MetaType
Specified by:
getName in class MetaClass
Returns:
The name of this type as it was written in the original source code.

getFullyQualifiedName

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

getCanonicalName

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

getPackageName

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

getMethods

public MetaMethod[] getMethods()
Description copied from class: MetaClass
Returns all declared and inherited public, protected, and package-private methods available on this class.

Specified by:
getMethods in class MetaClass

getDeclaredMethods

public MetaMethod[] getDeclaredMethods()
Specified by:
getDeclaredMethods in class MetaClass

getFields

public MetaField[] getFields()
Specified by:
getFields in class MetaClass

getDeclaredFields

public MetaField[] getDeclaredFields()
Specified by:
getDeclaredFields in class MetaClass

getField

public MetaField getField(String name)
Specified by:
getField in class MetaClass

getDeclaredField

public MetaField getDeclaredField(String name)
Specified by:
getDeclaredField in class MetaClass

getConstructors

public MetaConstructor[] getConstructors()
Specified by:
getConstructors in class MetaClass

getDeclaredConstructors

public MetaConstructor[] getDeclaredConstructors()
Specified by:
getDeclaredConstructors in class MetaClass

getConstructor

public MetaConstructor getConstructor(Class... parameters)
Overrides:
getConstructor in class AbstractMetaClass<Class>

getDeclaredConstructor

public MetaConstructor getDeclaredConstructor(Class... parameters)
Overrides:
getDeclaredConstructor in class AbstractMetaClass<Class>

getDeclaredClasses

public MetaClass[] getDeclaredClasses()
Specified by:
getDeclaredClasses in class MetaClass

getInterfaces

public MetaClass[] getInterfaces()
Specified by:
getInterfaces in class MetaClass

getSuperClass

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

getComponentType

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

getAnnotations

public Annotation[] getAnnotations()

getTypeParameters

public MetaTypeVariable[] getTypeParameters()
Description copied from interface: MetaGenericDeclaration
Returns the array of type variables declared on this generic declaration site, in the order they were declared in the source code.

Returns:
the type variables declared at this site. The returned array is never null, but it will be empty if no type variable are declared at this site.

isPrimitive

public boolean isPrimitive()
Specified by:
isPrimitive in class MetaClass

isVoid

public boolean isVoid()
Specified by:
isVoid in class MetaClass

isInterface

public boolean isInterface()
Specified by:
isInterface in class MetaClass

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in class MetaClass

isArray

public boolean isArray()
Specified by:
isArray in class MetaClass

isEnum

public boolean isEnum()
Specified by:
isEnum in class MetaClass

isAnnotation

public boolean isAnnotation()
Specified by:
isAnnotation in class MetaClass

isPublic

public boolean isPublic()
Specified by:
isPublic in class MetaClass

isPrivate

public boolean isPrivate()
Specified by:
isPrivate in class MetaClass

isProtected

public boolean isProtected()
Specified by:
isProtected in class MetaClass

isFinal

public boolean isFinal()
Specified by:
isFinal in class MetaClass

isStatic

public boolean isStatic()
Specified by:
isStatic in class MetaClass

isSynthetic

public boolean isSynthetic()
Specified by:
isSynthetic in class MetaClass

isAnonymousClass

public boolean isAnonymousClass()
Specified by:
isAnonymousClass in class MetaClass

asArrayOf

public MetaClass asArrayOf(int dimensions)
Specified by:
asArrayOf in class MetaClass

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.