/** * {@inheritDoc} */ public TypeDefinition next() { if (!hasNext()) { throw new NoSuchElementException("End of type hierarchy"); } try { return nextClass; } finally { nextClass = nextClass.getSuperClass(); } }
/** * {@inheritDoc} */ public Iterator<TypeDefinition> iterator() { return new SuperClassIterator(this); } }
/** * {@inheritDoc} */ public Iterator<TypeDefinition> iterator() { return new SuperClassIterator(this); }
/** * {@inheritDoc} */ public Iterator<TypeDefinition> iterator() { return new SuperClassIterator(this); }
/** * {@inheritDoc} */ public Iterator<TypeDefinition> iterator() { return new SuperClassIterator(this); }
/** * {@inheritDoc} */ public Iterator<TypeDefinition> iterator() { return new TypeDefinition.SuperClassIterator(this); }
/** * {@inheritDoc} */ public Iterator<TypeDefinition> iterator() { return new SuperClassIterator(this); }