coins.flow
Class EdgeImpl

java.lang.Object
  extended bycoins.flow.EdgeImpl
All Implemented Interfaces:
Edge

public class EdgeImpl
extends java.lang.Object
implements Edge

EdgeImpl class Class for edge connecting basic blocks.


Field Summary
protected  FlagBox fFlagBox
           
protected  BBlock fFromBBlock
           
 FlowRoot flowRoot
           
protected  BBlock fToBBlock
           
 
Fields inherited from interface coins.flow.Edge
LOOP_BACK_EDGE, LOOP_EXIT_EDGE
 
Constructor Summary
EdgeImpl(FlowRoot pFlowRoot, BBlock pFromBBlock, BBlock pToBBlock)
           
 
Method Summary
 FlagBox flagBox()
          flagBox Record flags for an edge.
 BBlock getFromBBlock()
           
 BBlock getToBBlock()
           
 void setFromBBlock(BBlock pBBlock)
           
 void setToBBlock(BBlock pBBlock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flowRoot

public final FlowRoot flowRoot

fFromBBlock

protected BBlock fFromBBlock

fToBBlock

protected BBlock fToBBlock

fFlagBox

protected FlagBox fFlagBox
Constructor Detail

EdgeImpl

public EdgeImpl(FlowRoot pFlowRoot,
                BBlock pFromBBlock,
                BBlock pToBBlock)
Method Detail

getFromBBlock

public BBlock getFromBBlock()
Specified by:
getFromBBlock in interface Edge

getToBBlock

public BBlock getToBBlock()
Specified by:
getToBBlock in interface Edge

flagBox

public FlagBox flagBox()
Description copied from interface: Edge
flagBox Record flags for an edge. Usage example: if (edgeName.flagBox().getFlag(Edge.LOOP_BACK_EDGE)) ...; edgeName.flagBox().setFlag(Edge.LOOP_BACK_EDGE, true);

Specified by:
flagBox in interface Edge

setFromBBlock

public void setFromBBlock(BBlock pBBlock)
Specified by:
setFromBBlock in interface Edge

setToBBlock

public void setToBBlock(BBlock pBBlock)
Specified by:
setToBBlock in interface Edge