public enum NoOpClassFileTransformer extends java.lang.Enum<NoOpClassFileTransformer> implements java.lang.instrument.ClassFileTransformer
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Field and Description |
---|---|
private static byte[] |
NO_TRANSFORMATION
Indicates that no transformation is to applied.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
transform(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
static NoOpClassFileTransformer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NoOpClassFileTransformer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoOpClassFileTransformer INSTANCE
private static final byte[] NO_TRANSFORMATION
public static NoOpClassFileTransformer[] values()
for (NoOpClassFileTransformer c : NoOpClassFileTransformer.values()) System.out.println(c);
public static NoOpClassFileTransformer 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 byte[] transform(java.lang.ClassLoader loader, java.lang.String className, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] classfileBuffer)
transform
in interface java.lang.instrument.ClassFileTransformer