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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TransformerIterator(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, List<AgentBuilder.Default.Transformation> transformations)
Creates a new iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
AgentBuilder.Transformer
next()
void
remove()
-
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
-
-
-
-
Constructor Detail
-
TransformerIterator
protected TransformerIterator(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, 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.transformations
- The matched transformations.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<AgentBuilder.Transformer>
-
next
public AgentBuilder.Transformer next()
- Specified by:
next
in interfaceIterator<AgentBuilder.Transformer>
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator<AgentBuilder.Transformer>
-
-