|
||||||||||
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)
|
|
AbstractAnnotatedItem(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)
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> |
getBindings()
Deprecated. |
|
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<? extends java.lang.reflect.Type> |
getFlattenedTypeHierarchy()
|
|
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.lang.Class<T> |
getRawType()
Gets the type of the element |
|
java.lang.reflect.Type |
getType()
|
|
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<? extends 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 |
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.webbeans.introspector.AnnotatedItem |
---|
getName, isFinal, isPublic, isStatic |
Constructor Detail |
---|
public AbstractAnnotatedItem(AnnotationStore annotatedItemHelper, java.lang.Class<T> rawType, java.lang.reflect.Type type)
annotationMap
- A map of annotation to registerpublic AbstractAnnotatedItem(AnnotationStore annotatedItemHelper)
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.Object
other
- 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<? extends 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.Object
public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated public java.util.Set<java.lang.annotation.Annotation> getBindings()
AnnotatedItem
getBindings
in interface AnnotatedItem<T,S>
@Deprecated public java.lang.annotation.Annotation[] getBindingsAsArray()
getBindingsAsArray
in interface AnnotatedItem<T,S>
AnnotatedItem.getBindingsAsArray()
public boolean isProxyable()
isProxyable
in interface AnnotatedItem<T,S>
AnnotatedItem.isProxyable()
public java.lang.Class<T> getRawType()
AnnotatedItem
getRawType
in interface AnnotatedItem<T,S>
public java.lang.reflect.Type getType()
getType
in interface AnnotatedItem<T,S>
public java.lang.reflect.Type[] getActualTypeArguments()
AnnotatedItem
getActualTypeArguments
in interface AnnotatedItem<T,S>
public java.util.Set<? extends java.lang.reflect.Type> getFlattenedTypeHierarchy()
getFlattenedTypeHierarchy
in interface AnnotatedItem<T,S>
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
public boolean isParameterizedType()
isParameterizedType
in interface AnnotatedItem<T,S>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |