Package net.bytebuddy.agent.builder
Enum AgentBuilder.Default.NativeMethodStrategy.Disabled
java.lang.Object
java.lang.Enum<AgentBuilder.Default.NativeMethodStrategy.Disabled>
net.bytebuddy.agent.builder.AgentBuilder.Default.NativeMethodStrategy.Disabled
- All Implemented Interfaces:
Serializable
,Comparable<AgentBuilder.Default.NativeMethodStrategy.Disabled>
,java.lang.constant.Constable
,AgentBuilder.Default.NativeMethodStrategy
- Enclosing interface:
AgentBuilder.Default.NativeMethodStrategy
public static enum AgentBuilder.Default.NativeMethodStrategy.Disabled
extends Enum<AgentBuilder.Default.NativeMethodStrategy.Disabled>
implements AgentBuilder.Default.NativeMethodStrategy
A native method strategy that suffixes method names with a random suffix and disables native method rebasement.
-
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.Default.NativeMethodStrategy
AgentBuilder.Default.NativeMethodStrategy.Disabled, AgentBuilder.Default.NativeMethodStrategy.ForPrefix
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Instrumentation instrumentation, ClassFileTransformer classFileTransformer) Applies this native method strategy.resolve()
Resolves the method name transformer for this strategy.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Disabled
private Disabled()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
resolve
Resolves the method name transformer for this strategy.- Specified by:
resolve
in interfaceAgentBuilder.Default.NativeMethodStrategy
- Returns:
- A method name transformer for this strategy.
-
apply
Applies this native method strategy.- Specified by:
apply
in interfaceAgentBuilder.Default.NativeMethodStrategy
- Parameters:
instrumentation
- The instrumentation to apply this strategy upon.classFileTransformer
- The class file transformer being registered.
-