Class FieldAccess.AccessDispatcher

java.lang.Object
net.bytebuddy.implementation.bytecode.member.FieldAccess.AccessDispatcher
All Implemented Interfaces:
FieldAccess.Defined
Enclosing class:
FieldAccess

@Enhance(includeSyntheticFields=true) protected class FieldAccess.AccessDispatcher extends Object implements FieldAccess.Defined
A dispatcher for implementing a non-generic read or write access on a field.
  • Field Details

  • Constructor Details

    • AccessDispatcher

      protected AccessDispatcher(FieldDescription.InDefinedShape fieldDescription)
      Creates a new access dispatcher.
      Parameters:
      fieldDescription - A description of the accessed field.
  • Method Details

    • read

      public StackManipulation read()
      Creates a getter representation for a given field.
      Specified by:
      read in interface FieldAccess.Defined
      Returns:
      A stack manipulation representing the retrieval of a field value.
    • write

      public StackManipulation write()
      Creates a setter representation for a given field.
      Specified by:
      write in interface FieldAccess.Defined
      Returns:
      A stack manipulation representing the setting of a field value.