Class EnhancedAnnotatedFieldImpl<T,X>
java.lang.Object
org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated<T,S>
org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedMember<T,X,Field>
org.jboss.weld.annotated.enhanced.jlr.EnhancedAnnotatedFieldImpl<T,X>
- Type Parameters:
T-
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.Annotated,jakarta.enterprise.inject.spi.AnnotatedField<X>,jakarta.enterprise.inject.spi.AnnotatedMember<X>,EnhancedAnnotated<T,,Field> EnhancedAnnotatedField<T,,X> EnhancedAnnotatedMember<T,X, Field>
public class EnhancedAnnotatedFieldImpl<T,X>
extends AbstractEnhancedAnnotatedMember<T,X,Field>
implements EnhancedAnnotatedField<T,X>
Represents an annotated field
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 -
Method Summary
Modifier and TypeMethodDescriptionGets the underlying fieldGets the property namebooleanstatic <X,Y extends X>
EnhancedAnnotatedFieldImpl<?,X> of(jakarta.enterprise.inject.spi.AnnotatedField<X> annotatedField, EnhancedAnnotatedType<Y> declaringClass, ClassTransformer classTransformer) jakarta.enterprise.inject.spi.AnnotatedField<X>slim()Returns a lightweight implementation ofAnnotatedFieldwith minimal memory footprint.toString()Gets a string representation of the fieldMethods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedMember
getDeclaringType, getJavaMember, getName, getPackage, isFinal, isPackagePrivate, isPrivate, isPublic, isStatic, isTransientMethods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated
addMetaAnnotations, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive, processMetaAnnotations, processMetaAnnotations, processMetaAnnotationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentMethods inherited from interface jakarta.enterprise.inject.spi.AnnotatedField
getAnnotations, getJavaMemberMethods inherited from interface jakarta.enterprise.inject.spi.AnnotatedMember
isStaticMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStaticMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedField
isTransientMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedMember
getDeclaringType
-
Method Details
-
of
public static <X,Y extends X> EnhancedAnnotatedFieldImpl<?,X> of(jakarta.enterprise.inject.spi.AnnotatedField<X> annotatedField, EnhancedAnnotatedType<Y> declaringClass, ClassTransformer classTransformer) -
getAnnotatedField
Gets the underlying field- Returns:
- The fields
-
getDelegate
- Specified by:
getDelegatein classAbstractEnhancedAnnotated<T,Field>
-
getPropertyName
Gets the property name- Specified by:
getPropertyNamein interfaceEnhancedAnnotatedField<T,X> - Returns:
- The property name
- See Also:
-
toString
Gets a string representation of the field- Overrides:
toStringin classAbstractEnhancedAnnotatedMember<T,X, Field> - Returns:
- A string representation
-
isGeneric
public boolean isGeneric()- Specified by:
isGenericin interfaceEnhancedAnnotated<T,X>
-
slim
Description copied from interface:EnhancedAnnotatedFieldReturns a lightweight implementation ofAnnotatedFieldwith minimal memory footprint.- Specified by:
slimin interfaceEnhancedAnnotated<T,X> - Specified by:
slimin interfaceEnhancedAnnotatedField<T,X> - Specified by:
slimin interfaceEnhancedAnnotatedMember<T,X, Field> - Returns:
- the slim version of this
AnnotatedField
-