public abstract static class HierarchyEnumerator.Visitor
extends java.lang.Object
The HierarchyEnumerator performs a recursive descent of the design hierarchy starting with the root Cell. When the HierarchyEnumerator enters a Cell instance it calls the Visitor's enterCell() method to let the Visitor know that it's just started working on a new Cell instance. Then the HierarchyEnumerator calls the Visitor's visitNodeInst() method for each NodeInst in that Cell. Finally, after all the NodeInsts have been visited, the HierarchyEnumerator calls the Visitor's exitCell() method to inform the Visitor that the HierarchyEnumerator is done with that Cell.
The Visitor's visitNodeInst() method controls whether the HierarchyEnumerator descends recursively into the Cell instantiated by that NodeInst. If the visitNodeInst() method returns true, then the HierarchyEnumerator enumerates the contents of that NodeInst's child Cell before it continues enumerating the NodeInsts of the current Cell.
Constructor and Description |
---|
HierarchyEnumerator.Visitor() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
enterCell(HierarchyEnumerator.CellInfo info)
The HierarchyEnumerator is about to begin enumerating the
contents of a new Cell instance.
|
abstract void |
exitCell(HierarchyEnumerator.CellInfo info)
The HierarchyEnumerator has finished enumerating the
contents of the current Cell instance.
|
HierarchyEnumerator.CellInfo |
newCellInfo()
A hook to allow the user to add additional information to
a CellInfo.
|
abstract boolean |
visitNodeInst(Nodable ni,
HierarchyEnumerator.CellInfo info)
The HierarchyEnumerator is visiting Nodable ni.
|
public HierarchyEnumerator.CellInfo newCellInfo()
public abstract boolean enterCell(HierarchyEnumerator.CellInfo info)
info
- information about the Cell instance being
enumeratedpublic abstract void exitCell(HierarchyEnumerator.CellInfo info)
info
- information about the Cell instance being
enumeratedpublic abstract boolean visitNodeInst(Nodable ni, HierarchyEnumerator.CellInfo info)
ni
- the Nodable that HierarchyEnumerator is visiting.