public static enum AgentBuilder.Default.NativeMethodStrategy.Disabled extends 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 |
---|---|
String |
getPrefix()
Returns the method prefix if the strategy is enabled.
|
boolean |
isEnabled(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(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic MethodNameTransformer resolve()
resolve
in interface AgentBuilder.Default.NativeMethodStrategy
public boolean isEnabled(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 String getPrefix()
getPrefix
in interface AgentBuilder.Default.NativeMethodStrategy
Copyright © 2014–2019. All rights reserved.