@HashCodeAndEqualsPlugin.Enhance public static class ClassFilePostProcessor.ForClassFileTransformer extends Object implements ClassFilePostProcessor
ClassFileTransformer.| Modifier and Type | Class and Description |
|---|---|
protected static class |
ClassFilePostProcessor.ForClassFileTransformer.AllPermissionsCollection
A permission collection that implies all permissions.
|
ClassFilePostProcessor.ForClassFileTransformer, ClassFilePostProcessor.NoOp| Modifier and Type | Field and Description |
|---|---|
protected static ProtectionDomain |
ALL_PRIVILEGES
A protection domain that represents all permissions.
|
| Constructor and Description |
|---|
ForClassFileTransformer(ClassFileTransformer classFileTransformer)
Creates a new class file post processor for a class file transformer.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
transform(ClassLoader classLoader,
String name,
ProtectionDomain protectionDomain,
byte[] binaryRepresentation)
Transforms a class file for a given class.
|
protected static final ProtectionDomain ALL_PRIVILEGES
public ForClassFileTransformer(ClassFileTransformer classFileTransformer)
classFileTransformer - The class file transformer to delegate to.public byte[] transform(@MaybeNull ClassLoader classLoader, String name, @MaybeNull ProtectionDomain protectionDomain, byte[] binaryRepresentation)
transform in interface ClassFilePostProcessorclassLoader - The class loader which is used to load a class or null if loaded by the bootstrap loader.name - The binary name of the transformed class.protectionDomain - The protection domain of the transformed class or null if no protection domain is provided.binaryRepresentation - The binary representation of the class file.Copyright © 2014–2023. All rights reserved.