|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem<T,S>
T - S - public abstract class AbstractAnnotatedItem<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
AnnotatedItem| Field Summary |
|---|
| Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
|---|
MAPPED_METAANNOTATIONS |
| Constructor Summary | |
|---|---|
AbstractAnnotatedItem(AnnotationStore annotatedItemHelper)
Constructor Also builds the meta-annotation map. |
|
| Method Summary | ||
|---|---|---|
boolean |
equals(java.lang.Object other)
Compares two AbstractAnnotatedItems |
|
|
getAnnotation(java.lang.Class<A> annotationType)
Gets an annotation for the annotation type specified. |
|
java.util.Set<java.lang.annotation.Annotation> |
getAnnotationsAsSet()
Gets all annotations on the item |
|
AnnotationStore |
getAnnotationStore()
|
|
java.util.Set<java.lang.annotation.Annotation> |
getBindingTypes()
Deprecated. |
|
java.lang.annotation.Annotation[] |
getBindingTypesAsArray()
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.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 |
|
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 |
isAssignableFrom(AnnotatedItem<?,?> that)
Checks if this item is assignable from another annotated item (through type and actual type arguments) |
|
boolean |
isAssignableFrom(java.util.Set<java.lang.reflect.Type> types)
Checks if this item is assignable from any one a set of types |
|
boolean |
isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Indicates if an annotation type specified is present |
|
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.webbeans.introspector.AnnotatedItem |
|---|
getActualTypeArguments, getName, getType, isFinal, isPublic, isStatic |
| Constructor Detail |
|---|
public AbstractAnnotatedItem(AnnotationStore annotatedItemHelper)
annotationMap - A map of annotation to register| Method Detail |
|---|
public AnnotationStore getAnnotationStore()
getAnnotationStore in interface AnnotatedItem<T,S>public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
AnnotatedItem
getAnnotation in interface AnnotatedItem<T,S>annotationType - The annotation to match
public java.util.Set<java.lang.annotation.Annotation> getMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
AnnotatedItem
getMetaAnnotations in interface AnnotatedItem<T,S>public java.util.Set<java.lang.annotation.Annotation> getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
AnnotatedItem
getDeclaredMetaAnnotations in interface AnnotatedItem<T,S>public java.lang.annotation.Annotation[] getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
AnnotatedItem
getMetaAnnotationsAsArray in interface AnnotatedItem<T,S>public java.util.Set<java.lang.annotation.Annotation> getAnnotationsAsSet()
AnnotatedItem
getAnnotationsAsSet in interface AnnotatedItem<T,S>public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotatedType)
isAnnotationPresent in interface AnnotatedItem<T,S>annotatedType - The annotation type to check for
AnnotatedItem.isAnnotationPresent(Class)public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The other item
public boolean isAssignableFrom(AnnotatedItem<?,?> that)
isAssignableFrom in interface AnnotatedItem<T,S>that - The other annotated item to check against
AnnotatedItem.isAssignableFrom(AnnotatedItem)public boolean isAssignableFrom(java.util.Set<java.lang.reflect.Type> types)
isAssignableFrom in interface AnnotatedItem<T,S>types - The set of types to check against
AnnotatedItem.isAssignableFrom(Set)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> getBindingTypes()
AnnotatedItem
getBindingTypes in interface AnnotatedItem<T,S>@Deprecated public java.lang.annotation.Annotation[] getBindingTypesAsArray()
getBindingTypesAsArray in interface AnnotatedItem<T,S>AnnotatedItem.getBindingTypesAsArray()public boolean isProxyable()
isProxyable in interface AnnotatedItem<T,S>AnnotatedItem.isProxyable()public abstract S getDelegate()
public boolean isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedItem
isDeclaredAnnotationPresent in interface AnnotatedItem<T,S>annotationType - The annotation to match
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||