Class AbstractEnhancedAnnotatedMember<T,X,S extends Member>
- java.lang.Object
-
- org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated<T,S>
-
- org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedMember<T,X,S>
-
- Type Parameters:
T-S-
- All Implemented Interfaces:
Annotated,AnnotatedMember<X>,EnhancedAnnotated<T,S>,EnhancedAnnotatedMember<T,X,S>
- Direct Known Subclasses:
AbstractEnhancedAnnotatedCallable,EnhancedAnnotatedFieldImpl
public abstract class AbstractEnhancedAnnotatedMember<T,X,S extends Member> extends AbstractEnhancedAnnotated<T,S> implements EnhancedAnnotatedMember<T,X,S>
Represents an abstract annotated member (field, method or constructor) This class is immutable, and therefore threadsafe- Author:
- Pete Muir
-
-
Field Summary
-
Fields inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractEnhancedAnnotatedMember(AnnotatedMember<X> annotatedMember, Map<Class<? extends Annotation>,Annotation> annotationMap, Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap, ClassTransformer classTransformer, EnhancedAnnotatedType<X> declaringType)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnhancedAnnotatedType<X>getDeclaringType()Gets an abstraction of the declaring classSgetJavaMember()Get the underlyingMember.StringgetName()Gets the name of the memberPackagegetPackage()booleanisFinal()Indicates if the member if finalbooleanisPackagePrivate()booleanisPrivate()booleanisPublic()Indicates if this annotated item is publicbooleanisStatic()Indicates if the member is staticbooleanisTransient()StringtoString()Gets a string representation of the member-
Methods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated
addMetaAnnotations, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getDelegate, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive, processMetaAnnotations, processMetaAnnotations, processMetaAnnotations
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
-
Methods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, isGeneric, isParameterizedType, isPrimitive
-
Methods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedMember
slim
-
-
-
-
Constructor Detail
-
AbstractEnhancedAnnotatedMember
protected AbstractEnhancedAnnotatedMember(AnnotatedMember<X> annotatedMember, Map<Class<? extends Annotation>,Annotation> annotationMap, Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap, ClassTransformer classTransformer, EnhancedAnnotatedType<X> declaringType)
Constructor- Parameters:
annotationMap- The annotation map
-
-
Method Detail
-
isStatic
public boolean isStatic()
Indicates if the member is static- Specified by:
isStaticin interfaceAnnotatedMember<T>- Specified by:
isStaticin interfaceEnhancedAnnotated<T,X>- Returns:
- True if static, false otherwise
- See Also:
EnhancedAnnotated.isStatic()
-
isFinal
public boolean isFinal()
Indicates if the member if final- Specified by:
isFinalin interfaceEnhancedAnnotated<T,X>- Returns:
- True if final, false otherwise
- See Also:
EnhancedAnnotated.isFinal()
-
isTransient
public boolean isTransient()
-
isPublic
public boolean isPublic()
Description copied from interface:EnhancedAnnotatedIndicates if this annotated item is public- Specified by:
isPublicin interfaceEnhancedAnnotated<T,X>- Returns:
- if public, returns true
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivatein interfaceEnhancedAnnotated<T,X>
-
isPackagePrivate
public boolean isPackagePrivate()
- Specified by:
isPackagePrivatein interfaceEnhancedAnnotated<T,X>
-
getPackage
public Package getPackage()
- Specified by:
getPackagein interfaceEnhancedAnnotated<T,X>
-
getName
public String getName()
Gets the name of the member- Specified by:
getNamein interfaceEnhancedAnnotated<T,X>- Returns:
- The name
- See Also:
EnhancedAnnotated.getName()
-
toString
public String toString()
Gets a string representation of the member
-
getJavaMember
public S getJavaMember()
Description copied from interface:AnnotatedMemberGet the underlying
Member.- Specified by:
getJavaMemberin interfaceAnnotatedMember<T>- Returns:
- the
Member
-
getDeclaringType
public EnhancedAnnotatedType<X> getDeclaringType()
Description copied from interface:EnhancedAnnotatedMemberGets an abstraction of the declaring class- Specified by:
getDeclaringTypein interfaceAnnotatedMember<T>- Specified by:
getDeclaringTypein interfaceEnhancedAnnotatedMember<T,X,S extends Member>- Returns:
- The declaring class
-
-