Enum MethodCall.FieldSetting.Appender

java.lang.Object
java.lang.Enum<MethodCall.FieldSetting.Appender>
net.bytebuddy.implementation.MethodCall.FieldSetting.Appender
All Implemented Interfaces:
Serializable, Comparable<MethodCall.FieldSetting.Appender>, java.lang.constant.Constable, ByteCodeAppender
Enclosing class:
MethodCall.FieldSetting

protected static enum MethodCall.FieldSetting.Appender extends Enum<MethodCall.FieldSetting.Appender> implements ByteCodeAppender
A byte code appender to implement a field-setting method call.
  • Enum Constant Details

  • Constructor Details

    • Appender

      private Appender()
  • Method Details

    • values

      public static MethodCall.FieldSetting.Appender[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MethodCall.FieldSetting.Appender valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • apply

      public ByteCodeAppender.Size apply(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod)
      Applies this byte code appender to a type creation process.
      Specified by:
      apply in interface ByteCodeAppender
      Parameters:
      methodVisitor - The method visitor to which the byte code appender writes its code to.
      implementationContext - The implementation context of the current type creation process.
      instrumentedMethod - The method that is the target of the instrumentation.
      Returns:
      The required size for the applied byte code to run.