public class JavaReflectionClass extends AbstractMetaClass<Class>
genericSuperClass, parameterizedType
Modifier | Constructor and Description |
---|---|
protected |
JavaReflectionClass(Class clazz,
boolean erased) |
Modifier and Type | Method and Description |
---|---|
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) |
_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, hashContent, hashString, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isDefaultInstantiable, isPrimitiveWrapper, toString
isConcrete
isAnnotationPresent
protected JavaReflectionClass(Class clazz, boolean erased)
public static MetaClass newInstance(javax.enterprise.util.TypeLiteral type)
public static MetaClass newUncachedInstance(javax.enterprise.util.TypeLiteral type)
public MetaClass getErased()
MetaClass
public String getName()
MetaType
public String getFullyQualifiedName()
getFullyQualifiedName
in class MetaClass
public String getCanonicalName()
getCanonicalName
in class MetaClass
public String getPackageName()
getPackageName
in class MetaClass
public MetaMethod[] getMethods()
MetaClass
getMethods
in class MetaClass
public MetaMethod[] getDeclaredMethods()
getDeclaredMethods
in class MetaClass
public MetaField[] getDeclaredFields()
getDeclaredFields
in class MetaClass
public MetaField getDeclaredField(String name)
getDeclaredField
in class MetaClass
public MetaConstructor[] getConstructors()
getConstructors
in class MetaClass
public MetaConstructor[] getDeclaredConstructors()
getDeclaredConstructors
in class MetaClass
public MetaConstructor getConstructor(Class... parameters)
getConstructor
in class AbstractMetaClass<Class>
public MetaConstructor getDeclaredConstructor(Class... parameters)
getDeclaredConstructor
in class AbstractMetaClass<Class>
public MetaClass[] getDeclaredClasses()
getDeclaredClasses
in class MetaClass
public MetaClass[] getInterfaces()
getInterfaces
in class MetaClass
public MetaClass getSuperClass()
getSuperClass
in class MetaClass
public MetaClass getComponentType()
getComponentType
in class MetaClass
public Annotation[] getAnnotations()
public MetaTypeVariable[] getTypeParameters()
MetaGenericDeclaration
public boolean isPrimitive()
isPrimitive
in class MetaClass
public boolean isInterface()
isInterface
in class MetaClass
public boolean isAbstract()
isAbstract
in class MetaClass
public boolean isAnnotation()
isAnnotation
in class MetaClass
public boolean isProtected()
isProtected
in class MetaClass
public boolean isSynthetic()
isSynthetic
in class MetaClass
public boolean isAnonymousClass()
isAnonymousClass
in class MetaClass
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.