|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.introspector.ForwardingAnnotatedItem<T,S>
T
- S
- public abstract class ForwardingAnnotatedItem<T,S>
Provides an abstraction for delegating access to an annotated item
Field Summary |
---|
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
MAPPED_METAANNOTATIONS |
Constructor Summary | |
---|---|
ForwardingAnnotatedItem()
|
Method Summary | ||
---|---|---|
protected abstract AnnotatedItem<T,S> |
delegate()
Gets the annotated item |
|
boolean |
equals(java.lang.Object obj)
Overridden method into delegate |
|
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 |
|
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.String |
getName()
Gets the name of this AnnotatedItem If it is not possible to determine the name of the underling element, a IllegalArgumentException is thrown |
|
java.lang.Class<T> |
getRawType()
Gets the type of the element |
|
java.lang.reflect.Type |
getType()
|
|
int |
hashCode()
Overridden method into delegate |
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Indicates if an annotation type specified is present |
|
boolean |
isAssignableFrom(AnnotatedItem<?,?> that)
Extends Java Class assignability such that actual type parameters are also considered |
|
boolean |
isAssignableFrom(java.util.Set<? extends java.lang.reflect.Type> types)
Checks if any of the types provided are assignable to this, using the extended assignability algorithm provided by AnnotatedItem. |
|
boolean |
isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Indicates if an annotation type specified is present |
|
boolean |
isFinal()
Indicates if this AnnotatedItem represents a final element |
|
boolean |
isParameterizedType()
|
|
boolean |
isProxyable()
Indicates if this AnnotatedItem can be proxyed |
|
boolean |
isPublic()
Indicates if this annotated item is public |
|
boolean |
isStatic()
Indicates if this AnnotatedItem represents a static element |
|
java.lang.String |
toString()
Overridden method into delegate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ForwardingAnnotatedItem()
Method Detail |
---|
public java.lang.reflect.Type[] getActualTypeArguments()
AnnotatedItem
getActualTypeArguments
in interface AnnotatedItem<T,S>
AnnotatedItem
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
AnnotatedItem
public java.util.Set<java.lang.annotation.Annotation> getAnnotationsAsSet()
AnnotatedItem
getAnnotationsAsSet
in interface AnnotatedItem<T,S>
AnnotatedItem
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>
AnnotatedItem
public java.lang.annotation.Annotation[] getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
AnnotatedItem
getMetaAnnotationsAsArray
in interface AnnotatedItem<T,S>
AnnotatedItem
@Deprecated public java.util.Set<java.lang.annotation.Annotation> getBindings()
AnnotatedItem
getBindings
in interface AnnotatedItem<T,S>
AnnotatedItem
@Deprecated public java.lang.annotation.Annotation[] getBindingsAsArray()
AnnotatedItem
getBindingsAsArray
in interface AnnotatedItem<T,S>
AnnotatedItem
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedItem
isAnnotationPresent
in interface AnnotatedItem<T,S>
annotationType
- The annotation to match
AnnotatedItem
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.String getName()
AnnotatedItem
getName
in interface AnnotatedItem<T,S>
AnnotatedItem
public java.lang.Class<T> getRawType()
AnnotatedItem
getRawType
in interface AnnotatedItem<T,S>
AnnotatedItem
public java.lang.reflect.Type getType()
getType
in interface AnnotatedItem<T,S>
public boolean isAssignableFrom(AnnotatedItem<?,?> that)
AnnotatedItem
isAssignableFrom
in interface AnnotatedItem<T,S>
that
- The other item to check assignability against
AnnotatedItem
public boolean isAssignableFrom(java.util.Set<? extends java.lang.reflect.Type> types)
AnnotatedItem
isAssignableFrom
in interface AnnotatedItem<T,S>
types
- The set of types to match
AnnotatedItem
public boolean isFinal()
AnnotatedItem
isFinal
in interface AnnotatedItem<T,S>
AnnotatedItem
public boolean isStatic()
AnnotatedItem
isStatic
in interface AnnotatedItem<T,S>
AnnotatedItem
public boolean isProxyable()
AnnotatedItem
isProxyable
in interface AnnotatedItem<T,S>
AnnotatedItem
public boolean isPublic()
AnnotatedItem
isPublic
in interface AnnotatedItem<T,S>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
AnnotatedItem
public int hashCode()
hashCode
in class java.lang.Object
AnnotatedItem
public java.lang.String toString()
toString
in class java.lang.Object
AnnotatedItem
protected abstract AnnotatedItem<T,S> delegate()
public AnnotationStore getAnnotationStore()
getAnnotationStore
in interface AnnotatedItem<T,S>
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 java.util.Set<? extends java.lang.reflect.Type> getFlattenedTypeHierarchy()
getFlattenedTypeHierarchy
in interface AnnotatedItem<T,S>
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 |