junit.quilt.cover.generic
Class BlockVertex

java.lang.Object
  |
  +--junit.quilt.cover.generic.BlockVertex
All Implemented Interfaces:
org.apache.commons.graph.Vertex
Direct Known Subclasses:
ArrayIncrement, CallVisitVertex, FinallyVertex, InitVertex

public class BlockVertex
extends java.lang.Object
implements org.apache.commons.graph.Vertex


Constructor Summary
BlockVertex()
          BlockVertex Creates an empty basic block.
BlockVertex(org.apache.bcel.generic.InstructionList il)
          BlockVertex Creates a full basic block.
BlockVertex(org.apache.bcel.generic.InstructionList il, org.apache.bcel.classfile.LineNumberTable lnt)
          BlockVertex Creates a full block vertex with a line number table.
BlockVertex(org.apache.bcel.classfile.LineNumberTable lnt)
          BlockVertex Creates an empty block vertex with a line number table.
 
Method Summary
 void addInstruction(org.apache.bcel.generic.InstructionHandle instruction)
          Appends an instruction to this basic block.
 void chomp()
          Removes the last instruction from the BlockVertex.
 BlockVertex copy()
           
 org.apache.bcel.generic.InstructionList copyInstructionList()
           
 org.apache.bcel.generic.InstructionHandle getFirstInst()
          getFirstInst Returns the first instruction.
 org.apache.bcel.generic.InstructionHandle getLastInst()
          getLastInst Returns the last instruction.
 int getLineEnd()
          Returns the last line of this block, if available.
 int getLineStart()
          Returns the first line of this block, if available.
 int getPCEnd()
          Returns the starting PC of the block.
 int getPCStart()
          Returns the starting PC of the block.
 int length()
           
protected  void setInstructionList(org.apache.bcel.generic.InstructionList il)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockVertex

public BlockVertex()
BlockVertex Creates an empty basic block.

BlockVertex

public BlockVertex(org.apache.bcel.generic.InstructionList il)
BlockVertex Creates a full basic block.

BlockVertex

public BlockVertex(org.apache.bcel.classfile.LineNumberTable lnt)
BlockVertex Creates an empty block vertex with a line number table.

BlockVertex

public BlockVertex(org.apache.bcel.generic.InstructionList il,
                   org.apache.bcel.classfile.LineNumberTable lnt)
BlockVertex Creates a full block vertex with a line number table.
Method Detail

addInstruction

public void addInstruction(org.apache.bcel.generic.InstructionHandle instruction)
Appends an instruction to this basic block.

getFirstInst

public org.apache.bcel.generic.InstructionHandle getFirstInst()
getFirstInst Returns the first instruction.

getLastInst

public org.apache.bcel.generic.InstructionHandle getLastInst()
getLastInst Returns the last instruction.

getLineStart

public int getLineStart()
Returns the first line of this block, if available.

getLineEnd

public int getLineEnd()
Returns the last line of this block, if available.

getPCStart

public int getPCStart()
Returns the starting PC of the block.

getPCEnd

public int getPCEnd()
Returns the starting PC of the block.

setInstructionList

protected void setInstructionList(org.apache.bcel.generic.InstructionList il)

length

public int length()

copyInstructionList

public org.apache.bcel.generic.InstructionList copyInstructionList()

chomp

public void chomp()
Removes the last instruction from the BlockVertex.

copy

public BlockVertex copy()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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