|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.weld.introspector.jlr.AbstractWeldAnnotated<T,S>
T
- S
- public abstract class AbstractWeldAnnotated<T,S>
Represents functionality common for all annotated items, mainly different mappings of the annotations and meta-annotations
AbstractAnnotatedItem is an immutable class and therefore threadsafe
WeldAnnotated
Field Summary |
---|
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated |
---|
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS |
Constructor Summary | |
---|---|
AbstractWeldAnnotated(Map<Class<? extends Annotation>,Annotation> annotationMap,
Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap,
ClassTransformer classTransformer,
Class<T> rawType,
Type type,
LazyValueHolder<Set<Type>> typeClosure)
Constructor Also builds the meta-annotation map. |
Method Summary | ||
---|---|---|
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. |
|
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated |
---|
getName, getPackage, isFinal, isGeneric, isPackagePrivate, isPrivate, isPublic, isStatic |
Constructor Detail |
---|
public AbstractWeldAnnotated(Map<Class<? extends Annotation>,Annotation> annotationMap, Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap, ClassTransformer classTransformer, Class<T> rawType, Type type, LazyValueHolder<Set<Type>> typeClosure)
annotationMap
- A map of annotation to registerMethod Detail |
---|
protected static Map<Class<? extends Annotation>,Annotation> buildAnnotationMap(Annotation[] annotations)
annotations
- The array of annotations to map
protected static Map<Class<? extends Annotation>,Annotation> buildAnnotationMap(Iterable<Annotation> annotations)
annotations
- The array of annotations to map
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)
public Class<T> getJavaClass()
WeldAnnotated
getJavaClass
in interface WeldAnnotated<T,S>
public Type[] getActualTypeArguments()
WeldAnnotated
getActualTypeArguments
in interface WeldAnnotated<T,S>
public Set<Type> getInterfaceClosure()
WeldAnnotated
getInterfaceClosure
in interface WeldAnnotated<T,S>
public abstract S getDelegate()
public boolean isParameterizedType()
isParameterizedType
in interface WeldAnnotated<T,S>
public boolean isPrimitive()
isPrimitive
in interface WeldAnnotated<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)
WeldAnnotated
getMetaAnnotations
in interface WeldAnnotated<T,S>
@Deprecated public Set<Annotation> getQualifiers()
WeldAnnotated
getQualifiers
in interface WeldAnnotated<T,S>
@Deprecated public Annotation[] getBindingsAsArray()
WeldAnnotated
getBindingsAsArray
in interface WeldAnnotated<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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |