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>>
public class MetaAnnotatedClass<T>
- extends MetaAnnotatedElement<Class<T>>
- Version:
- $Rev$ $Date$
| Methods inherited from class org.apache.xbean.finder.MetaAnnotatedElement |
equals, get, getAnnotation, getAnnotations, getDeclaredAnnotations, getMetaAnnotations, hashCode, isAnnotationPresent, toString, unroll, unroll, unrollParameters |
MetaAnnotatedClass
public MetaAnnotatedClass(Class<T> clazz)
forName
public MetaAnnotatedClass<?> forName(String className)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
forName
public MetaAnnotatedClass<?> forName(String name,
boolean initialize,
ClassLoader loader)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
newInstance
public T newInstance()
throws InstantiationException,
IllegalAccessException
- Throws:
InstantiationException
IllegalAccessException
isInstance
public boolean isInstance(Object obj)
isAssignableFrom
public boolean isAssignableFrom(Class<?> cls)
isInterface
public boolean isInterface()
isArray
public boolean isArray()
isPrimitive
public boolean isPrimitive()
isAnnotation
public boolean isAnnotation()
isSynthetic
public boolean isSynthetic()
getName
public String getName()
getClassLoader
public ClassLoader getClassLoader()
getTypeParameters
public TypeVariable<Class<T>>[] getTypeParameters()
getSuperclass
public MetaAnnotatedClass<? super T> getSuperclass()
getGenericSuperclass
public Type getGenericSuperclass()
getPackage
public Package getPackage()
getInterfaces
public MetaAnnotatedClass<?>[] getInterfaces()
getGenericInterfaces
public Type[] getGenericInterfaces()
getComponentType
public MetaAnnotatedClass<?> getComponentType()
getModifiers
public int getModifiers()
getSigners
public Object[] getSigners()
getEnclosingMethod
public MetaAnnotatedMethod getEnclosingMethod()
getEnclosingConstructor
public MetaAnnotatedConstructor<?> getEnclosingConstructor()
getDeclaringClass
public MetaAnnotatedClass<?> getDeclaringClass()
getEnclosingClass
public MetaAnnotatedClass<?> getEnclosingClass()
getSimpleName
public String getSimpleName()
getCanonicalName
public String getCanonicalName()
isAnonymousClass
public boolean isAnonymousClass()
isLocalClass
public boolean isLocalClass()
isMemberClass
public boolean isMemberClass()
getClasses
public MetaAnnotatedClass<?>[] getClasses()
getFields
public MetaAnnotatedField[] getFields()
throws SecurityException
- Throws:
SecurityException
getMethods
public MetaAnnotatedMethod[] getMethods()
throws SecurityException
- Throws:
SecurityException
getConstructors
public MetaAnnotatedConstructor<?>[] getConstructors()
throws SecurityException
- Throws:
SecurityException
getField
public MetaAnnotatedField getField(String name)
throws NoSuchFieldException,
SecurityException
- Throws:
NoSuchFieldException
SecurityException
getMethod
public MetaAnnotatedMethod getMethod(String name,
Class<?>... parameterTypes)
throws NoSuchMethodException,
SecurityException
- Throws:
NoSuchMethodException
SecurityException
getConstructor
public MetaAnnotatedConstructor<T> getConstructor(Class<?>... parameterTypes)
throws NoSuchMethodException,
SecurityException
- Throws:
NoSuchMethodException
SecurityException
getDeclaredClasses
public MetaAnnotatedClass<?>[] getDeclaredClasses()
throws SecurityException
- Throws:
SecurityException
getDeclaredFields
public MetaAnnotatedField[] getDeclaredFields()
throws SecurityException
- Throws:
SecurityException
getDeclaredMethods
public MetaAnnotatedMethod[] getDeclaredMethods()
throws SecurityException
- Throws:
SecurityException
getDeclaredConstructors
public MetaAnnotatedConstructor<?>[] getDeclaredConstructors()
throws SecurityException
- Throws:
SecurityException
getDeclaredField
public MetaAnnotatedField getDeclaredField(String name)
throws NoSuchFieldException,
SecurityException
- Throws:
NoSuchFieldException
SecurityException
getDeclaredMethod
public MetaAnnotatedMethod getDeclaredMethod(String name,
Class<?>... parameterTypes)
throws NoSuchMethodException,
SecurityException
- Throws:
NoSuchMethodException
SecurityException
getDeclaredConstructor
public MetaAnnotatedConstructor<T> getDeclaredConstructor(Class<?>... parameterTypes)
throws NoSuchMethodException,
SecurityException
- Throws:
NoSuchMethodException
SecurityException
getResourceAsStream
public InputStream getResourceAsStream(String name)
getResource
public URL getResource(String name)
getProtectionDomain
public ProtectionDomain getProtectionDomain()
desiredAssertionStatus
public boolean desiredAssertionStatus()
isEnum
public boolean isEnum()
getEnumConstants
public T[] getEnumConstants()
cast
public T cast(Object obj)
asSubclass
public <U> Class<? extends U> asSubclass(Class<U> clazz)
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.