org.jboss.weld.introspector.jlr
Class AbstractWeldMember<T,X,S extends Member>

java.lang.Object
  extended by org.jboss.weld.introspector.jlr.AbstractWeldAnnotated<T,S>
      extended by org.jboss.weld.introspector.jlr.AbstractWeldMember<T,X,S>
Type Parameters:
T -
S -
All Implemented Interfaces:
javax.enterprise.inject.spi.Annotated, javax.enterprise.inject.spi.AnnotatedMember<X>, WeldAnnotated<T,S>, WeldMember<T,X,S>
Direct Known Subclasses:
AbstractWeldCallable, WeldFieldImpl

public abstract class AbstractWeldMember<T,X,S extends Member>
extends AbstractWeldAnnotated<T,S>
implements WeldMember<T,X,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.weld.introspector.WeldAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
 
Constructor Summary
protected AbstractWeldMember(Map<Class<? extends Annotation>,Annotation> annotationMap, Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap, ClassTransformer classTransformer, Member member, Class<T> rawType, Type type, LazyValueHolder<Set<Type>> typeClosure, WeldClass<X> declaringType)
          Constructor
 
Method Summary
 WeldClass<X> getDeclaringType()
          Gets an abstraction of the declaring class
 S getJavaMember()
           
 String getName()
          Gets the name of the member
 Package getPackage()
           
 boolean isFinal()
          Indicates if the member if final
 boolean isPackagePrivate()
           
 boolean isPrivate()
           
 boolean isPublic()
          Indicates if this annotated item is public
 boolean isStatic()
          Indicates if the member is static
 boolean isTransient()
           
 String toString()
          Gets a string representation of the member
 
Methods inherited from class org.jboss.weld.introspector.jlr.AbstractWeldAnnotated
addMetaAnnotations, addMetaAnnotations, buildAnnotationMap, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getDelegate, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, isGeneric, isParameterizedType, isPrimitive
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 

Constructor Detail

AbstractWeldMember

protected AbstractWeldMember(Map<Class<? extends Annotation>,Annotation> annotationMap,
                             Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap,
                             ClassTransformer classTransformer,
                             Member member,
                             Class<T> rawType,
                             Type type,
                             LazyValueHolder<Set<Type>> typeClosure,
                             WeldClass<X> declaringType)
Constructor

Parameters:
annotationMap - The annotation map
Method Detail

isStatic

public boolean isStatic()
Indicates if the member is static

Specified by:
isStatic in interface javax.enterprise.inject.spi.AnnotatedMember<X>
Specified by:
isStatic in interface WeldAnnotated<T,S extends Member>
Returns:
True if static, false otherwise
See Also:
WeldAnnotated.isStatic()

isFinal

public boolean isFinal()
Indicates if the member if final

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

isTransient

public boolean isTransient()

isPublic

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

Specified by:
isPublic in interface WeldAnnotated<T,S extends Member>
Returns:
if public, returns true

isPrivate

public boolean isPrivate()
Specified by:
isPrivate in interface WeldAnnotated<T,S extends Member>

isPackagePrivate

public boolean isPackagePrivate()
Specified by:
isPackagePrivate in interface WeldAnnotated<T,S extends Member>

getPackage

public Package getPackage()
Specified by:
getPackage in interface WeldAnnotated<T,S extends Member>

getName

public String getName()
Gets the name of the member

Specified by:
getName in interface WeldAnnotated<T,S extends Member>
Returns:
The name
See Also:
WeldAnnotated.getName()

toString

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

Overrides:
toString in class Object
Returns:
A string representation

getJavaMember

public S getJavaMember()
Specified by:
getJavaMember in interface javax.enterprise.inject.spi.AnnotatedMember<X>

getDeclaringType

public WeldClass<X> getDeclaringType()
Description copied from interface: WeldMember
Gets an abstraction of the declaring class

Specified by:
getDeclaringType in interface javax.enterprise.inject.spi.AnnotatedMember<X>
Specified by:
getDeclaringType in interface WeldMember<T,X,S extends Member>
Returns:
The declaring class


Copyright © 2013 Seam Framework. All Rights Reserved.