Package org.jboss.weld.util.annotated
Class ForwardingWeldAnnotated<T,S>
- java.lang.Object
-
- org.jboss.weld.util.annotated.ForwardingAnnotated
-
- org.jboss.weld.util.annotated.ForwardingWeldAnnotated<T,S>
-
- Type Parameters:
T-S-
- All Implemented Interfaces:
javax.enterprise.inject.spi.Annotated,EnhancedAnnotated<T,S>
- Direct Known Subclasses:
ForwardingWeldClass,ForwardingWeldMember,ForwardingWeldParameter
public abstract class ForwardingWeldAnnotated<T,S> extends ForwardingAnnotated implements EnhancedAnnotated<T,S>
Provides an abstraction for delegating access to an annotated item- Author:
- Pete Muir
-
-
Field Summary
-
Fields inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
-
-
Constructor Summary
Constructors Constructor Description ForwardingWeldAnnotated()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract EnhancedAnnotated<T,S>delegate()Type[]getActualTypeArguments()Gets the actual type arguments for any parameterized types that this AnnotatedItem represents.Annotation[]getBindingsAsArray()Deprecated.Set<Type>getInterfaceClosure()Get the type hierarchy of any interfaces implemented by this class.Class<T>getJavaClass()Gets the type of the elementSet<Annotation>getMetaAnnotations(Class<? extends Annotation> metaAnnotationType)Gets all annotations which are annotated with the given meta annotation typeStringgetName()Gets the name of this AnnotatedItemPackagegetPackage()Set<Annotation>getQualifiers()Deprecated.booleanisFinal()Indicates if this AnnotatedItem represents a final elementbooleanisGeneric()booleanisPackagePrivate()booleanisParameterizedType()booleanisPrimitive()booleanisPrivate()booleanisPublic()Indicates if this annotated item is publicbooleanisStatic()Indicates if this AnnotatedItem represents a static elementjavax.enterprise.inject.spi.Annotatedslim()Returns a lightweight implementation ofAnnotatedwith minimal memory footprint.-
Methods inherited from class org.jboss.weld.util.annotated.ForwardingAnnotated
equals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toString
-
-
-
-
Method Detail
-
getActualTypeArguments
public Type[] getActualTypeArguments()
Description copied from interface:EnhancedAnnotatedGets the actual type arguments for any parameterized types that this AnnotatedItem represents.- Specified by:
getActualTypeArgumentsin interfaceEnhancedAnnotated<T,S>- Returns:
- An array of type arguments
-
getMetaAnnotations
public Set<Annotation> getMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
Description copied from interface:EnhancedAnnotatedGets all annotations which are annotated with the given meta annotation type- Specified by:
getMetaAnnotationsin interfaceEnhancedAnnotated<T,S>- Returns:
- A set of matching meta-annotations. Returns an empty set if there are no matches.
-
getQualifiers
@Deprecated public Set<Annotation> getQualifiers()
Deprecated.Description copied from interface:EnhancedAnnotatedGets the binding types for this element- Specified by:
getQualifiersin interfaceEnhancedAnnotated<T,S>
-
getBindingsAsArray
@Deprecated public Annotation[] getBindingsAsArray()
Deprecated.Description copied from interface:EnhancedAnnotatedGets the binding types for this element- Specified by:
getBindingsAsArrayin interfaceEnhancedAnnotated<T,S>
-
getName
public String getName()
Description copied from interface:EnhancedAnnotatedGets the name of this AnnotatedItem If it is not possible to determine the name of the underling element, a IllegalArgumentException is thrown- Specified by:
getNamein interfaceEnhancedAnnotated<T,S>- Returns:
- The name
-
getJavaClass
public Class<T> getJavaClass()
Description copied from interface:EnhancedAnnotatedGets the type of the element- Specified by:
getJavaClassin interfaceEnhancedAnnotated<T,S>- Returns:
- The type of the element
-
isFinal
public boolean isFinal()
Description copied from interface:EnhancedAnnotatedIndicates if this AnnotatedItem represents a final element- Specified by:
isFinalin interfaceEnhancedAnnotated<T,S>- Returns:
- True if final, false otherwise
-
isStatic
public boolean isStatic()
Description copied from interface:EnhancedAnnotatedIndicates if this AnnotatedItem represents a static element- Specified by:
isStaticin interfaceEnhancedAnnotated<T,S>- Returns:
- True if static, false otherwise
-
isGeneric
public boolean isGeneric()
- Specified by:
isGenericin interfaceEnhancedAnnotated<T,S>
-
isPublic
public boolean isPublic()
Description copied from interface:EnhancedAnnotatedIndicates if this annotated item is public- Specified by:
isPublicin interfaceEnhancedAnnotated<T,S>- Returns:
- if public, returns true
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivatein interfaceEnhancedAnnotated<T,S>
-
isPackagePrivate
public boolean isPackagePrivate()
- Specified by:
isPackagePrivatein interfaceEnhancedAnnotated<T,S>
-
getPackage
public Package getPackage()
- Specified by:
getPackagein interfaceEnhancedAnnotated<T,S>
-
delegate
protected abstract EnhancedAnnotated<T,S> delegate()
- Specified by:
delegatein classForwardingAnnotated
-
getInterfaceClosure
public Set<Type> getInterfaceClosure()
Description copied from interface:EnhancedAnnotatedGet 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- Specified by:
getInterfaceClosurein interfaceEnhancedAnnotated<T,S>- Returns:
- the type hierarchy
-
isParameterizedType
public boolean isParameterizedType()
- Specified by:
isParameterizedTypein interfaceEnhancedAnnotated<T,S>
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitivein interfaceEnhancedAnnotated<T,S>
-
slim
public javax.enterprise.inject.spi.Annotated slim()
Description copied from interface:EnhancedAnnotatedReturns a lightweight implementation ofAnnotatedwith minimal memory footprint.- Specified by:
slimin interfaceEnhancedAnnotated<T,S>- Returns:
- the slim version of this
Annotated
-
-