org.jboss.webbeans.introspector
Class WrappedAnnotatedParameter<T>

java.lang.Object
  extended by org.jboss.webbeans.introspector.ForwardingAnnotatedItem<T,java.lang.Object>
      extended by org.jboss.webbeans.introspector.ForwardingAnnotatedParameter<T>
          extended by org.jboss.webbeans.introspector.WrappedAnnotatedParameter<T>
All Implemented Interfaces:
AnnotatedItem<T,java.lang.Object>, AnnotatedParameter<T>

public class WrappedAnnotatedParameter<T>
extends ForwardingAnnotatedParameter<T>


Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Constructor Summary
WrappedAnnotatedParameter(AnnotatedParameter<T> parameter, java.util.Set<java.lang.annotation.Annotation> extraAnnotations)
           
 
Method Summary
protected  AnnotatedParameter<T> delegate()
          Gets the annotated item
<A extends java.lang.annotation.Annotation>
A
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<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
 boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Indicates if an annotation type specified is present
static
<T> WrappedAnnotatedParameter<T>
of(AnnotatedParameter<T> parameter, java.util.Set<java.lang.annotation.Annotation> extraAnnotations)
           
 
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedParameter
getDeclaringMember, getValue
 
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedItem
equals, getActualTypeArguments, getFlattenedTypeHierarchy, getName, getRawType, getType, hashCode, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic, toString
 
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, getFlattenedTypeHierarchy, getName, getRawType, getType, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic
 

Constructor Detail

WrappedAnnotatedParameter

public WrappedAnnotatedParameter(AnnotatedParameter<T> parameter,
                                 java.util.Set<java.lang.annotation.Annotation> extraAnnotations)
Method Detail

of

public static <T> WrappedAnnotatedParameter<T> of(AnnotatedParameter<T> parameter,
                                                  java.util.Set<java.lang.annotation.Annotation> extraAnnotations)

delegate

protected AnnotatedParameter<T> delegate()
Description copied from class: ForwardingAnnotatedItem
Gets the annotated item

Specified by:
delegate in class ForwardingAnnotatedParameter<T>
Returns:
The annotated item

getAnnotationStore

public AnnotationStore getAnnotationStore()
Specified by:
getAnnotationStore in interface AnnotatedItem<T,java.lang.Object>
Overrides:
getAnnotationStore in class ForwardingAnnotatedItem<T,java.lang.Object>

getAnnotation

public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
Description copied from interface: AnnotatedItem
Gets an annotation for the annotation type specified.

Specified by:
getAnnotation in interface AnnotatedItem<T,java.lang.Object>
Overrides:
getAnnotation in class ForwardingAnnotatedItem<T,java.lang.Object>
Parameters:
annotationType - The annotation to match
Returns:
An annotation if found, null if the annotation wasn't present.
See Also:
AnnotatedItem

getAnnotationsAsSet

public java.util.Set<java.lang.annotation.Annotation> getAnnotationsAsSet()
Description copied from interface: AnnotatedItem
Gets all annotations on the item

Specified by:
getAnnotationsAsSet in interface AnnotatedItem<T,java.lang.Object>
Overrides:
getAnnotationsAsSet in class ForwardingAnnotatedItem<T,java.lang.Object>
Returns:
A set of annotations. Returns an empty set if there are no matches.
See Also:
AnnotatedItem

getMetaAnnotations

public java.util.Set<java.lang.annotation.Annotation> getMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Description copied from interface: AnnotatedItem
Gets all annotations which are annotated with the given meta annotation type

Specified by:
getMetaAnnotations in interface AnnotatedItem<T,java.lang.Object>
Overrides:
getMetaAnnotations in class ForwardingAnnotatedItem<T,java.lang.Object>
Returns:
A set of matching meta-annotations. Returns an empty set if there are no matches.
See Also:
AnnotatedItem

getMetaAnnotationsAsArray

public java.lang.annotation.Annotation[] getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Description copied from interface: AnnotatedItem
Gets all annotations which are annotated with the given meta annotation type

Specified by:
getMetaAnnotationsAsArray in interface AnnotatedItem<T,java.lang.Object>
Overrides:
getMetaAnnotationsAsArray in class ForwardingAnnotatedItem<T,java.lang.Object>
Returns:
An array of matching meta-annotations. Returns an empty array if there are no matches.
See Also:
AnnotatedItem

getBindings

@Deprecated
public java.util.Set<java.lang.annotation.Annotation> getBindings()
Deprecated. 

Description copied from interface: AnnotatedItem
Gets the binding types for this element

Specified by:
getBindings in interface AnnotatedItem<T,java.lang.Object>
Overrides:
getBindings in class ForwardingAnnotatedItem<T,java.lang.Object>
See Also:
AnnotatedItem

getBindingsAsArray

@Deprecated
public java.lang.annotation.Annotation[] getBindingsAsArray()
Deprecated. 

Description copied from interface: AnnotatedItem
Gets the binding types for this element

Specified by:
getBindingsAsArray in interface AnnotatedItem<T,java.lang.Object>
Overrides:
getBindingsAsArray in class ForwardingAnnotatedItem<T,java.lang.Object>
See Also:
AnnotatedItem

isAnnotationPresent

public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: AnnotatedItem
Indicates if an annotation type specified is present

Specified by:
isAnnotationPresent in interface AnnotatedItem<T,java.lang.Object>
Overrides:
isAnnotationPresent in class ForwardingAnnotatedItem<T,java.lang.Object>
Parameters:
annotationType - The annotation to match
Returns:
True if present, false if not
See Also:
AnnotatedItem

getDeclaredMetaAnnotations

public java.util.Set<java.lang.annotation.Annotation> getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Description copied from interface: AnnotatedItem
Gets all annotations which are declared on this annotated item with the given meta annotation type

Specified by:
getDeclaredMetaAnnotations in interface AnnotatedItem<T,java.lang.Object>
Overrides:
getDeclaredMetaAnnotations in class ForwardingAnnotatedItem<T,java.lang.Object>
Returns:
A set of matching meta-annotations. Returns an empty set if there are no matches.


Copyright © 2011. All Rights Reserved.