org.jboss.webbeans.injection.resolution
Class ResolvableAnnotatedClass<T>

java.lang.Object
  extended by org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem<T,java.lang.Class<T>>
      extended by org.jboss.webbeans.injection.resolution.ResolvableAnnotatedClass<T>
All Implemented Interfaces:
AnnotatedItem<T,java.lang.Class<T>>

public class ResolvableAnnotatedClass<T>
extends AbstractAnnotatedItem<T,java.lang.Class<T>>


Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Method Summary
 java.lang.reflect.Type[] getActualTypeArguments()
          Gets the actual type arguments for any parameterized types that this AnnotatedItem represents.
 java.lang.Class<T> getDelegate()
           
 java.util.Set<? extends java.lang.reflect.Type> getFlattenedTypeHierarchy()
           
 java.lang.String getName()
          Gets the name of this AnnotatedItem If it is not possible to determine the name of the underling element, a IllegalArgumentException is thrown
 java.lang.Class<T> getRawType()
          Gets the type of the element
 java.lang.reflect.Type getType()
           
 boolean isFinal()
          Indicates if this AnnotatedItem represents a final element
 boolean isProxyable()
          Indicates if the type is proxyable to a set of pre-defined rules
 boolean isPublic()
          Indicates if this annotated item is public
 boolean isStatic()
          Indicates if this AnnotatedItem represents a static element
static
<T> ResolvableAnnotatedClass<T>
of(java.lang.Class<T> clazz, java.lang.annotation.Annotation[] annotations)
           
static
<T> ResolvableAnnotatedClass<T>
of(java.lang.reflect.Member member, java.lang.annotation.Annotation[] annotations)
           
static
<T> ResolvableAnnotatedClass<T>
of(java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations)
           
static
<T> ResolvableAnnotatedClass<T>
of(TypeLiteral<T> typeLiteral, java.lang.annotation.Annotation[] annotations)
           
 java.lang.String toString()
          Gets a string representation of the item
 
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem
equals, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getMetaAnnotations, getMetaAnnotationsAsArray, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isParameterizedType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

of

public static <T> ResolvableAnnotatedClass<T> of(TypeLiteral<T> typeLiteral,
                                                 java.lang.annotation.Annotation[] annotations)

of

public static <T> ResolvableAnnotatedClass<T> of(java.lang.Class<T> clazz,
                                                 java.lang.annotation.Annotation[] annotations)

of

public static <T> ResolvableAnnotatedClass<T> of(java.lang.reflect.Type type,
                                                 java.lang.annotation.Annotation[] annotations)

of

public static <T> ResolvableAnnotatedClass<T> of(java.lang.reflect.Member member,
                                                 java.lang.annotation.Annotation[] annotations)

toString

public java.lang.String toString()
Description copied from class: AbstractAnnotatedItem
Gets a string representation of the item

Overrides:
toString in class AbstractAnnotatedItem<T,java.lang.Class<T>>
Returns:
A string representation

getDelegate

public java.lang.Class<T> getDelegate()
Specified by:
getDelegate in class AbstractAnnotatedItem<T,java.lang.Class<T>>

getActualTypeArguments

public java.lang.reflect.Type[] getActualTypeArguments()
Description copied from interface: AnnotatedItem
Gets the actual type arguments for any parameterized types that this AnnotatedItem represents.

Specified by:
getActualTypeArguments in interface AnnotatedItem<T,java.lang.Class<T>>
Overrides:
getActualTypeArguments in class AbstractAnnotatedItem<T,java.lang.Class<T>>
Returns:
An array of type arguments

getName

public java.lang.String getName()
Description copied from interface: AnnotatedItem
Gets the name of this AnnotatedItem If it is not possible to determine the name of the underling element, a IllegalArgumentException is thrown

Returns:
The name

getRawType

public java.lang.Class<T> getRawType()
Description copied from interface: AnnotatedItem
Gets the type of the element

Specified by:
getRawType in interface AnnotatedItem<T,java.lang.Class<T>>
Overrides:
getRawType in class AbstractAnnotatedItem<T,java.lang.Class<T>>
Returns:
The type of the element

getType

public java.lang.reflect.Type getType()
Specified by:
getType in interface AnnotatedItem<T,java.lang.Class<T>>
Overrides:
getType in class AbstractAnnotatedItem<T,java.lang.Class<T>>

isFinal

public boolean isFinal()
Description copied from interface: AnnotatedItem
Indicates if this AnnotatedItem represents a final element

Returns:
True if final, false otherwise

isPublic

public boolean isPublic()
Description copied from interface: AnnotatedItem
Indicates if this annotated item is public

Returns:
if public, returns true

isStatic

public boolean isStatic()
Description copied from interface: AnnotatedItem
Indicates if this AnnotatedItem represents a static element

Returns:
True if static, false otherwise

getFlattenedTypeHierarchy

public java.util.Set<? extends java.lang.reflect.Type> getFlattenedTypeHierarchy()
Specified by:
getFlattenedTypeHierarchy in interface AnnotatedItem<T,java.lang.Class<T>>
Overrides:
getFlattenedTypeHierarchy in class AbstractAnnotatedItem<T,java.lang.Class<T>>

isProxyable

public boolean isProxyable()
Description copied from class: AbstractAnnotatedItem
Indicates if the type is proxyable to a set of pre-defined rules

Specified by:
isProxyable in interface AnnotatedItem<T,java.lang.Class<T>>
Overrides:
isProxyable in class AbstractAnnotatedItem<T,java.lang.Class<T>>
Returns:
True if proxyable, false otherwise.
See Also:
AnnotatedItem.isProxyable()


Copyright © 2011. All Rights Reserved.