Class 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.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ReiteratingIterator​(java.lang.instrument.Instrumentation instrumentation)
      Creates a new reiterating iterator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      java.lang.Iterable<java.lang.Class<?>> 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

      • ReiteratingIterator

        protected ReiteratingIterator​(java.lang.instrument.Instrumentation instrumentation)
        Creates a new reiterating iterator.
        Parameters:
        instrumentation - The instrumentation instance to use.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>
      • next

        public java.lang.Iterable<java.lang.Class<?>> next()
        Specified by:
        next in interface java.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>