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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem
AbstractAnnotatedItem.AnnotationMap
 
Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Constructor Summary
AnnotatedParameterImpl(java.lang.annotation.Annotation[] annotations, java.lang.Class<T> type)
          Constructor
 
Method Summary
 java.lang.reflect.Type[] getActualTypeArguments()
          Gets the actual type arguments
 java.lang.Object getDelegate()
          Gets the delegate
 java.lang.String getName()
          Gets the name of the parameter
 java.lang.Class<T> getType()
          Gets the type of the parameter
 T getValue(Manager manager)
          Gets the current value
 boolean isFinal()
          Indicates if the parameter is final
 boolean isStatic()
          Indicates if the parameter is static
 java.lang.String toDetailedString()
           
 java.lang.String toString()
          Gets a string representation of the parameter
 
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem
buildAnnotationMap, buildAnnotationMap, equals, getAnnotation, getAnnotationMap, getAnnotations, getBindingTypes, getBindingTypesAsArray, getMetaAnnotations, getMetaAnnotationsAsArray, getParameterValues, getParameterValues, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, 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
getAnnotation, getAnnotations, getBindingTypes, getBindingTypesAsArray, getMetaAnnotations, getMetaAnnotationsAsArray, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isProxyable
 

Constructor Detail

AnnotatedParameterImpl

public AnnotatedParameterImpl(java.lang.annotation.Annotation[] annotations,
                              java.lang.Class<T> type)
Constructor

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

getActualTypeArguments

public java.lang.reflect.Type[] getActualTypeArguments()
Gets the actual type arguments

Specified by:
getActualTypeArguments in interface AnnotatedItem<T,java.lang.Object>
Returns:
The type arguments
See Also:
AnnotatedItem.getActualTypeArguments()

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()

getType

public java.lang.Class<T> getType()
Gets the type of the parameter

Specified by:
getType in interface AnnotatedItem<T,java.lang.Object>
Returns:
The type
See Also:
AnnotatedItem.getType()

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()

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

toDetailedString

public java.lang.String toDetailedString()
Overrides:
toDetailedString in class AbstractAnnotatedItem<T,java.lang.Object>


Copyright © 2008. All Rights Reserved.