Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.ReiteratingIterator
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.ReiteratingIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>
- Enclosing class:
- AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating
protected static class AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.ReiteratingIterator extends java.lang.Object implements java.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>A reiterating iterator that considers types that were loaded during an instrumentation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.instrument.InstrumentationinstrumentationThe instrumentation instance to use.private java.util.Set<java.lang.Class<?>>processedA set containing all previously discovered types.private java.util.List<java.lang.Class<?>>typesThe current list of types ornullif the current list of types is not prepared.
-
Constructor Summary
Constructors Modifier Constructor Description protectedReiteratingIterator(java.lang.instrument.Instrumentation instrumentation)Creates a new reiterating iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()java.lang.Iterable<java.lang.Class<?>>next()voidremove()
-
-
-
Field Detail
-
instrumentation
private final java.lang.instrument.Instrumentation instrumentation
The instrumentation instance to use.
-
processed
private final java.util.Set<java.lang.Class<?>> processed
A set containing all previously discovered types.
-
types
@MaybeNull private java.util.List<java.lang.Class<?>> types
The current list of types ornullif the current list of types is not prepared.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>
-
next
public java.lang.Iterable<java.lang.Class<?>> next()
- Specified by:
nextin interfacejava.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>
-
-