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, ResolvableWeldClass, 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 java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> MAPPED_METAANNOTATIONS
           
 
Method Summary
 java.lang.reflect.Type[] getActualTypeArguments()
          Gets the actual type arguments for any parameterized types that this AnnotatedItem represents.
 java.lang.annotation.Annotation[] getBindingsAsArray()
          Deprecated. This reflection type should not know about JSR-299 binding types
 java.util.Set<java.lang.annotation.Annotation> getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
          Gets all annotations which are declared on this annotated item with the given meta annotation type
 java.util.Set<java.lang.reflect.Type> getInterfaceOnlyFlattenedTypeHierarchy()
          Get the type hierarchy of any interfaces implemented by this class.
 java.lang.Class<T> getJavaClass()
          Gets the type of the element
 java.util.Set<java.lang.annotation.Annotation> getMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
          Gets all annotations which are annotated with the given meta annotation type
 java.lang.annotation.Annotation[] getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
          Gets all annotations which are annotated with the given meta annotation type
 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.Package getPackage()
           
 java.util.Set<java.lang.annotation.Annotation> getQualifiers()
          Deprecated. This reflection type should not know about JSR-299 binding types
 boolean isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Indicates if an annotation type specified is present
 boolean isFinal()
          Indicates if this AnnotatedItem represents a final element
 boolean isPackagePrivate()
           
 boolean isParameterizedType()
           
 boolean isPrivate()
           
 boolean isProxyable()
          Indicates if this AnnotatedItem can be proxyed
 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 java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> MAPPED_METAANNOTATIONS
Method Detail

getMetaAnnotations

java.util.Set<java.lang.annotation.Annotation> getMetaAnnotations(java.lang.Class<? extends java.lang.annotation.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.

getDeclaredMetaAnnotations

java.util.Set<java.lang.annotation.Annotation> getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets all annotations which are declared on this annotated item 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.

getMetaAnnotationsAsArray

java.lang.annotation.Annotation[] getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets all annotations which are annotated with the given meta annotation type

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

getQualifiers

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

Gets the binding types for this element


getBindingsAsArray

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

Gets the binding types for this element


getInterfaceOnlyFlattenedTypeHierarchy

java.util.Set<java.lang.reflect.Type> getInterfaceOnlyFlattenedTypeHierarchy()
Get the type hierarchy of any interfaces implemented by this class. Interface hierarchies from super classes are not included. The returned types should have any type parameters resolved to their actual types.

Returns:
the type hierarchy

isDeclaredAnnotationPresent

boolean isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Indicates if an annotation type specified is present

Parameters:
annotationType - The annotation to match
Returns:
True if present, false if not

getJavaClass

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

Returns:
The type of the element

getActualTypeArguments

java.lang.reflect.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

isFinal

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

Returns:
True if final, false otherwise

isProxyable

boolean isProxyable()
Indicates if this AnnotatedItem can be proxyed

Returns:
True if proxyable, false otherwise

isPublic

boolean isPublic()
Indicates if this annotated item is public

Returns:
if public, returns true

isPrivate

boolean isPrivate()

isPackagePrivate

boolean isPackagePrivate()

getPackage

java.lang.Package getPackage()

getName

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

Returns:
The name

isParameterizedType

boolean isParameterizedType()


Copyright © 2008-2009 Seam Framework. All Rights Reserved.