public class SpaceEffGraphEdge extends Object implements GraphEdge
Modifier and Type | Field and Description |
---|---|
protected SpaceEffGraphNode |
_fromNode
Start node.
|
protected SpaceEffGraphNode |
_toNode
End node.
|
(package private) static int |
BACK_EDGE |
(package private) static int |
DOMINATOR |
protected int |
flags
The following word is defined for several uses.
|
(package private) static int |
INFO_MASK |
protected SpaceEffGraphEdge |
nextIn
Links inlined from LinkedListElement2.
|
protected SpaceEffGraphEdge |
nextOut
Links inlined from LinkedListElement2.
|
(package private) static int |
VISITED |
Modifier | Constructor and Description |
---|---|
(package private) |
SpaceEffGraphEdge()
Constructs an empty edge.
|
protected |
SpaceEffGraphEdge(SpaceEffGraphNode fromNode,
SpaceEffGraphNode toNode)
Constructs an edge starting at a given node and ending at a given node.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
appendIn(SpaceEffGraphEdge e)
Append a given edge after this edge as an in edge.
|
(package private) void |
appendOut(SpaceEffGraphEdge e)
Append a given edge after this edge as an out edge.
|
boolean |
backEdge() |
void |
clearBackEdge() |
void |
clearDominatorEdge() |
void |
clearVisited() |
(package private) void |
delete()
Delete this edge from the graph.
|
boolean |
dominatorEdge() |
GraphNode |
from()
Get the start node for the edge.
|
SpaceEffGraphNode |
fromNode()
Get the start node for the edge.
|
String |
fromNodeString()
Returns the string representation of the start node (used for printing).
|
int |
getInfo() |
SpaceEffGraphEdge |
getNextIn()
Get the next in edge.
|
SpaceEffGraphEdge |
getNextOut()
Get the next out edge.
|
String |
getTypeString()
Returns the string representation of the edge type.
|
void |
setBackEdge() |
void |
setDominatorEdge() |
(package private) void |
setFromNode(SpaceEffGraphNode fromNode)
Set start node.
|
void |
setInfo(int value) |
(package private) void |
setToNode(SpaceEffGraphNode toNode)
Set end node.
|
void |
setVisited() |
GraphNode |
to()
Get the end node for the edge.
|
SpaceEffGraphNode |
toNode()
Get the end node for the edge.
|
String |
toNodeString()
Returns the string representation of the end node (used for printing).
|
boolean |
visited() |
protected SpaceEffGraphNode _toNode
protected SpaceEffGraphNode _fromNode
protected int flags
static final int VISITED
static final int BACK_EDGE
static final int DOMINATOR
static final int INFO_MASK
protected SpaceEffGraphEdge nextIn
protected SpaceEffGraphEdge nextOut
SpaceEffGraphEdge()
protected SpaceEffGraphEdge(SpaceEffGraphNode fromNode, SpaceEffGraphNode toNode)
fromNode
- start nodetoNode
- end nodepublic final boolean visited()
public final boolean backEdge()
public final boolean dominatorEdge()
public final void setVisited()
public final void setBackEdge()
public final void setDominatorEdge()
public final void clearVisited()
public final void clearBackEdge()
public final void clearDominatorEdge()
public final int getInfo()
public final void setInfo(int value)
public final SpaceEffGraphNode toNode()
public final SpaceEffGraphNode fromNode()
final void setToNode(SpaceEffGraphNode toNode)
toNode
- new end nodefinal void setFromNode(SpaceEffGraphNode fromNode)
fromNode
- new start nodefinal void delete()
public String getTypeString()
public String toNodeString()
public String fromNodeString()
public final SpaceEffGraphEdge getNextIn()
public final SpaceEffGraphEdge getNextOut()
final void appendIn(SpaceEffGraphEdge e)
e
- the edge to appendfinal void appendOut(SpaceEffGraphEdge e)
e
- the edge to append