org.jboss.webbeans.introspector.jlr
Class AbstractAnnotatedMember<T,S extends java.lang.reflect.Member>

java.lang.Object
  extended by org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem<T,S>
      extended by org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember<T,S>
Type Parameters:
T -
S -
All Implemented Interfaces:
AnnotatedItem<T,S>
Direct Known Subclasses:
AnnotatedConstructorImpl, AnnotatedFieldImpl, AnnotatedMethodImpl

public abstract class AbstractAnnotatedMember<T,S extends java.lang.reflect.Member>
extends AbstractAnnotatedItem<T,S>

Represents an abstract annotated memeber (field, method or constructor) This class is immutable, and therefore threadsafe

Author:
Pete Muir

Nested Class Summary
protected  class AbstractAnnotatedMember.AnnotatedParameterMap
          An annotation type -> list of annotations map
 
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
AbstractAnnotatedMember(AbstractAnnotatedItem.AnnotationMap annotationMap, java.lang.reflect.Member member)
          Constructor
 
Method Summary
 java.lang.String getName()
          Gets the name of the member
 T getValue(Manager manager)
          Gets the current value of the member
 boolean isFinal()
          Indicates if the member if final
 boolean isStatic()
          Indicates if the member is static
 java.lang.String toDetailedString()
           
 java.lang.String toString()
          Gets a string representation of the member
 
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem
buildAnnotationMap, buildAnnotationMap, equals, getAnnotation, getAnnotationMap, getAnnotations, getBindingTypes, getBindingTypesAsArray, getDelegate, 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
getActualTypeArguments, getType
 

Constructor Detail

AbstractAnnotatedMember

public AbstractAnnotatedMember(AbstractAnnotatedItem.AnnotationMap annotationMap,
                               java.lang.reflect.Member member)
Constructor

Parameters:
annotationMap - The annotation map
Method Detail

isStatic

public boolean isStatic()
Indicates if the member is static

Returns:
True if static, false otherwise
See Also:
AnnotatedItem.isStatic()

isFinal

public boolean isFinal()
Indicates if the member if final

Returns:
True if final, false otherwise
See Also:
AnnotatedItem.isFinal()

getValue

public T getValue(Manager manager)
Gets the current value of the member

Parameters:
manager - The Web Beans manager
Returns:
The current value

getName

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

Returns:
The name
See Also:
AnnotatedItem.getName()

toString

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

Overrides:
toString in class AbstractAnnotatedItem<T,S extends java.lang.reflect.Member>
Returns:
A string representation

toDetailedString

public java.lang.String toDetailedString()
Overrides:
toDetailedString in class AbstractAnnotatedItem<T,S extends java.lang.reflect.Member>


Copyright © 2008. All Rights Reserved.