org.jboss.weld.introspector
Interface WeldAnnotated<T,S>

All Superinterfaces:
javax.enterprise.inject.spi.Annotated
All Known Subinterfaces:
WeldAnnotation<T>, WeldCallable<T,X,S>, WeldClass<T>, WeldConstructor<T>, WeldField<T,X>, WeldInjectionPoint<T,S>, WeldMember<T,X,S>, WeldMethod<T,X>, WeldParameter<T,X>
All Known Implementing Classes:
AbstractWeldAnnotated, AbstractWeldCallable, AbstractWeldMember, ConstructorInjectionPoint, FieldInjectionPoint, ForwardingWeldAnnotated, ForwardingWeldAnnotation, ForwardingWeldClass, ForwardingWeldConstructor, ForwardingWeldField, ForwardingWeldMember, ForwardingWeldMethod, ForwardingWeldParameter, MethodInjectionPoint, ParameterInjectionPoint, ProxyClassConstructorInjectionPointWrapper, WeldAnnotationImpl, WeldClassImpl, WeldConstructorImpl, WeldFieldImpl, WeldMethodImpl, WeldParameterImpl

public interface WeldAnnotated<T,S>
extends javax.enterprise.inject.spi.Annotated

AnnotatedItem provides a uniform access to the annotations on an annotated item defined either in Java or XML

Author:
Pete Muir

Field Summary
static Set<Class<? extends Annotation>> MAPPED_DECLARED_METAANNOTATIONS
          The set of declared meta-annotations to map
static Set<Class<? extends Annotation>> MAPPED_METAANNOTATIONS
          The set of meta-annotations to map
 
Method Summary
 Type[] getActualTypeArguments()
          Gets the actual type arguments for any parameterized types that this AnnotatedItem represents.
 Annotation[] getBindingsAsArray()
          Deprecated. This reflection type should not know about JSR-299 binding types
 Set<Type> getInterfaceClosure()
          Get the type hierarchy of any interfaces implemented by this class.
 Class<T> getJavaClass()
          Gets the type of the element
 Set<Annotation> getMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
          Gets all annotations which are annotated with the given meta annotation type
 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

 Package getPackage()
           
 Set<Annotation> getQualifiers()
          Deprecated. This reflection type should not know about JSR-299 binding types
 boolean isFinal()
          Indicates if this AnnotatedItem represents a final element
 boolean isGeneric()
           
 boolean isPackagePrivate()
           
 boolean isParameterizedType()
           
 boolean isPrimitive()
           
 boolean isPrivate()
           
 boolean isPublic()
          Indicates if this annotated item is public
 boolean isStatic()
          Indicates if this AnnotatedItem represents a static element
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 

Field Detail

MAPPED_METAANNOTATIONS

static final Set<Class<? extends Annotation>> MAPPED_METAANNOTATIONS
The set of meta-annotations to map


MAPPED_DECLARED_METAANNOTATIONS

static final Set<Class<? extends Annotation>> MAPPED_DECLARED_METAANNOTATIONS
The set of declared meta-annotations to map

Method Detail

getMetaAnnotations

Set<Annotation> getMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
Gets all annotations which are annotated with the given meta annotation type

Parameters:
The - meta annotation to match
Returns:
A set of matching meta-annotations. Returns an empty set if there are no matches.

getQualifiers

@Deprecated
Set<Annotation> getQualifiers()
Deprecated. This reflection type should not know about JSR-299 binding types

Gets the binding types for this element


getBindingsAsArray

@Deprecated
Annotation[] getBindingsAsArray()
Deprecated. This reflection type should not know about JSR-299 binding types

Gets the binding types for this element


getInterfaceClosure

Set<Type> getInterfaceClosure()
Get the type hierarchy of any interfaces implemented by this class.

The returned types should have any type parameters resolved to their actual types.

There is no guarantee this methods executes in O(1) time

Returns:
the type hierarchy

getJavaClass

Class<T> getJavaClass()
Gets the type of the element

Returns:
The type of the element

getActualTypeArguments

Type[] getActualTypeArguments()
Gets the actual type arguments for any parameterized types that this AnnotatedItem represents.

Returns:
An array of type arguments

isStatic

boolean isStatic()
Indicates if this AnnotatedItem represents a static element

Returns:
True if static, false otherwise

isGeneric

boolean isGeneric()

isFinal

boolean isFinal()
Indicates if this AnnotatedItem represents a final element

Returns:
True if final, false otherwise

isPublic

boolean isPublic()
Indicates if this annotated item is public

Returns:
if public, returns true

isPrivate

boolean isPrivate()

isPackagePrivate

boolean isPackagePrivate()

getPackage

Package getPackage()

getName

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

Returns:
The name

isParameterizedType

boolean isParameterizedType()

isPrimitive

boolean isPrimitive()


Copyright © 2013 Seam Framework. All Rights Reserved.