Interface FieldDescription

All Superinterfaces:
AnnotationSource, ByteCodeElement, 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

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

    • NO_DEFAULT_VALUE

      @AlwaysNull static final Object NO_DEFAULT_VALUE
      A representative of a field's non-set default value.
  • Method Details

    • 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

      Returns a signature token representing this field.
      Returns:
      A signature token representing this field.