public static class ControlFlow.Node
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ControlFlow.Block |
block |
private ControlFlow.Node[] |
children |
private ControlFlow.Node |
parent |
Constructor and Description |
---|
Node(ControlFlow.Block b) |
Modifier and Type | Method and Description |
---|---|
ControlFlow.Block |
block()
Returns the basic block indicated by this node.
|
ControlFlow.Node |
child(int n)
Returns the n-th child of this node.
|
int |
children()
Returns the number of the children of this node.
|
private static ControlFlow.Node |
getAncestor(ControlFlow.Node n1,
ControlFlow.Node n2,
int[] distance) |
(package private) int |
makeDepth1stTree(ControlFlow.Node caller,
boolean[] visited,
int counter,
int[] distance,
ControlFlow.Access access) |
(package private) boolean |
makeDominatorTree(boolean[] visited,
int[] distance,
ControlFlow.Access access) |
ControlFlow.Node |
parent()
Returns the parent of this node.
|
private static void |
setChildren(ControlFlow.Node[] all) |
java.lang.String |
toString()
Returns a
String representation. |
private ControlFlow.Block block
private ControlFlow.Node parent
private ControlFlow.Node[] children
Node(ControlFlow.Block b)
public java.lang.String toString()
String
representation.toString
in class java.lang.Object
public ControlFlow.Block block()
public ControlFlow.Node parent()
public int children()
public ControlFlow.Node child(int n)
n
- an index in the array of children.int makeDepth1stTree(ControlFlow.Node caller, boolean[] visited, int counter, int[] distance, ControlFlow.Access access)
boolean makeDominatorTree(boolean[] visited, int[] distance, ControlFlow.Access access)
private static ControlFlow.Node getAncestor(ControlFlow.Node n1, ControlFlow.Node n2, int[] distance)
private static void setChildren(ControlFlow.Node[] all)