com.pnfsoftware.jeb.core.units.code.asm.decompiler.IVisitResults<T> |
![]() |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FLAG_RECORD_PARENTS | ||||||||||
int | FLAG_SKIP_ASSIGN_DST |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
interrupt(boolean success)
Notify the visitor that the visit of the tree should be stopped.
| ||||||||||
abstract Iterator<T> |
parentsIterator()
optional iterator containing the parents; non-null only if
FLAG_RECORD_PARENTS was
used when creating the object. | ||||||||||
abstract void |
setReplacedNode(T newNode)
Notify the visitor that the current node was replaced by the
process method. | ||||||||||
abstract void |
setVisitResult(boolean success)
Saves the visit result (do not stop the visitor: use
interrupt(boolean) to stop the
process) | ||||||||||
abstract 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.
|
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.