Package org.jetbrains.mps.util
Class ImmediateParentConceptIterator
- java.lang.Object
-
- org.jetbrains.mps.util.ImmediateParentConceptIterator
-
public final class ImmediateParentConceptIterator extends Object implements Iterable<SConcept>, Iterator<SConcept>
Concept hierarchy iterator that walks direct super concepts only, up to specified concept (exclusive) or a top-most concept (BaseConcept
, inclusive). Iteration begins with a concept supplied as a start one. Iterator doesn't support removals.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description ImmediateParentConceptIterator(SConcept start)
ImmediateParentConceptIterator(SConcept start, SConcept stop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Iterator<SConcept>
iterator()
SConcept
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.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-