Package javassist.bytecode.analysis
Class ControlFlow.Node
- java.lang.Object
-
- javassist.bytecode.analysis.ControlFlow.Node
-
- Enclosing class:
- ControlFlow
public static class ControlFlow.Node extends java.lang.Object
A node of (post) dominator trees.
-
-
Field Summary
Fields Modifier and Type Field Description private ControlFlow.Block
block
private ControlFlow.Node[]
children
private ControlFlow.Node
parent
-
Constructor Summary
Constructors Constructor Description Node(ControlFlow.Block b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 aString
representation.
-
-
-
Field Detail
-
block
private ControlFlow.Block block
-
parent
private ControlFlow.Node parent
-
children
private ControlFlow.Node[] children
-
-
Constructor Detail
-
Node
Node(ControlFlow.Block b)
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns aString
representation.- Overrides:
toString
in classjava.lang.Object
-
block
public ControlFlow.Block block()
Returns the basic block indicated by this node.
-
parent
public ControlFlow.Node parent()
Returns the parent of this node.
-
children
public int children()
Returns the number of the children of this node.
-
child
public ControlFlow.Node child(int n)
Returns the n-th child of this node.- Parameters:
n
- an index in the array of children.
-
makeDepth1stTree
int makeDepth1stTree(ControlFlow.Node caller, boolean[] visited, int counter, int[] distance, ControlFlow.Access access)
-
makeDominatorTree
boolean makeDominatorTree(boolean[] visited, int[] distance, ControlFlow.Access access)
-
getAncestor
private static ControlFlow.Node getAncestor(ControlFlow.Node n1, ControlFlow.Node n2, int[] distance)
-
setChildren
private static void setChildren(ControlFlow.Node[] all)
-
-