Interface FieldDescription
- All Superinterfaces:
AnnotationSource, ByteCodeElement, ByteCodeElement.Member, ByteCodeElement.TypeDependant<FieldDescription.InDefinedShape, FieldDescription.Token>, DeclaredByType, DeclaredByType.WithMandatoryDeclaration, ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, NamedElement, NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithRuntimeName
- All Known Subinterfaces:
FieldDescription.InDefinedShape, FieldDescription.InGenericShape
- All Known Implementing Classes:
FieldDescription.AbstractBase, FieldDescription.ForLoadedField, FieldDescription.InDefinedShape.AbstractBase, FieldDescription.Latent, FieldDescription.TypeSubstituting, Implementation.Context.Default.CacheValueField, Transformer.ForField.TransformedField, TypePool.Default.LazyTypeDescription.LazyFieldDescription
public interface FieldDescription
extends ModifierReviewable.ForFieldDescription, DeclaredByType.WithMandatoryDeclaration, ByteCodeElement.Member, ByteCodeElement.TypeDependant<FieldDescription.InDefinedShape, FieldDescription.Token>
Implementations of this interface describe a Java field. Implementations of this interface must provide meaningful
equal(Object) and hashCode() implementations.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn abstract base implementation of a field description.static classAn implementation of a field description for a loaded field.static interfaceRepresents a field in its defined shape, i.e.static interfaceRepresents a field description in its generic shape, i.e.static classA latent field description describes a field that is not attached to a declaringTypeDescription.static classA token that uniquely identifies a field by its name and type erasure.static classA token representing a field's properties detached from a type.static classA field description that represents a given field but with a substituted field type.Nested classes/interfaces inherited from interface AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested classes/interfaces inherited from interface ByteCodeElement
ByteCodeElement.Member, ByteCodeElement.TypeDependant<T,S> Nested classes/interfaces inherited from interface DeclaredByType
DeclaredByType.WithMandatoryDeclarationNested classes/interfaces inherited from interface ModifierReviewable
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatableNested classes/interfaces inherited from interface NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectA representative of a field's non-set default value.Fields inherited from interface ModifierReviewable
EMPTY_MASKFields inherited from interface NamedElement
EMPTY_NAME, NO_NAMEFields inherited from interface NamedElement.WithDescriptor
NON_GENERIC_SIGNATURE -
Method Summary
Modifier and TypeMethodDescriptionReturns a signature token representing this field.intReturns the field's actual modifiers as it is present in a class file, i.e.Returns the declaring type of this instance.getType()Returns the type of the described field.Methods inherited from interface AnnotationSource
getDeclaredAnnotationsMethods inherited from interface ByteCodeElement
isAccessibleTo, isVisibleToMethods inherited from interface ByteCodeElement.TypeDependant
asDefined, asTokenMethods inherited from interface ModifierReviewable
getModifiers, getSyntheticState, isFinal, isSyntheticMethods inherited from interface ModifierReviewable.ForFieldDescription
getFieldManifestation, getFieldPersistence, isTransient, isVolatileMethods inherited from interface ModifierReviewable.OfByteCodeElement
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticMethods inherited from interface ModifierReviewable.OfEnumeration
getEnumerationState, isEnumMethods inherited from interface NamedElement
getActualNameMethods inherited from interface NamedElement.WithDescriptor
getDescriptor, getGenericSignatureMethods inherited from interface NamedElement.WithGenericName
toGenericStringMethods inherited from interface NamedElement.WithRuntimeName
getInternalName, getName
-
Field Details
-
NO_DEFAULT_VALUE
A representative of a field's non-set default value.
-
-
Method Details
-
getDeclaringType
Returns the declaring type of this instance.- Specified by:
getDeclaringTypein interfaceDeclaredByType- Specified by:
getDeclaringTypein interfaceDeclaredByType.WithMandatoryDeclaration- Returns:
- The declaring type or
nullif no such type exists.
-
getType
TypeDescription.Generic getType()Returns the type of the described field.- Returns:
- The type of the described field.
-
getActualModifiers
int getActualModifiers()Returns the field's actual modifiers as it is present in a class file, i.e. its modifiers including a flag if this field is deprecated.- Returns:
- The field's actual modifiers.
-
asSignatureToken
FieldDescription.SignatureToken asSignatureToken()Returns a signature token representing this field.- Returns:
- A signature token representing this field.
-