| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.core.units.code.asm.decompiler.AbstractVisitResults<T> |
Known Direct Subclasses
|
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.asm.decompiler.IVisitResults
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public T | currentNode | for DFS pre-order only | |||||||||
| public Deque<T> | parents | optional queue used to record parents; non-null only if FLAG_RECORD_PARENTS was used
when creating the object
|
|||||||||
| public boolean | skipAssignmentDestination | ||||||||||
| public boolean | skipVisitingChildren | for DFS pre-order only | |||||||||
| public int | visitedChildPosition | For clients, this is a read-only, indicator field regarding the position of the visited child within its parent node. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AbstractVisitResults() | |||||||||||
| AbstractVisitResults(int flags) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | getFlags() | ||||||||||
| void |
interrupt(boolean success)
Notify the visitor that the visit of the tree should be stopped.
| ||||||||||
| boolean | isInterruptedVisit() | ||||||||||
| boolean | isVisitedSuccessfully() | ||||||||||
| Iterator<T> |
parentsIterator()
optional iterator containing the parents; non-null only if
FLAG_RECORD_PARENTS was
used when creating the object. | ||||||||||
| void | popParent() | ||||||||||
| void | pushParent(T parent) | ||||||||||
| void |
setReplacedNode(T newNode)
Notify the visitor that the current node was replaced by the
process method. | ||||||||||
| void |
setVisitResult(boolean success)
Saves the visit result (do not stop the visitor: use
interrupt(boolean) to stop the
process) | ||||||||||
| void |
skipChildren()
Used in DFS pre-order to notify the visitor that the children of the currently visited node
should be skipped; the visitor will then proceed with the next cousin.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.asm.decompiler.IVisitResults
| |||||||||||
for DFS pre-order only
optional queue used to record parents; non-null only if FLAG_RECORD_PARENTS was used
when creating the object
for DFS pre-order only
For clients, this is a read-only, indicator field regarding the position of the visited child within its parent node.
Notify the visitor that the visit of the tree should be stopped.
| success | the result of the visit |
|---|
optional iterator containing the parents; non-null only if FLAG_RECORD_PARENTS was
used when creating the object.
Notify the visitor that the current node was replaced by the
process method.
Note: usage of this method is not mandatory in a DFS post-order traversal.
| newNode | the non-null new node |
|---|
Saves the visit result (do not stop the visitor: use interrupt(boolean) to stop the
process)
Used in DFS pre-order to notify the visitor that the children of the currently visited node should be skipped; the visitor will then proceed with the next cousin.
Note: this method is useless in DFS post-order since children of a node are always processed before their parent.