public enum NoOpClassFileTransformer extends Enum<NoOpClassFileTransformer> implements ClassFileTransformer
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
static NoOpClassFileTransformer |
valueOf(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
public static NoOpClassFileTransformer[] values()
for (NoOpClassFileTransformer c : NoOpClassFileTransformer.values()) System.out.println(c);
public static NoOpClassFileTransformer 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 byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer)
transform
in interface ClassFileTransformer
Copyright © 2014–2020. All rights reserved.