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<?>
classBeingRedefined
The class being redefined ornull
if the type was not previously loaded.private java.lang.ClassLoader
classLoader
The type's class loader.private JavaModule
module
The type's module.private java.security.ProtectionDomain
protectionDomain
The type's protection domain.private java.util.Iterator<AgentBuilder.Default.Transformation>
transformations
An iterator over the remaining transformations that were not yet considered.private java.util.Iterator<AgentBuilder.Transformer>
transformers
An iterator over the currently matched transformers.private TypeDescription
typeDescription
A description of the matched type.
-
Constructor Summary
Constructors Modifier Constructor Description protected
TransformerIterator(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 boolean
hasNext()
AgentBuilder.Transformer
next()
void
remove()
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
A description of the matched type.
-
classLoader
private final java.lang.ClassLoader classLoader
The type's class loader.
-
module
private final JavaModule module
The type's module.
-
classBeingRedefined
private final java.lang.Class<?> classBeingRedefined
The class being redefined ornull
if the type was not previously loaded.
-
protectionDomain
private final java.security.ProtectionDomain protectionDomain
The type's protection domain.
-
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, 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.- 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 interfacejava.util.Iterator<AgentBuilder.Transformer>
-
next
public AgentBuilder.Transformer next()
- Specified by:
next
in interfacejava.util.Iterator<AgentBuilder.Transformer>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<AgentBuilder.Transformer>
-
-