|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.util.SpaceEffGraphEdge
public class SpaceEffGraphEdge
SpaceEffGraphEdge is a generic graph edge. Extend this to implement specific graph edge types, or use it as a generic edge. SpaceEffGraphEdges are directed, and therefore, have a from-node and a to-node.
Field Summary | |
---|---|
protected SpaceEffGraphNode |
_fromNode
Start node. |
protected SpaceEffGraphNode |
_toNode
End node. |
(package private) static int |
BACK_EDGE
|
(package private) static int |
DOMINATOR
|
(package private) static int |
INFO_MASK
|
protected SpaceEffGraphEdge |
nextIn
Links inlined from LinkedListElement2. |
protected SpaceEffGraphEdge |
nextOut
Links inlined from LinkedListElement2. |
protected int |
scratch
The following word is defined for several uses. |
(package private) static int |
VISITED
|
Constructor Summary | |
---|---|
(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. |
Method Summary | |
---|---|
(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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SpaceEffGraphNode _toNode
protected SpaceEffGraphNode _fromNode
protected int scratch
static final int VISITED
static final int BACK_EDGE
static final int DOMINATOR
static final int INFO_MASK
protected SpaceEffGraphEdge nextIn
protected SpaceEffGraphEdge nextOut
Constructor Detail |
---|
SpaceEffGraphEdge()
protected SpaceEffGraphEdge(SpaceEffGraphNode fromNode, SpaceEffGraphNode toNode)
fromNode
- start nodetoNode
- end nodeMethod Detail |
---|
public 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 GraphNode to()
to
in interface GraphEdge
public final GraphNode from()
from
in interface GraphEdge
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |