public static enum AgentBuilder.Default.NativeMethodStrategy.Disabled extends java.lang.Enum<AgentBuilder.Default.NativeMethodStrategy.Disabled> implements AgentBuilder.Default.NativeMethodStrategy
AgentBuilder.Default.NativeMethodStrategy.Disabled, AgentBuilder.Default.NativeMethodStrategy.ForPrefix
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrefix()
Returns the method prefix if the strategy is enabled.
|
boolean |
isEnabled(java.lang.instrument.Instrumentation instrumentation)
Determines if this strategy enables name prefixing for native methods.
|
MethodNameTransformer |
resolve()
Resolves the method name transformer for this strategy.
|
static AgentBuilder.Default.NativeMethodStrategy.Disabled |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.Default.NativeMethodStrategy.Disabled[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.Default.NativeMethodStrategy.Disabled INSTANCE
public static AgentBuilder.Default.NativeMethodStrategy.Disabled[] values()
for (AgentBuilder.Default.NativeMethodStrategy.Disabled c : AgentBuilder.Default.NativeMethodStrategy.Disabled.values()) System.out.println(c);
public static AgentBuilder.Default.NativeMethodStrategy.Disabled valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic MethodNameTransformer resolve()
resolve
in interface AgentBuilder.Default.NativeMethodStrategy
public boolean isEnabled(java.lang.instrument.Instrumentation instrumentation)
isEnabled
in interface AgentBuilder.Default.NativeMethodStrategy
instrumentation
- The instrumentation used.true
if this strategy indicates that a native method prefix should be used.public java.lang.String getPrefix()
getPrefix
in interface AgentBuilder.Default.NativeMethodStrategy