T - S - public abstract class AbstractEnhancedAnnotated<T,S> extends Object implements EnhancedAnnotated<T,S>
EnhancedAnnotatedMAPPED_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(SetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap,
Annotation annotation,
Iterable<Annotation> metaAnnotations,
boolean declared) |
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() |
protected void |
processMetaAnnotations(SetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap,
Annotation[] annotations,
ClassTransformer classTransformer,
boolean declared) |
protected void |
processMetaAnnotations(SetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap,
Annotation annotation,
ClassTransformer classTransformer,
boolean declared) |
protected void |
processMetaAnnotations(SetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap,
Collection<Annotation> annotations,
ClassTransformer classTransformer,
boolean declared) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getPackage, isFinal, isGeneric, isPackagePrivate, isPrivate, isPublic, isStatic, slimpublic 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(Iterable<Annotation> annotations)
annotations - The array of annotations to mapprotected static void addMetaAnnotations(SetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap, Annotation annotation, Iterable<Annotation> metaAnnotations, boolean declared)
protected void processMetaAnnotations(SetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap, Collection<Annotation> annotations, ClassTransformer classTransformer, boolean declared)
protected void processMetaAnnotations(SetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap, Annotation[] annotations, ClassTransformer classTransformer, boolean declared)
protected void processMetaAnnotations(SetMultimap<Class<? extends Annotation>,Annotation> metaAnnotationMap, Annotation annotation, ClassTransformer classTransformer, boolean declared)
public Class<T> getJavaClass()
EnhancedAnnotatedgetJavaClass in interface EnhancedAnnotated<T,S>public Type[] getActualTypeArguments()
EnhancedAnnotatedgetActualTypeArguments in interface EnhancedAnnotated<T,S>public Set<Type> getInterfaceClosure()
EnhancedAnnotatedgetInterfaceClosure 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.Annotatedpublic Set<Type> getTypeClosure()
getTypeClosure in interface javax.enterprise.inject.spi.Annotatedpublic Set<Annotation> getAnnotations()
getAnnotations in interface javax.enterprise.inject.spi.Annotatedpublic Set<Annotation> getMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
EnhancedAnnotatedgetMetaAnnotations in interface EnhancedAnnotated<T,S>@Deprecated public Set<Annotation> getQualifiers()
EnhancedAnnotatedgetQualifiers in interface EnhancedAnnotated<T,S>@Deprecated public Annotation[] getBindingsAsArray()
EnhancedAnnotatedgetBindingsAsArray in interface EnhancedAnnotated<T,S>public <A extends Annotation> A getAnnotation(Class<A> annotationType)
getAnnotation in interface javax.enterprise.inject.spi.Annotatedpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent in interface javax.enterprise.inject.spi.AnnotatedCopyright © 2017. All rights reserved.