Top Description Inners Methods
org.easymock.bytebuddy.agent.builder

public Interface ResettableClassFileTransformer

extends ClassFileTransformer
Known Direct Subinterfaces
org.easymock.bytebuddy.agent.builder.ResettableClassFileTransformer.Substitutable
Known Direct Implementers
org.easymock.bytebuddy.agent.builder.ResettableClassFileTransformer.AbstractBase
Imports
edu.umd.cs.findbugs.annotations.SuppressFBWarnings, org.easymock.bytebuddy.ByteBuddy, org.easymock.bytebuddy.build.AccessControllerPlugin, .HashCodeAndEqualsPlugin, org.easymock.bytebuddy.description.type.TypeDescription, org.easymock.bytebuddy.dynamic.loading.ClassLoadingStrategy, org.easymock.bytebuddy.dynamic.scaffold.TypeValidation, org.easymock.bytebuddy.implementation.MethodCall, org.easymock.bytebuddy.utility.JavaModule, .JavaType, org.easymock.bytebuddy.utility.nullability.MaybeNull, java.lang.instrument.ClassFileTransformer, .IllegalClassFormatException, .Instrumentation, java.lang.reflect.Constructor, .InvocationTargetException, java.security.PrivilegedAction, .ProtectionDomain, java.util.Iterator

A class file transformer that can reset its transformation.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
public static interface
ResettableClassFileTransformer.Substitutable

A ResettableClassFileTransformer which allows for substitution the actual class file transformer without changes in the order of the transformer chain.

public abstract static class
ResettableClassFileTransformer.WithDelegation

Implements a resettable class file transformer that allows for the delegation of a transformation.

Method Summary

Modifier and TypeMethod and Description
public Iterator<AgentBuilder.Transformer>

Returns:

An iterator over the transformers that are applied by this class file transformer if the given type is discovered.
iterator
(TypeDescription
A description of a type.
typeDescription
,
ClassLoader
The type's class loader or null if the boot loader.
classLoader
,
JavaModule
The type's module or null if the module system is not supported by the current VM.
module
,
Class<?>
The class being redefined or null if the type is not yet loaded.
classBeingRedefined
,
ProtectionDomain
The type's protection domain.
protectionDomain
)

Creates an iterator over the transformers that are applied for a given type.

public boolean

Returns:

true if a reset was applied and this transformer was not previously removed.
reset
(Instrumentation
The instrumentation instance from which to deregister the transformer.
instrumentation
,
AgentBuilder.RedefinitionStrategy
The redefinition to apply.
redefinitionStrategy
)

Deregisters this class file transformer and redefines any transformed class to its state without this class file transformer applied, if the supplied redefinition strategy is enabled.

public boolean

Returns:

true if a reset was applied and this transformer was not previously removed.
reset
(Instrumentation
The instrumentation instance from which to deregister the transformer.
instrumentation
,
AgentBuilder.RedefinitionStrategy
The redefinition to apply.
redefinitionStrategy
,
AgentBuilder.RedefinitionStrategy.BatchAllocator
The batch allocator to use.
redefinitionBatchAllocator
)

Deregisters this class file transformer and redefines any transformed class to its state without this class file transformer applied, if the supplied redefinition strategy is enabled.

public boolean

Returns:

true if a reset was applied and this transformer was not previously removed.
reset
(Instrumentation
The instrumentation instance from which to deregister the transformer.
instrumentation
,
AgentBuilder.RedefinitionStrategy
The redefinition to apply.
redefinitionStrategy
,
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
The discovery strategy for the types to reset.
redefinitionDiscoveryStrategy
)

Deregisters this class file transformer and redefines any transformed class to its state without this class file transformer applied, if the supplied redefinition strategy is enabled.

public boolean

Returns:

true if a reset was applied and this transformer was not previously removed.
reset
(Instrumentation
The instrumentation instance from which to deregister the transformer.
instrumentation
,
AgentBuilder.RedefinitionStrategy
The redefinition to apply.
redefinitionStrategy
,
AgentBuilder.RedefinitionStrategy.BatchAllocator
The batch allocator to use.
redefinitionBatchAllocator
,
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
The discovery strategy for the types to reset.
redefinitionDiscoveryStrategy
)

Deregisters this class file transformer and redefines any transformed class to its state without this class file transformer applied, if the supplied redefinition strategy is enabled.

public boolean

Returns:

true if a reset was applied and this transformer was not previously removed.
reset
(Instrumentation
The instrumentation instance from which to deregister the transformer.
instrumentation
,
AgentBuilder.RedefinitionStrategy
The redefinition to apply.
redefinitionStrategy
,
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
The discovery strategy for the types to reset.
redefinitionDiscoveryStrategy
,
AgentBuilder.RedefinitionStrategy.Listener
The redefinition listener to apply.
redefinitionListener
)

Deregisters this class file transformer and redefines any transformed class to its state without this class file transformer applied, if the supplied redefinition strategy is enabled.

public boolean

Returns:

true if a reset was applied and this transformer was not previously removed.
reset
(Instrumentation
The instrumentation instance from which to deregister the transformer.
instrumentation
,
AgentBuilder.RedefinitionStrategy
The redefinition to apply.
redefinitionStrategy
,
AgentBuilder.RedefinitionStrategy.BatchAllocator
The batch allocator to use.
redefinitionBatchAllocator
,
AgentBuilder.RedefinitionStrategy.Listener
The redefinition listener to apply.
redefinitionListener
)

Deregisters this class file transformer and redefines any transformed class to its state without this class file transformer applied, if the supplied redefinition strategy is enabled.

public boolean

Returns:

true if a reset was applied and this transformer was not previously removed.
reset
(Instrumentation
The instrumentation instance from which to deregister the transformer.
instrumentation
,
AgentBuilder.RedefinitionStrategy
The redefinition to apply.
redefinitionStrategy
,
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
The discovery strategy for the types to reset.
redefinitionDiscoveryStrategy
,
AgentBuilder.RedefinitionStrategy.BatchAllocator
The batch allocator to use.
redefinitionBatchAllocator
,
AgentBuilder.RedefinitionStrategy.Listener
The redefinition listener to apply.
redefinitionListener
)

Deregisters this class file transformer and redefines any transformed class to its state without this class file transformer applied, if the supplied redefinition strategy is enabled.

public boolean

Returns:

true if a reset was applied and this transformer was not previously removed.
reset
(Instrumentation
The instrumentation instance from which to deregister the transformer.
instrumentation
,
ResettableClassFileTransformer
The actual class file transformer to deregister which might be this instance or any wrapper.
classFileTransformer
,
AgentBuilder.RedefinitionStrategy
The redefinition to apply.
redefinitionStrategy
,
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
The discovery strategy for the types to reset.
redefinitionDiscoveryStrategy
,
AgentBuilder.RedefinitionStrategy.BatchAllocator
The batch allocator to use.
redefinitionBatchAllocator
,
AgentBuilder.RedefinitionStrategy.Listener
The redefinition listener to apply.
redefinitionListener
)

Deregisters this class file transformer and redefines any transformed class to its state without this class file transformer applied, if the supplied redefinition strategy is enabled.

Inherited from java.lang.instrument.ClassFileTransformer:
transformtransform