T
- S
- public abstract class AbstractEnhancedAnnotated<T,S> extends Object implements EnhancedAnnotated<T,S>
EnhancedAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
Constructor and Description |
---|
AbstractEnhancedAnnotated(javax.enterprise.inject.spi.Annotated annotated,
Map<Class<? extends Annotation>,Annotation> annotationMap,
Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap,
ClassTransformer classTransformer)
Constructor
Also builds the meta-annotation map.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
addMetaAnnotations(ArraySetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap,
Annotation annotation,
Annotation[] metaAnnotations,
boolean declared) |
protected static void |
addMetaAnnotations(ArraySetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap,
Annotation annotation,
Iterable<Annotation> metaAnnotations,
boolean declared) |
protected static Map<Class<? extends Annotation>,Annotation> |
buildAnnotationMap(Annotation[] annotations)
Builds the annotation map (annotation type -> annotation)
|
protected static Map<Class<? extends Annotation>,Annotation> |
buildAnnotationMap(Iterable<Annotation> annotations)
Builds the annotation map (annotation type -> annotation)
|
Type[] |
getActualTypeArguments()
Gets the actual type arguments for any parameterized types that this
AnnotatedItem represents.
|
<A extends Annotation> |
getAnnotation(Class<A> annotationType) |
Set<Annotation> |
getAnnotations() |
Type |
getBaseType() |
Annotation[] |
getBindingsAsArray()
Deprecated.
|
abstract S |
getDelegate() |
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
|
Set<Annotation> |
getQualifiers()
Deprecated.
|
Set<Type> |
getTypeClosure() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType) |
boolean |
isParameterizedType() |
boolean |
isPrimitive() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getPackage, isFinal, isGeneric, isPackagePrivate, isPrivate, isPublic, isStatic, slim
public AbstractEnhancedAnnotated(javax.enterprise.inject.spi.Annotated annotated, Map<Class<? extends Annotation>,Annotation> annotationMap, Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap, ClassTransformer classTransformer)
annotationMap
- A map of annotation to registerprotected static Map<Class<? extends Annotation>,Annotation> buildAnnotationMap(Annotation[] annotations)
annotations
- The array of annotations to mapprotected static Map<Class<? extends Annotation>,Annotation> buildAnnotationMap(Iterable<Annotation> annotations)
annotations
- The array of annotations to mapprotected static void addMetaAnnotations(ArraySetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap, Annotation annotation, Annotation[] metaAnnotations, boolean declared)
protected static void addMetaAnnotations(ArraySetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap, Annotation annotation, Iterable<Annotation> metaAnnotations, boolean declared)
public Class<T> getJavaClass()
EnhancedAnnotated
getJavaClass
in interface EnhancedAnnotated<T,S>
public Type[] getActualTypeArguments()
EnhancedAnnotated
getActualTypeArguments
in interface EnhancedAnnotated<T,S>
public Set<Type> getInterfaceClosure()
EnhancedAnnotated
getInterfaceClosure
in interface EnhancedAnnotated<T,S>
public abstract S getDelegate()
public boolean isParameterizedType()
isParameterizedType
in interface EnhancedAnnotated<T,S>
public boolean isPrimitive()
isPrimitive
in interface EnhancedAnnotated<T,S>
public Type getBaseType()
getBaseType
in interface javax.enterprise.inject.spi.Annotated
public Set<Type> getTypeClosure()
getTypeClosure
in interface javax.enterprise.inject.spi.Annotated
public Set<Annotation> getAnnotations()
getAnnotations
in interface javax.enterprise.inject.spi.Annotated
public Set<Annotation> getMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
EnhancedAnnotated
getMetaAnnotations
in interface EnhancedAnnotated<T,S>
@Deprecated public Set<Annotation> getQualifiers()
EnhancedAnnotated
getQualifiers
in interface EnhancedAnnotated<T,S>
@Deprecated public Annotation[] getBindingsAsArray()
EnhancedAnnotated
getBindingsAsArray
in interface EnhancedAnnotated<T,S>
public <A extends Annotation> A getAnnotation(Class<A> annotationType)
getAnnotation
in interface javax.enterprise.inject.spi.Annotated
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent
in interface javax.enterprise.inject.spi.Annotated
Copyright © 2016. All rights reserved.