Package net.bytebuddy.agent.builder
Class AgentBuilder.Default.Transformation.TransformerIterator
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.Default.Transformation.TransformerIterator
- All Implemented Interfaces:
Iterator<AgentBuilder.Transformer>
- Enclosing class:
AgentBuilder.Default.Transformation
protected static class AgentBuilder.Default.Transformation.TransformerIterator
extends Object
implements Iterator<AgentBuilder.Transformer>
An iterator over a list of transformations that match a raw matcher specification.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class
<?> The class being redefined ornull
if the type was not previously loaded.private final ClassLoader
The type's class loader.private final JavaModule
The type's module.private final ProtectionDomain
The type's protection domain ornull
if not available.private final Iterator
<AgentBuilder.Default.Transformation> An iterator over the remaining transformations that were not yet considered.private Iterator
<AgentBuilder.Transformer> An iterator over the currently matched transformers.private final TypeDescription
A description of the matched type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TransformerIterator
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, List<AgentBuilder.Default.Transformation> transformations) Creates a new iterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
typeDescription
A description of the matched type. -
classLoader
The type's class loader. -
module
The type's module. -
classBeingRedefined
The class being redefined ornull
if the type was not previously loaded. -
protectionDomain
The type's protection domain ornull
if not available. -
transformations
An iterator over the remaining transformations that were not yet considered. -
transformers
An iterator over the currently matched transformers.
-
-
Constructor Details
-
TransformerIterator
protected TransformerIterator(TypeDescription typeDescription, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull Class<?> classBeingRedefined, @MaybeNull ProtectionDomain protectionDomain, List<AgentBuilder.Default.Transformation> transformations) Creates a new iterator.- Parameters:
typeDescription
- A description of the matched type.classLoader
- The type's class loader.module
- The type's module.classBeingRedefined
- The class being redefined ornull
if the type was not previously loaded.protectionDomain
- The type's protection domain ornull
if not available.transformations
- The matched transformations.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<AgentBuilder.Transformer>
-
next
- Specified by:
next
in interfaceIterator<AgentBuilder.Transformer>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<AgentBuilder.Transformer>
-