org.jboss.webbeans.introspector.jlr
Class AnnotatedParameterImpl<T>

java.lang.Object
  extended by org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem<T,java.lang.Object>
      extended by org.jboss.webbeans.introspector.jlr.AnnotatedParameterImpl<T>
Type Parameters:
T -
All Implemented Interfaces:
AnnotatedItem<T,java.lang.Object>, AnnotatedParameter<T>

public class AnnotatedParameterImpl<T>
extends AbstractAnnotatedItem<T,java.lang.Object>
implements AnnotatedParameter<T>

Represents a parameter This class is immutable and therefore threadsafe

Author:
Pete Muir

Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Constructor Summary
protected AnnotatedParameterImpl(java.lang.annotation.Annotation[] annotations, java.lang.Class<T> rawType, java.lang.reflect.Type type, AnnotatedMember<?,?> declaringMember)
          Constructor
 
Method Summary
 AnnotatedMember<?,?> getDeclaringMember()
           
 java.lang.Object getDelegate()
          Gets the delegate
 java.lang.String getName()
          Gets the name of the parameter
 T getValue(Manager manager)
          Gets the current value
 boolean isFinal()
          Indicates if the parameter is final
 boolean isPublic()
          Indicates if this annotated item is public
 boolean isStatic()
          Indicates if the parameter is static
static
<T> AnnotatedParameter<T>
of(java.lang.annotation.Annotation[] annotations, java.lang.Class<T> rawType, java.lang.reflect.Type type, AnnotatedMember<?,?> declaringMember)
           
 java.lang.String toString()
          Gets a string representation of the parameter
 AnnotatedParameter<T> wrap(java.util.Set<java.lang.annotation.Annotation> annotations)
           
 
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem
equals, getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getRawType, getType, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isParameterizedType, isProxyable
 
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, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getRawType, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isParameterizedType, isProxyable
 

Constructor Detail

AnnotatedParameterImpl

protected AnnotatedParameterImpl(java.lang.annotation.Annotation[] annotations,
                                 java.lang.Class<T> rawType,
                                 java.lang.reflect.Type type,
                                 AnnotatedMember<?,?> declaringMember)
Constructor

Parameters:
annotations - The annotations array
type - The type of the parameter
Method Detail

of

public static <T> AnnotatedParameter<T> of(java.lang.annotation.Annotation[] annotations,
                                           java.lang.Class<T> rawType,
                                           java.lang.reflect.Type type,
                                           AnnotatedMember<?,?> declaringMember)

getDelegate

public java.lang.Object getDelegate()
Gets the delegate

Specified by:
getDelegate in class AbstractAnnotatedItem<T,java.lang.Object>
Returns:
The delegate (null)
See Also:
org.jboss.webbeans.introspector.AnnotatedItem#getDelegate()

isFinal

public boolean isFinal()
Indicates if the parameter is final

Specified by:
isFinal in interface AnnotatedItem<T,java.lang.Object>
Returns:
True if final, false otherwise
See Also:
AnnotatedItem.isFinal()

isStatic

public boolean isStatic()
Indicates if the parameter is static

Specified by:
isStatic in interface AnnotatedItem<T,java.lang.Object>
Returns:
True if static, false otherwise
See Also:
AnnotatedItem.isStatic()

isPublic

public boolean isPublic()
Description copied from interface: AnnotatedItem
Indicates if this annotated item is public

Specified by:
isPublic in interface AnnotatedItem<T,java.lang.Object>
Returns:
if public, returns true

getValue

public T getValue(Manager manager)
Gets the current value

Specified by:
getValue in interface AnnotatedParameter<T>
Parameters:
manager - The Web Beans manager
Returns:
the value
See Also:
AnnotatedParameter

getName

public java.lang.String getName()
Gets the name of the parameter

Specified by:
getName in interface AnnotatedItem<T,java.lang.Object>
Returns:
The name
Throws:
java.lang.IllegalArgumentException - (not supported)
See Also:
AnnotatedItem.getName()

toString

public java.lang.String toString()
Gets a string representation of the parameter

Overrides:
toString in class AbstractAnnotatedItem<T,java.lang.Object>
Returns:
A string representation

getDeclaringMember

public AnnotatedMember<?,?> getDeclaringMember()
Specified by:
getDeclaringMember in interface AnnotatedParameter<T>

wrap

public AnnotatedParameter<T> wrap(java.util.Set<java.lang.annotation.Annotation> annotations)


Copyright © 2011. All Rights Reserved.