Package net.bytebuddy.agent.builder
Enum AgentBuilder.Default.Dispatcher.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<AgentBuilder.Default.Dispatcher.ForLegacyVm>
-
- net.bytebuddy.agent.builder.AgentBuilder.Default.Dispatcher.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AgentBuilder.Default.Dispatcher.ForLegacyVm>,AgentBuilder.Default.Dispatcher
- Enclosing interface:
- AgentBuilder.Default.Dispatcher
public static enum AgentBuilder.Default.Dispatcher.ForLegacyVm extends java.lang.Enum<AgentBuilder.Default.Dispatcher.ForLegacyVm> implements AgentBuilder.Default.Dispatcher
A dispatcher for a legacy VM.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Default.Dispatcher
AgentBuilder.Default.Dispatcher.CreationAction, AgentBuilder.Default.Dispatcher.ForJava6CapableVm, AgentBuilder.Default.Dispatcher.ForLegacyVm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCEThe singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description privateForLegacyVm()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTransformer(java.lang.instrument.Instrumentation instrumentation, java.lang.instrument.ClassFileTransformer classFileTransformer, boolean canRetransform)Adds a class file transformer to an instrumentation instance.booleanisNativeMethodPrefixSupported(java.lang.instrument.Instrumentation instrumentation)Returnstrueif the supplied instrumentation instance supports setting native method prefixes.voidsetNativeMethodPrefix(java.lang.instrument.Instrumentation instrumentation, java.lang.instrument.ClassFileTransformer classFileTransformer, java.lang.String prefix)Sets a native method prefix for the supplied class file transformer.static AgentBuilder.Default.Dispatcher.ForLegacyVmvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AgentBuilder.Default.Dispatcher.ForLegacyVm[]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.Default.Dispatcher.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static AgentBuilder.Default.Dispatcher.ForLegacyVm[] 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.Default.Dispatcher.ForLegacyVm c : AgentBuilder.Default.Dispatcher.ForLegacyVm.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.Default.Dispatcher.ForLegacyVm 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
-
isNativeMethodPrefixSupported
public boolean isNativeMethodPrefixSupported(java.lang.instrument.Instrumentation instrumentation)
Returnstrueif the supplied instrumentation instance supports setting native method prefixes.- Specified by:
isNativeMethodPrefixSupportedin interfaceAgentBuilder.Default.Dispatcher- Parameters:
instrumentation- The instrumentation instance to use.- Returns:
trueif the supplied instrumentation instance supports native method prefixes.
-
setNativeMethodPrefix
public void setNativeMethodPrefix(java.lang.instrument.Instrumentation instrumentation, java.lang.instrument.ClassFileTransformer classFileTransformer, java.lang.String prefix)Sets a native method prefix for the supplied class file transformer.- Specified by:
setNativeMethodPrefixin interfaceAgentBuilder.Default.Dispatcher- Parameters:
instrumentation- The instrumentation instance to use.classFileTransformer- The class file transformer for which the prefix is set.prefix- The prefix to set.
-
addTransformer
public void addTransformer(java.lang.instrument.Instrumentation instrumentation, java.lang.instrument.ClassFileTransformer classFileTransformer, boolean canRetransform)Adds a class file transformer to an instrumentation instance.- Specified by:
addTransformerin interfaceAgentBuilder.Default.Dispatcher- Parameters:
instrumentation- The instrumentation instance to use for registration.classFileTransformer- The class file transformer to register.canRetransform-trueif the class file transformer is capable of retransformation.
-
-