|
||||||||||
| 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_METAANNOTATIONS |
| Constructor Summary | |
|---|---|
AbstractWeldAnnotated(AnnotationStore annotatedItemHelper)
|
|
AbstractWeldAnnotated(AnnotationStore annotatedItemHelper,
java.lang.Class<T> rawType,
java.lang.reflect.Type type)
Constructor Also builds the meta-annotation map. |
|
| Method Summary | ||
|---|---|---|
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()
|
|
AnnotationStore |
getAnnotationStore()
|
|
java.lang.reflect.Type |
getBaseType()
|
|
java.lang.annotation.Annotation[] |
getBindingsAsArray()
Deprecated. |
|
java.util.Set<java.lang.annotation.Annotation> |
getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets all annotations which are declared on this annotated item with the given meta annotation type |
|
abstract S |
getDelegate()
|
|
java.util.Set<java.lang.reflect.Type> |
getInterfaceOnlyFlattenedTypeHierarchy()
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.lang.annotation.Annotation[] |
getMetaAnnotationsAsArray(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> annotatedType)
Checks if an annotation is present on the item |
|
boolean |
isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Indicates if an annotation type specified is present |
|
boolean |
isParameterizedType()
|
|
boolean |
isProxyable()
Indicates if the type is proxyable to a set of pre-defined rules |
|
java.lang.String |
toString()
Gets a string representation of the item |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated |
|---|
getName, getPackage, isFinal, isPackagePrivate, isPrivate, isPublic, isStatic |
| Constructor Detail |
|---|
public AbstractWeldAnnotated(AnnotationStore annotatedItemHelper,
java.lang.Class<T> rawType,
java.lang.reflect.Type type)
annotationMap - A map of annotation to registerpublic AbstractWeldAnnotated(AnnotationStore annotatedItemHelper)
| Method Detail |
|---|
public AnnotationStore getAnnotationStore()
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
getAnnotation 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>public java.util.Set<java.lang.annotation.Annotation> getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
WeldAnnotated
getDeclaredMetaAnnotations in interface WeldAnnotated<T,S>public java.lang.annotation.Annotation[] getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
WeldAnnotated
getMetaAnnotationsAsArray in interface WeldAnnotated<T,S>public java.util.Set<java.lang.annotation.Annotation> getAnnotations()
getAnnotations in interface javax.enterprise.inject.spi.Annotatedpublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotatedType)
isAnnotationPresent in interface javax.enterprise.inject.spi.AnnotatedannotatedType - The annotation type to check for
Annotated.isAnnotationPresent(Class)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 java.lang.String toString()
toString in class java.lang.Object@Deprecated public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
WeldAnnotated
getQualifiers in interface WeldAnnotated<T,S>@Deprecated public java.lang.annotation.Annotation[] getBindingsAsArray()
getBindingsAsArray in interface WeldAnnotated<T,S>WeldAnnotated.getBindingsAsArray()public 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> getInterfaceOnlyFlattenedTypeHierarchy()
WeldAnnotated
getInterfaceOnlyFlattenedTypeHierarchy in interface WeldAnnotated<T,S>public abstract S getDelegate()
public boolean isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
WeldAnnotated
isDeclaredAnnotationPresent in interface WeldAnnotated<T,S>annotationType - The annotation to match
public boolean isParameterizedType()
isParameterizedType 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.Annotated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||