org.apache.xbean.finder
Class MetaAnnotatedClass<T>

java.lang.Object
  extended by org.apache.xbean.finder.MetaAnnotatedElement<Class<T>>
      extended by 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$

Field Summary
 
Fields inherited from class org.apache.xbean.finder.MetaAnnotatedElement
annotations, target
 
Constructor Summary
MetaAnnotatedClass(Class<T> clazz)
           
 
Method Summary
<U> Class<? extends U>
asSubclass(Class<U> clazz)
           
 T cast(Object obj)
           
 boolean desiredAssertionStatus()
           
 MetaAnnotatedClass<?> forName(String className)
           
 MetaAnnotatedClass<?> forName(String name, boolean initialize, ClassLoader loader)
           
 String getCanonicalName()
           
 MetaAnnotatedClass<?>[] getClasses()
           
 ClassLoader getClassLoader()
           
 MetaAnnotatedClass<?> getComponentType()
           
 MetaAnnotatedConstructor<T> getConstructor(Class<?>... parameterTypes)
           
 MetaAnnotatedConstructor<?>[] getConstructors()
           
 MetaAnnotatedClass<?>[] getDeclaredClasses()
           
 MetaAnnotatedConstructor<T> getDeclaredConstructor(Class<?>... parameterTypes)
           
 MetaAnnotatedConstructor<?>[] getDeclaredConstructors()
           
 MetaAnnotatedField getDeclaredField(String name)
           
 MetaAnnotatedField[] getDeclaredFields()
           
 MetaAnnotatedMethod getDeclaredMethod(String name, Class<?>... parameterTypes)
           
 MetaAnnotatedMethod[] getDeclaredMethods()
           
 MetaAnnotatedClass<?> getDeclaringClass()
           
 MetaAnnotatedClass<?> getEnclosingClass()
           
 MetaAnnotatedConstructor<?> getEnclosingConstructor()
           
 MetaAnnotatedMethod getEnclosingMethod()
           
 T[] getEnumConstants()
           
 MetaAnnotatedField getField(String name)
           
 MetaAnnotatedField[] getFields()
           
 Type[] getGenericInterfaces()
           
 Type getGenericSuperclass()
           
 MetaAnnotatedClass<?>[] getInterfaces()
           
 MetaAnnotatedMethod getMethod(String name, Class<?>... parameterTypes)
           
 MetaAnnotatedMethod[] getMethods()
           
 int getModifiers()
           
 String getName()
           
 Package getPackage()
           
 ProtectionDomain getProtectionDomain()
           
 URL getResource(String name)
           
 InputStream getResourceAsStream(String name)
           
 Object[] getSigners()
           
 String getSimpleName()
           
 MetaAnnotatedClass<? super T> getSuperclass()
           
 TypeVariable<Class<T>>[] getTypeParameters()
           
 boolean isAnnotation()
           
 boolean isAnonymousClass()
           
 boolean isArray()
           
 boolean isAssignableFrom(Class<?> cls)
           
 boolean isEnum()
           
 boolean isInstance(Object obj)
           
 boolean isInterface()
           
 boolean isLocalClass()
           
 boolean isMemberClass()
           
 boolean isPrimitive()
           
 boolean isSynthetic()
           
 T newInstance()
           
 
Methods inherited from class org.apache.xbean.finder.MetaAnnotatedElement
equals, get, getAnnotation, getAnnotations, getDeclaredAnnotations, getMetaAnnotations, hashCode, isAnnotationPresent, toString, unroll, unroll, unrollParameters
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaAnnotatedClass

public MetaAnnotatedClass(Class<T> clazz)
Method Detail

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.