Class Implementation.Context.Default.CacheValueField

All Implemented Interfaces:
AnnotationSource, ByteCodeElement, ByteCodeElement.Member, ByteCodeElement.TypeDependant<FieldDescription.InDefinedShape,FieldDescription.Token>, DeclaredByType, DeclaredByType.WithMandatoryDeclaration, FieldDescription, FieldDescription.InDefinedShape, ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, NamedElement, NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithRuntimeName
Enclosing class:
Implementation.Context.Default

protected static class Implementation.Context.Default.CacheValueField extends FieldDescription.InDefinedShape.AbstractBase
A description of a field that stores a cached value.
  • Field Details

    • instrumentedType

      private final TypeDescription instrumentedType
      The instrumented type.
    • fieldType

      private final TypeDescription.Generic fieldType
      The type of the cache's field.
    • name

      private final String name
      The name of the field.
  • Constructor Details

    • CacheValueField

      protected CacheValueField(TypeDescription instrumentedType, TypeDescription.Generic fieldType, String suffix, int hashCode)
      Creates a new cache value field.
      Parameters:
      instrumentedType - The instrumented type.
      fieldType - The type of the cache's field.
      suffix - The suffix to use for the cache field's name.
      hashCode - The hash value of the field's value for creating a unique field name.
  • Method Details

    • getType

      public TypeDescription.Generic getType()
      Returns the type of the described field.
      Returns:
      The type of the described field.
    • getDeclaredAnnotations

      public AnnotationList getDeclaredAnnotations()
      Returns a list of annotations that are declared by this instance.
      Returns:
      A list of declared annotations.
    • getDeclaringType

      @Nonnull public TypeDescription getDeclaringType()
      Returns the declaring type of this instance.
      Returns:
      The declaring type or null if no such type exists.
    • getModifiers

      public int getModifiers()
      Returns the modifier that is described by this object.
      Returns:
      The modifier that is described by this object.
    • getName

      public String getName()
      Returns the binary name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.
      Returns:
      The binary ame of this byte code element as visible from within a running Java application.