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)
          addInstruction Appends an instruction to this basic block.
 org.apache.bcel.generic.InstructionList copyInstructionList()
           
 int getBlockEnd()
          getBlockEnd Returns the last line of this block, if available.
 int getBlockStart()
          getBlockStart Returns the first line of this block, if available.
 org.apache.bcel.generic.InstructionHandle getFirstInst()
          getFirstInst Returns the first instruction.
 org.apache.bcel.generic.InstructionHandle getLastInst()
          getLastInst Returns the last instruction.
 int length()
           
 void prefixInstructionList(org.apache.bcel.generic.InstructionList prefix)
           
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)
addInstruction 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.

getBlockStart

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

getBlockEnd

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

setInstructionList

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

prefixInstructionList

public void prefixInstructionList(org.apache.bcel.generic.InstructionList prefix)

length

public int length()

copyInstructionList

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

toString

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


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