Enum Class Advice.Delegator.ForStaticInvocation

java.lang.Object
java.lang.Enum<Advice.Delegator.ForStaticInvocation>
net.bytebuddy.asm.Advice.Delegator.ForStaticInvocation
All Implemented Interfaces:
Serializable, Comparable<Advice.Delegator.ForStaticInvocation>, Constable, Advice.Delegator
Enclosing interface:
Advice.Delegator

public static enum Advice.Delegator.ForStaticInvocation extends Enum<Advice.Delegator.ForStaticInvocation> implements Advice.Delegator
Invokes an advice method using a static method call.
  • Enum Constant Details

  • Constructor Details

    • ForStaticInvocation

      private ForStaticInvocation()
  • Method Details

    • values

      public static Advice.Delegator.ForStaticInvocation[] 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 Advice.Delegator.ForStaticInvocation 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
    • apply

      public void apply(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean exit)
      Materializes an invocation.
      Specified by:
      apply in interface Advice.Delegator
      Parameters:
      methodVisitor - The method visitor to apply the materialization to.
      adviceMethod - The advice method to materialize.
      instrumentedType - The instrumented type.
      instrumentedMethod - The instrumented method.
      exit - true if the materialization is exit advice.