junit.quilt.cover.generic
Class FlowControlEdge

java.lang.Object
  |
  +--junit.quilt.cover.generic.FlowControlEdge
All Implemented Interfaces:
org.apache.commons.graph.Edge
Direct Known Subclasses:
BranchEdge, DummyEdge, ExceptionEdge, JSREdge, NormalEdge, ReturnEdge, SelectEdge

public abstract class FlowControlEdge
extends java.lang.Object
implements org.apache.commons.graph.Edge


Constructor Summary
FlowControlEdge()
           
FlowControlEdge(BlockVertex source, BlockVertex target)
           
FlowControlEdge(int weight, BlockVertex source, BlockVertex target)
           
 
Method Summary
abstract  void connect(org.apache.bcel.generic.MethodGen method, org.apache.bcel.generic.InstructionList il, org.apache.bcel.generic.InstructionHandle source, org.apache.bcel.generic.InstructionHandle target)
           
abstract  FlowControlEdge copy(BlockVertex source, BlockVertex target)
          This should work like clone, but it returns a FlowControlEdge.
 BlockVertex getSource()
           
 BlockVertex getTarget()
           
 void setSource(BlockVertex source)
           
 void setTarget(BlockVertex target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowControlEdge

public FlowControlEdge()

FlowControlEdge

public FlowControlEdge(BlockVertex source,
                       BlockVertex target)

FlowControlEdge

public FlowControlEdge(int weight,
                       BlockVertex source,
                       BlockVertex target)
Method Detail

setSource

public void setSource(BlockVertex source)

setTarget

public void setTarget(BlockVertex target)

getSource

public BlockVertex getSource()

getTarget

public BlockVertex getTarget()

connect

public abstract void connect(org.apache.bcel.generic.MethodGen method,
                             org.apache.bcel.generic.InstructionList il,
                             org.apache.bcel.generic.InstructionHandle source,
                             org.apache.bcel.generic.InstructionHandle target)
                      throws InvalidTransitionException

copy

public abstract FlowControlEdge copy(BlockVertex source,
                                     BlockVertex target)
This should work like clone, but it returns a FlowControlEdge. All edges must implement this, otherwise the JSRInliner will not work. As the Vertices are "copy"ed as well, we need to provide them too.


Copyright © 2001-2002 David Dixon-Peugh. All Rights Reserved.