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 ornullif the type was not previously loaded.private final ClassLoaderThe type's class loader.private final JavaModuleThe type's module.private final ProtectionDomainThe type's protection domain ornullif 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 TypeDescriptionA description of the matched type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransformerIterator(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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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 ornullif the type was not previously loaded. -
protectionDomain
The type's protection domain ornullif 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 ornullif the type was not previously loaded.protectionDomain- The type's protection domain ornullif not available.transformations- The matched transformations.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<AgentBuilder.Transformer>
-
next
- Specified by:
nextin interfaceIterator<AgentBuilder.Transformer>
-
remove
public void remove()- Specified by:
removein interfaceIterator<AgentBuilder.Transformer>
-