Enum Class MethodRegistry.Handler.ForAbstractMethod

java.lang.Object
java.lang.Enum<MethodRegistry.Handler.ForAbstractMethod>
net.bytebuddy.dynamic.scaffold.MethodRegistry.Handler.ForAbstractMethod
All Implemented Interfaces:
Serializable, Comparable<MethodRegistry.Handler.ForAbstractMethod>, Constable, InstrumentedType.Prepareable, MethodRegistry.Handler, MethodRegistry.Handler.Compiled
Enclosing interface:
MethodRegistry.Handler

public static enum MethodRegistry.Handler.ForAbstractMethod extends Enum<MethodRegistry.Handler.ForAbstractMethod> implements MethodRegistry.Handler, MethodRegistry.Handler.Compiled
A handler for defining an abstract or native method.
  • Enum Constant Details

  • Constructor Details

    • ForAbstractMethod

      private ForAbstractMethod()
  • Method Details

    • values

      public static MethodRegistry.Handler.ForAbstractMethod[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MethodRegistry.Handler.ForAbstractMethod valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • prepare

      public InstrumentedType prepare(InstrumentedType instrumentedType)
      Prepares a given instrumented type.
      Specified by:
      prepare in interface InstrumentedType.Prepareable
      Parameters:
      instrumentedType - The instrumented type in its current form.
      Returns:
      The prepared instrumented type.
    • compile

      public MethodRegistry.Handler.Compiled compile(Implementation.Target implementationTarget)
      Compiles this handler.
      Specified by:
      compile in interface MethodRegistry.Handler
      Parameters:
      implementationTarget - The implementation target to compile this handler for.
      Returns:
      A compiled handler.
    • assemble

      public TypeWriter.MethodPool.Record assemble(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility)
      Assembles this compiled entry with a method attribute appender.
      Specified by:
      assemble in interface MethodRegistry.Handler.Compiled
      Parameters:
      methodDescription - The method description to apply with this handler.
      attributeAppender - The method attribute appender to apply together with this handler.
      visibility - The represented method's minimum visibility.
      Returns:
      A method pool entry representing this handler and the given attribute appender.