Package net.bytebuddy.agent.builder
Enum AgentBuilder.LocationStrategy.NoOp
- java.lang.Object
-
- java.lang.Enum<AgentBuilder.LocationStrategy.NoOp>
-
- net.bytebuddy.agent.builder.AgentBuilder.LocationStrategy.NoOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AgentBuilder.LocationStrategy.NoOp>
,AgentBuilder.LocationStrategy
- Enclosing interface:
- AgentBuilder.LocationStrategy
public static enum AgentBuilder.LocationStrategy.NoOp extends java.lang.Enum<AgentBuilder.LocationStrategy.NoOp> implements AgentBuilder.LocationStrategy
A location strategy that never locates any byte code.
-
-
Nested Class Summary
-
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 Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassFileLocator
classFileLocator(java.lang.ClassLoader classLoader, JavaModule module)
Creates a class file locator for a given class loader and module combination.static AgentBuilder.LocationStrategy.NoOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AgentBuilder.LocationStrategy.NoOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final AgentBuilder.LocationStrategy.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static AgentBuilder.LocationStrategy.NoOp[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AgentBuilder.LocationStrategy.NoOp c : AgentBuilder.LocationStrategy.NoOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgentBuilder.LocationStrategy.NoOp valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
classFileLocator
public ClassFileLocator classFileLocator(java.lang.ClassLoader classLoader, 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.
-
-