Package org.apache.xbean.finder
Class MetaAnnotatedClass<T>
java.lang.Object
org.apache.xbean.finder.MetaAnnotatedElement<Class<T>>
org.apache.xbean.finder.MetaAnnotatedClass<T>
- All Implemented Interfaces:
AnnotatedElement,Annotated<Class<T>>,MetaAnnotated<Class<T>>
- Version:
- $Rev$ $Date$
-
Field Summary
Fields inherited from class org.apache.xbean.finder.MetaAnnotatedElement
annotations, target -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<U> Class<? extends U> asSubclass(Class<U> clazz) booleanforName(String name, boolean initialize, ClassLoader loader) MetaAnnotatedClass<?>[]getConstructor(Class<?>... parameterTypes) MetaAnnotatedClass<?>[]getDeclaredConstructor(Class<?>... parameterTypes) getDeclaredField(String name) getDeclaredMethod(String name, Class<?>... parameterTypes) T[]Type[]MetaAnnotatedClass<?>[]intgetName()getResource(String name) getResourceAsStream(String name) Object[]MetaAnnotatedClass<? super T> TypeVariable<Class<T>>[]booleanbooleanbooleanisArray()booleanisAssignableFrom(Class<?> cls) booleanisEnum()booleanisInstance(Object obj) booleanbooleanbooleanbooleanbooleanprivate MetaAnnotatedClass<?> private MetaAnnotatedClass<?>[]private MetaAnnotatedConstructor<?> to(Constructor<?> constructor) private MetaAnnotatedConstructor<?>[]to(Constructor<?>[] a) private MetaAnnotatedFieldprivate MetaAnnotatedField[]private MetaAnnotatedMethodprivate MetaAnnotatedMethod[]Methods inherited from class org.apache.xbean.finder.MetaAnnotatedElement
equals, get, getAnnotation, getAnnotations, getDeclaredAnnotations, getMetaAnnotations, hashCode, isAnnotationPresent, toString, unroll, unroll, unrollParametersMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Constructor Details
-
MetaAnnotatedClass
-
-
Method Details
-
forName
- Throws:
ClassNotFoundException
-
to
-
forName
public MetaAnnotatedClass<?> forName(String name, boolean initialize, ClassLoader loader) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
newInstance
-
isInstance
-
isAssignableFrom
-
isInterface
public boolean isInterface() -
isArray
public boolean isArray() -
isPrimitive
public boolean isPrimitive() -
isAnnotation
public boolean isAnnotation() -
isSynthetic
public boolean isSynthetic() -
getName
-
getClassLoader
-
getTypeParameters
-
getSuperclass
-
getGenericSuperclass
-
getPackage
-
getInterfaces
-
getGenericInterfaces
-
getComponentType
-
getModifiers
public int getModifiers() -
getSigners
-
getEnclosingMethod
-
getEnclosingConstructor
-
getDeclaringClass
-
getEnclosingClass
-
getSimpleName
-
getCanonicalName
-
isAnonymousClass
public boolean isAnonymousClass() -
isLocalClass
public boolean isLocalClass() -
isMemberClass
public boolean isMemberClass() -
getClasses
-
getFields
- Throws:
SecurityException
-
getMethods
- Throws:
SecurityException
-
getConstructors
- Throws:
SecurityException
-
getField
-
getMethod
public MetaAnnotatedMethod getMethod(String name, Class<?>... parameterTypes) throws NoSuchMethodException, SecurityException -
getConstructor
public MetaAnnotatedConstructor<T> getConstructor(Class<?>... parameterTypes) throws NoSuchMethodException, SecurityException -
getDeclaredClasses
- Throws:
SecurityException
-
getDeclaredFields
- Throws:
SecurityException
-
getDeclaredMethods
- Throws:
SecurityException
-
getDeclaredConstructors
- Throws:
SecurityException
-
getDeclaredField
public MetaAnnotatedField getDeclaredField(String name) throws NoSuchFieldException, SecurityException -
getDeclaredMethod
public MetaAnnotatedMethod getDeclaredMethod(String name, Class<?>... parameterTypes) throws NoSuchMethodException, SecurityException -
getDeclaredConstructor
public MetaAnnotatedConstructor<T> getDeclaredConstructor(Class<?>... parameterTypes) throws NoSuchMethodException, SecurityException -
getResourceAsStream
-
getResource
-
getProtectionDomain
-
desiredAssertionStatus
public boolean desiredAssertionStatus() -
isEnum
public boolean isEnum() -
getEnumConstants
-
cast
-
asSubclass
-
to
-
to
-
to
-
to
-
to
-
to
-
to
-