Package net.bytebuddy.description.type
Class TypeDefinition.SuperClassIterator
- java.lang.Object
-
- net.bytebuddy.description.type.TypeDefinition.SuperClassIterator
-
- All Implemented Interfaces:
Iterator<TypeDefinition>
- Enclosing interface:
- TypeDefinition
public static class TypeDefinition.SuperClassIterator extends Object implements Iterator<TypeDefinition>
An iterator that iterates over a type's class hierarchy.
-
-
Constructor Summary
Constructors Constructor Description SuperClassIterator(TypeDefinition initialType)
Creates a new iterator.
-
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
-
-
-
-
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 interfaceIterator<TypeDefinition>
-
next
public TypeDefinition next()
- Specified by:
next
in interfaceIterator<TypeDefinition>
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator<TypeDefinition>
-
-