Class TypeDefinition.SuperClassIterator

  • All Implemented Interfaces:
    java.util.Iterator<TypeDefinition>
    Enclosing interface:
    TypeDefinition

    public static class TypeDefinition.SuperClassIterator
    extends java.lang.Object
    implements java.util.Iterator<TypeDefinition>
    An iterator that iterates over a type's class hierarchy.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private TypeDefinition nextClass
      The next class to represent.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      TypeDefinition 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
    • Field Detail

      • nextClass

        private TypeDefinition nextClass
        The next class to represent.
    • Constructor Detail

      • SuperClassIterator

        public SuperClassIterator​(TypeDefinition initialType)
        Creates a new iterator.
        Parameters:
        initialType - The initial type of this iterator.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<TypeDefinition>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<TypeDefinition>