Class Implementation.Context.Default.FieldSetter

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

protected static class Implementation.Context.Default.FieldSetter extends Implementation.Context.Default.AbstractPropertyAccessorMethod
A description of a field setter method.
  • Field Details

    • instrumentedType

      private final TypeDescription instrumentedType
      The instrumented type.
    • fieldDescription

      private final FieldDescription fieldDescription
      The field for which a setter is described.
    • name

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

    • FieldSetter

      protected FieldSetter(TypeDescription instrumentedType, FieldDescription fieldDescription, String suffix)
      Creates a new field setter.
      Parameters:
      instrumentedType - The instrumented type.
      fieldDescription - The field for which a setter is described.
      suffix - The name suffix for the field setter method.
  • Method Details

    • getReturnType

      public TypeDescription.Generic getReturnType()
      Returns the return type of the described method.
      Returns:
      The return type of the described method.
    • getParameters

      Returns a list of this method's parameters.
      Returns:
      A list of this method's parameters.
    • getExceptionTypes

      public TypeList.Generic getExceptionTypes()
      Returns the exception types of the described method.
      Returns:
      The exception types of the described method.
    • getDefaultValue

      @MaybeNull public AnnotationValue<?,?> getDefaultValue()
      Returns the method's default annotation value or null if no default value is defined for this method.
      Returns:
      The method's default annotation value or null if no default value is defined for this method.
    • getTypeVariables

      public TypeList.Generic getTypeVariables()
      Returns the type variables that are declared by this element.
      Returns:
      The type variables that are declared by this element.
    • 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.
    • getBaseModifiers

      protected int getBaseModifiers()
      Returns the base modifiers, i.e. the modifiers that define the accessed property's features.
      Specified by:
      getBaseModifiers in class Implementation.Context.Default.AbstractPropertyAccessorMethod
      Returns:
      Returns the base modifiers of the represented methods.
    • getInternalName

      public String getInternalName()
      Returns the internal name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.
      Returns:
      The internal name of this byte code element as used within the Java class file format.