Package net.bytebuddy.description.type
Class TypeDefinition.SuperClassIterator
- java.lang.Object
-
- net.bytebuddy.description.type.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.
-
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()
-
-
-
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 interfacejava.util.Iterator<TypeDefinition>
-
next
public TypeDefinition next()
- Specified by:
next
in interfacejava.util.Iterator<TypeDefinition>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<TypeDefinition>
-
-