Top Description Inners Fields Methods
net.bytebuddy.description.field

public Interface FieldDescription

extends ForFieldDescription, WithMandatoryDeclaration, Member, ByteCodeElement.TypeDependant<FieldDescription.InDefinedShape, FieldDescription.Token>
Known Direct Subinterfaces
net.bytebuddy.description.field.FieldDescription.InGenericShape, net.bytebuddy.description.field.FieldDescription.InDefinedShape
Known Direct Implementers
net.bytebuddy.description.field.FieldDescription.AbstractBase
Imports
edu.umd.cs.findbugs.annotations.SuppressFBWarnings, net.bytebuddy.build.CachedReturnPlugin, net.bytebuddy.description.ByteCodeElement, .DeclaredByType, .ModifierReviewable, net.bytebuddy.description.annotation.AnnotationDescription, .AnnotationList, net.bytebuddy.description.type.TypeDefinition, .TypeDescription, net.bytebuddy.matcher.ElementMatcher, net.bytebuddy.utility.nullability.AlwaysNull, .MaybeNull, net.bytebuddy.jar.asm.Opcodes, net.bytebuddy.jar.asm.signature.SignatureWriter, javax.annotation.Nonnull, java.lang.reflect.Field, .GenericSignatureFormatError, .Modifier, java.util.Collections, .List

Implementations of this interface describe a Java field. Implementations of this interface must provide meaningful equal(Object) and hashCode() implementations.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
FieldDescription.AbstractBase

An abstract base implementation of a field description.

public static class
FieldDescription.ForLoadedField

An implementation of a field description for a loaded field.

public static interface
FieldDescription.InDefinedShape

Represents a field in its defined shape, i.e. in the form it is defined by a class without its type variables being resolved.

public static interface
FieldDescription.InGenericShape

Represents a field description in its generic shape, i.e. in the shape it is defined by a generic or raw type.

public static class
FieldDescription.Latent

A latent field description describes a field that is not attached to a declaring TypeDescription.

public static class
FieldDescription.SignatureToken

A token that uniquely identifies a field by its name and type erasure.

public static class
FieldDescription.Token

A token representing a field's properties detached from a type.

public static class
FieldDescription.TypeSubstituting

A field description that represents a given field but with a substituted field type.

Field Summary

Modifier and TypeField and Description
public static final Object
NO_DEFAULT_VALUE

A representative of a field's non-set default value.

Method Summary

Modifier and TypeMethod and Description
public FieldDescription.SignatureToken

Returns:

A signature token representing this field.
asSignatureToken
()

Returns a signature token representing this field.

public int

Returns:

The field's actual modifiers.
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.

public TypeDefinition
public TypeDescription.Generic

Returns:

The type of the described field.
getType
()

Returns the type of the described field.

Inherited from net.bytebuddy.description.ByteCodeElement.TypeDependant:
asDefinedasToken
Inherited from net.bytebuddy.description.ModifierReviewable.ForFieldDescription:
getFieldManifestationgetFieldPersistenceisTransientisVolatile