Package net.bytebuddy.agent.builder
Enum Class 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>
,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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.LocationStrategy
AgentBuilder.LocationStrategy.Compound, AgentBuilder.LocationStrategy.ForClassLoader, AgentBuilder.LocationStrategy.NoOp, AgentBuilder.LocationStrategy.Simple
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclassFileLocator
(ClassLoader classLoader, JavaModule module) Creates a class file locator for a given class loader and module combination.Returns the enum constant of this class with the specified name.static AgentBuilder.LocationStrategy.NoOp[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
NoOp
private NoOp()
-
-
Method Details
-
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
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 nameNullPointerException
- 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 interfaceAgentBuilder.LocationStrategy
- Parameters:
classLoader
- The class loader that is loading an instrumented type. Might benull
to represent the bootstrap class loader.module
- The type's module ornull
if Java modules are not supported on the current VM.- Returns:
- The class file locator to use.
-