|
||||||||||
| 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(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotationMap,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotationMap,
ClassTransformer classTransformer,
java.lang.Class<T> rawType,
java.lang.reflect.Type type,
java.util.Set<java.lang.reflect.Type> typeClosure)
Constructor Also builds the meta-annotation map. |
protected |
AbstractWeldAnnotated(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotationMap,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotationMap,
TypeStore typeStore)
|
| Method Summary | ||
|---|---|---|
protected static void |
addMetaAnnotations(com.google.common.collect.SetMultimap<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> metaAnnotationMap,
java.lang.annotation.Annotation annotation,
java.lang.annotation.Annotation[] metaAnnotations,
boolean declared)
|
|
protected static void |
addMetaAnnotations(com.google.common.collect.SetMultimap<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> metaAnnotationMap,
java.lang.annotation.Annotation annotation,
java.lang.Iterable<java.lang.annotation.Annotation> metaAnnotations,
boolean declared)
|
|
protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> |
buildAnnotationMap(java.lang.annotation.Annotation[] annotations)
Builds the annotation map (annotation type -> annotation) |
|
protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> |
buildAnnotationMap(java.lang.Iterable<java.lang.annotation.Annotation> annotations)
Builds the annotation map (annotation type -> annotation) |
|
boolean |
equals(java.lang.Object other)
Compares two AbstractAnnotatedItems |
|
java.lang.reflect.Type[] |
getActualTypeArguments()
Gets the actual type arguments for any parameterized types that this AnnotatedItem represents. |
|
|
getAnnotation(java.lang.Class<A> annotationType)
|
|
java.util.Set<java.lang.annotation.Annotation> |
getAnnotations()
|
|
java.lang.reflect.Type |
getBaseType()
|
|
java.lang.annotation.Annotation[] |
getBindingsAsArray()
Deprecated. |
|
abstract S |
getDelegate()
|
|
java.util.Set<java.lang.reflect.Type> |
getInterfaceClosure()
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.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Deprecated. |
|
java.util.Set<java.lang.reflect.Type> |
getTypeClosure()
|
|
int |
hashCode()
Gets the hash code of the actual type |
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
|
boolean |
isParameterizedType()
|
|
boolean |
isPrimitive()
|
|
boolean |
isProxyable()
Indicates if the type is proxyable to a set of pre-defined rules |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated |
|---|
getName, getPackage, isFinal, isPackagePrivate, isPrivate, isPublic, isStatic |
| Constructor Detail |
|---|
public AbstractWeldAnnotated(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotationMap,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotationMap,
ClassTransformer classTransformer,
java.lang.Class<T> rawType,
java.lang.reflect.Type type,
java.util.Set<java.lang.reflect.Type> typeClosure)
annotationMap - A map of annotation to register
protected AbstractWeldAnnotated(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotationMap,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotationMap,
TypeStore typeStore)
| Method Detail |
|---|
protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> buildAnnotationMap(java.lang.annotation.Annotation[] annotations)
annotations - The array of annotations to map
protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> buildAnnotationMap(java.lang.Iterable<java.lang.annotation.Annotation> annotations)
annotations - The array of annotations to map
protected static void addMetaAnnotations(com.google.common.collect.SetMultimap<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> metaAnnotationMap,
java.lang.annotation.Annotation annotation,
java.lang.annotation.Annotation[] metaAnnotations,
boolean declared)
protected static void addMetaAnnotations(com.google.common.collect.SetMultimap<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> metaAnnotationMap,
java.lang.annotation.Annotation annotation,
java.lang.Iterable<java.lang.annotation.Annotation> metaAnnotations,
boolean declared)
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The other item
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isProxyable()
isProxyable in interface WeldAnnotated<T,S>WeldAnnotated.isProxyable()public java.lang.Class<T> getJavaClass()
WeldAnnotated
getJavaClass in interface WeldAnnotated<T,S>public java.lang.reflect.Type[] getActualTypeArguments()
WeldAnnotated
getActualTypeArguments in interface WeldAnnotated<T,S>public java.util.Set<java.lang.reflect.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 java.lang.reflect.Type getBaseType()
getBaseType in interface javax.enterprise.inject.spi.Annotatedpublic java.util.Set<java.lang.reflect.Type> getTypeClosure()
getTypeClosure in interface javax.enterprise.inject.spi.Annotatedpublic java.util.Set<java.lang.annotation.Annotation> getAnnotations()
getAnnotations in interface javax.enterprise.inject.spi.Annotatedpublic java.util.Set<java.lang.annotation.Annotation> getMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
WeldAnnotated
getMetaAnnotations in interface WeldAnnotated<T,S>@Deprecated public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
WeldAnnotated
getQualifiers in interface WeldAnnotated<T,S>@Deprecated public java.lang.annotation.Annotation[] getBindingsAsArray()
WeldAnnotated
getBindingsAsArray in interface WeldAnnotated<T,S>public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
getAnnotation in interface javax.enterprise.inject.spi.Annotatedpublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.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 | |||||||||