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:
Annotated,AnnotatedField<X>,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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldgetAnnotatedField()Gets the underlying fieldFieldgetDelegate()StringgetPropertyName()Gets the property namebooleanisGeneric()static <X,Y extends X>
EnhancedAnnotatedFieldImpl<?,X>of(AnnotatedField<X> annotatedField, EnhancedAnnotatedType<Y> declaringClass, ClassTransformer classTransformer)AnnotatedField<X>slim()Returns a lightweight implementation ofAnnotatedFieldwith minimal memory footprint.StringtoString()Gets a string representation of the field-
Methods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedMember
getDeclaringType, getJavaMember, getName, getPackage, isFinal, isPackagePrivate, isPrivate, isPublic, isStatic, isTransient
-
Methods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated
addMetaAnnotations, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, 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, getBaseType, getTypeClosure, isAnnotationPresent
-
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedField
getAnnotations, getJavaMember
-
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember
isStatic
-
Methods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
-
Methods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedField
isTransient
-
Methods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedMember
getDeclaringType
-
-
-
-
Method Detail
-
of
public static <X,Y extends X> EnhancedAnnotatedFieldImpl<?,X> of(AnnotatedField<X> annotatedField, EnhancedAnnotatedType<Y> declaringClass, ClassTransformer classTransformer)
-
getAnnotatedField
public Field getAnnotatedField()
Gets the underlying field- Returns:
- The fields
-
getDelegate
public Field getDelegate()
- Specified by:
getDelegatein classAbstractEnhancedAnnotated<T,Field>
-
getPropertyName
public String getPropertyName()
Gets the property name- Specified by:
getPropertyNamein interfaceEnhancedAnnotatedField<T,X>- Returns:
- The property name
- See Also:
EnhancedAnnotated.getName()
-
toString
public String 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
public AnnotatedField<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
-
-