Package net.bytebuddy.description.field
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 ByteCodeElement, 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 net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested classes/interfaces inherited from interface net.bytebuddy.description.ByteCodeElement
ByteCodeElement.Member, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>, S extends ByteCodeElement.Token<S>> Nested classes/interfaces inherited from interface net.bytebuddy.description.DeclaredByType
DeclaredByType.WithMandatoryDeclarationNested classes/interfaces inherited from interface net.bytebuddy.description.ModifierReviewable
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationNested classes/interfaces inherited from interface net.bytebuddy.description.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 net.bytebuddy.description.ModifierReviewable
EMPTY_MASKFields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAMEFields inherited from interface net.bytebuddy.description.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.getType()Returns the type of the described field.Methods inherited from interface net.bytebuddy.description.annotation.AnnotationSource
getDeclaredAnnotationsMethods inherited from interface net.bytebuddy.description.ByteCodeElement
isAccessibleTo, isVisibleToMethods inherited from interface net.bytebuddy.description.ByteCodeElement.TypeDependant
asDefined, asTokenMethods inherited from interface net.bytebuddy.description.DeclaredByType.WithMandatoryDeclaration
getDeclaringTypeMethods inherited from interface net.bytebuddy.description.ModifierReviewable
getModifiers, getSyntheticState, isFinal, isSyntheticMethods inherited from interface net.bytebuddy.description.ModifierReviewable.ForFieldDescription
getFieldManifestation, getFieldPersistence, isTransient, isVolatileMethods inherited from interface net.bytebuddy.description.ModifierReviewable.OfByteCodeElement
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticMethods inherited from interface net.bytebuddy.description.ModifierReviewable.OfEnumeration
getEnumerationState, isEnumMethods inherited from interface net.bytebuddy.description.NamedElement
getActualNameMethods inherited from interface net.bytebuddy.description.NamedElement.WithDescriptor
getDescriptor, getGenericSignatureMethods inherited from interface net.bytebuddy.description.NamedElement.WithGenericName
toGenericStringMethods inherited from interface net.bytebuddy.description.NamedElement.WithRuntimeName
getInternalName, getName
-
Field Details
-
NO_DEFAULT_VALUE
A representative of a field's non-set default value.
-
-
Method Details
-
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.
-