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:
javax.enterprise.inject.spi.Annotated
,javax.enterprise.inject.spi.AnnotatedField<X>
,javax.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Field
getAnnotatedField()
Gets the underlying fieldField
getDelegate()
String
getPropertyName()
Gets the property nameboolean
isGeneric()
static <X,Y extends X>
EnhancedAnnotatedFieldImpl<?,X>of(javax.enterprise.inject.spi.AnnotatedField<X> annotatedField, EnhancedAnnotatedType<Y> declaringClass, ClassTransformer classTransformer)
javax.enterprise.inject.spi.AnnotatedField<X>
slim()
Returns a lightweight implementation ofAnnotatedField
with minimal memory footprint.String
toString()
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 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(javax.enterprise.inject.spi.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:
getDelegate
in classAbstractEnhancedAnnotated<T,Field>
-
getPropertyName
public String getPropertyName()
Gets the property name- Specified by:
getPropertyName
in interfaceEnhancedAnnotatedField<T,X>
- Returns:
- The property name
- See Also:
EnhancedAnnotated.getName()
-
toString
public String toString()
Gets a string representation of the field- Overrides:
toString
in classAbstractEnhancedAnnotatedMember<T,X,Field>
- Returns:
- A string representation
-
isGeneric
public boolean isGeneric()
- Specified by:
isGeneric
in interfaceEnhancedAnnotated<T,X>
-
slim
public javax.enterprise.inject.spi.AnnotatedField<X> slim()
Description copied from interface:EnhancedAnnotatedField
Returns a lightweight implementation ofAnnotatedField
with minimal memory footprint.- Specified by:
slim
in interfaceEnhancedAnnotated<T,X>
- Specified by:
slim
in interfaceEnhancedAnnotatedField<T,X>
- Specified by:
slim
in interfaceEnhancedAnnotatedMember<T,X,Field>
- Returns:
- the slim version of this
AnnotatedField
-
-