|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object polyglot.visit.FlowGraph.Peer
public static class FlowGraph.Peer
A Peer
is an occurance of an AST node in a flow graph.
For most AST nodes, there will be only one Peer for each AST node.
However, if the AST node occurs in a finally block, then there will be
multiple Peer
s for that AST node, one for each possible
path to the finally block. This is becuase flow graphs for finally blocks
are copied, one copy for each possible path to the finally block.
Field Summary | |
---|---|
protected DataFlow.Item |
inItem
|
protected Term |
node
|
protected java.util.Map |
outItems
|
protected java.util.List |
path_to_finally
|
protected java.util.List |
preds
|
protected java.util.List |
succs
|
Constructor Summary | |
---|---|
FlowGraph.Peer(Term node,
java.util.List path_to_finally)
|
Method Summary | |
---|---|
DataFlow.Item |
inItem()
The input data flow item. |
Term |
node()
The node for which this is a peer. |
DataFlow.Item |
outItem(FlowGraph.EdgeKey key)
The output item for a particular EdgeKey. |
java.util.List |
preds()
The predecessor Edges. |
java.util.Set |
succEdgeKeys()
|
java.util.List |
succs()
The successor Edges. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected DataFlow.Item inItem
protected java.util.Map outItems
protected Term node
protected java.util.List succs
protected java.util.List preds
protected java.util.List path_to_finally
Constructor Detail |
---|
public FlowGraph.Peer(Term node, java.util.List path_to_finally)
Method Detail |
---|
public java.util.List succs()
public java.util.List preds()
public Term node()
public DataFlow.Item inItem()
public DataFlow.Item outItem(FlowGraph.EdgeKey key)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set succEdgeKeys()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |