Enum AgentBuilder.LocationStrategy.NoOp

java.lang.Object
java.lang.Enum<AgentBuilder.LocationStrategy.NoOp>
net.bytebuddy.agent.builder.AgentBuilder.LocationStrategy.NoOp
All Implemented Interfaces:
Serializable, Comparable<AgentBuilder.LocationStrategy.NoOp>, java.lang.constant.Constable, AgentBuilder.LocationStrategy
Enclosing interface:
AgentBuilder.LocationStrategy

public static enum AgentBuilder.LocationStrategy.NoOp extends Enum<AgentBuilder.LocationStrategy.NoOp> implements AgentBuilder.LocationStrategy
A location strategy that never locates any byte code.
  • Enum Constant Details

  • Constructor Details

    • NoOp

      private NoOp()
  • Method Details

    • values

      public static AgentBuilder.LocationStrategy.NoOp[] 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 AgentBuilder.LocationStrategy.NoOp 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
    • classFileLocator

      public ClassFileLocator classFileLocator(@MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module)
      Creates a class file locator for a given class loader and module combination.
      Specified by:
      classFileLocator in interface AgentBuilder.LocationStrategy
      Parameters:
      classLoader - The class loader that is loading an instrumented type. Might be null to represent the bootstrap class loader.
      module - The type's module or null if Java modules are not supported on the current VM.
      Returns:
      The class file locator to use.