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>, AnnotatedMember<T,S>
Direct Known Subclasses:
AnnotatedConstructorImpl, AnnotatedFieldImpl, AnnotatedMethodImpl

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

Represents an abstract annotated memeber (field, method or constructor) 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 AbstractAnnotatedMember(AnnotationStore annotatedItemHelper, java.lang.reflect.Member member, java.lang.Class<T> rawType, java.lang.reflect.Type type)
          Constructor
 
Method Summary
 S getMember()
           
 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 isPublic()
          Indicates if this annotated item is public
 boolean isStatic()
          Indicates if the member is static
 boolean isTransient()
           
 java.lang.String toString()
          Gets a string representation of the member
 
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem
equals, getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getDelegate, 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.AnnotatedMember
getDeclaringClass
 
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

AbstractAnnotatedMember

protected AbstractAnnotatedMember(AnnotationStore annotatedItemHelper,
                                  java.lang.reflect.Member member,
                                  java.lang.Class<T> rawType,
                                  java.lang.reflect.Type type)
Constructor

Parameters:
annotationMap - The annotation map
Method Detail

isStatic

public boolean isStatic()
Indicates if the member is static

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

isFinal

public boolean isFinal()
Indicates if the member if final

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

isTransient

public boolean isTransient()

isPublic

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

Specified by:
isPublic in interface AnnotatedItem<T,S extends java.lang.reflect.Member>
Returns:
if public, returns true

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

Specified by:
getName in interface AnnotatedItem<T,S extends java.lang.reflect.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

getMember

public S getMember()
Specified by:
getMember in interface AnnotatedMember<T,S extends java.lang.reflect.Member>


Copyright © 2011. All Rights Reserved.