public class

EVisitResults

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.EVisitResults

Summary

Constants
int FLAG_RECORD_PARENTS
int FLAG_SKIP_ASSIGN_DST
Fields
public IEGeneric currentNode for DFS pre-order only
public boolean interruptVisit request an interruption (sticky)
public Deque<IEGeneric> 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 boolean visitedSuccessfully visit result
Public Constructors
EVisitResults()
EVisitResults(int flags)
Public Methods
int getFlags()
void interrupt(boolean success)
Notify the visitor that the visit of the tree should be stopped.
void popParent()
void pushParent(IEGeneric parent)
void setReplacedNode(IEGeneric newNode)
Notify the visitor that the current node was replaced by the process method.
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

Constants

public static final int FLAG_RECORD_PARENTS

Constant Value: 1 (0x00000001)

public static final int FLAG_SKIP_ASSIGN_DST

Constant Value: 2 (0x00000002)

Fields

public IEGeneric currentNode

for DFS pre-order only

public boolean interruptVisit

request an interruption (sticky)

public Deque<IEGeneric> 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 boolean visitedSuccessfully

visit result

Public Constructors

public EVisitResults ()

public EVisitResults (int flags)

Public Methods

public int getFlags ()

public void interrupt (boolean success)

Notify the visitor that the visit of the tree should be stopped.

Parameters
success the result of the visit

public void popParent ()

public void pushParent (IEGeneric parent)

public void setReplacedNode (IEGeneric newNode)

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.

Parameters
newNode the non-null new node

public 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.

Note: this method is useless in DFS post-order since children of a node are always processed before their parent.