Package net.bytebuddy.dynamic.loading
Enum ClassReloadingStrategy.Strategy.ClassResettingTransformer
- java.lang.Object
-
- java.lang.Enum<ClassReloadingStrategy.Strategy.ClassResettingTransformer>
-
- net.bytebuddy.dynamic.loading.ClassReloadingStrategy.Strategy.ClassResettingTransformer
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClassReloadingStrategy.Strategy.ClassResettingTransformer>
,java.lang.instrument.ClassFileTransformer
- Enclosing class:
- ClassReloadingStrategy.Strategy
protected static enum ClassReloadingStrategy.Strategy.ClassResettingTransformer extends java.lang.Enum<ClassReloadingStrategy.Strategy.ClassResettingTransformer> implements java.lang.instrument.ClassFileTransformer
A transformer that indicates that a class file should not be transformed.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ClassResettingTransformer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
transform(java.lang.ClassLoader classLoader, java.lang.String internalTypeName, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] classfileBuffer)
static ClassReloadingStrategy.Strategy.ClassResettingTransformer
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClassReloadingStrategy.Strategy.ClassResettingTransformer[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ClassReloadingStrategy.Strategy.ClassResettingTransformer INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static ClassReloadingStrategy.Strategy.ClassResettingTransformer[] 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 (ClassReloadingStrategy.Strategy.ClassResettingTransformer c : ClassReloadingStrategy.Strategy.ClassResettingTransformer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClassReloadingStrategy.Strategy.ClassResettingTransformer 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
-
transform
public byte[] transform(java.lang.ClassLoader classLoader, java.lang.String internalTypeName, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] classfileBuffer)
- Specified by:
transform
in interfacejava.lang.instrument.ClassFileTransformer
-
-