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.
-
Field Details
-
nextClass
The next class to represent.
-
-
Constructor Details
-
SuperClassIterator
Creates a new iterator.- Parameters:
initialType
- The initial type of this iterator.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<TypeDefinition>
-
next
- Specified by:
next
in interfaceIterator<TypeDefinition>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<TypeDefinition>
-