Package net.bytebuddy.agent.builder
Class AgentBuilder.Default.Transformation.TransformerIterator
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.Default.Transformation.TransformerIterator
-
- All Implemented Interfaces:
java.util.Iterator<AgentBuilder.Transformer>
- Enclosing class:
- AgentBuilder.Default.Transformation
protected static class AgentBuilder.Default.Transformation.TransformerIterator extends java.lang.Object implements java.util.Iterator<AgentBuilder.Transformer>
An iterator over a list of transformations that match a raw matcher specification.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>classBeingRedefinedThe class being redefined ornullif the type was not previously loaded.private java.lang.ClassLoaderclassLoaderThe type's class loader.private JavaModulemoduleThe type's module.private java.security.ProtectionDomainprotectionDomainThe type's protection domain ornullif not available.private java.util.Iterator<AgentBuilder.Default.Transformation>transformationsAn iterator over the remaining transformations that were not yet considered.private java.util.Iterator<AgentBuilder.Transformer>transformersAn iterator over the currently matched transformers.private TypeDescriptiontypeDescriptionA description of the matched type.
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransformerIterator(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, java.util.List<AgentBuilder.Default.Transformation> transformations)Creates a new iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()AgentBuilder.Transformernext()voidremove()
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
A description of the matched type.
-
classLoader
@MaybeNull private final java.lang.ClassLoader classLoader
The type's class loader.
-
module
@MaybeNull private final JavaModule module
The type's module.
-
classBeingRedefined
@MaybeNull private final java.lang.Class<?> classBeingRedefined
The class being redefined ornullif the type was not previously loaded.
-
protectionDomain
@MaybeNull private final java.security.ProtectionDomain protectionDomain
The type's protection domain ornullif not available.
-
transformations
private final java.util.Iterator<AgentBuilder.Default.Transformation> transformations
An iterator over the remaining transformations that were not yet considered.
-
transformers
private java.util.Iterator<AgentBuilder.Transformer> transformers
An iterator over the currently matched transformers.
-
-
Constructor Detail
-
TransformerIterator
protected TransformerIterator(TypeDescription typeDescription, @MaybeNull java.lang.ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull java.lang.Class<?> classBeingRedefined, @MaybeNull java.security.ProtectionDomain protectionDomain, java.util.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 Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<AgentBuilder.Transformer>
-
next
public AgentBuilder.Transformer next()
- Specified by:
nextin interfacejava.util.Iterator<AgentBuilder.Transformer>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<AgentBuilder.Transformer>
-
-