net.sourceforge.groboutils.codecoverage.v2.compiler
Class ModifiedMethod

java.lang.Object
  extended bynet.sourceforge.groboutils.codecoverage.v2.compiler.ModifiedMethod

public class ModifiedMethod
extends java.lang.Object

Refers to a class file that has been modified with additional logging statements.

Since:
December 17, 2002
Version:
$Date: 2003/05/05 05:45:32 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Method Summary
 boolean canAddMarks()
          Returns true if the method can be modified, otherwise returns false.
 ModifiedInstructionList getInstructionList()
          If the method cannot be modified, then this will return null.
 short getMethodIndex()
           
 java.lang.String getMethodName()
           
 org.apache.bcel.classfile.JavaClass getOriginalClass()
           
 org.apache.bcel.classfile.Method getOriginalMethod()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMethodIndex

public short getMethodIndex()

getMethodName

public java.lang.String getMethodName()

getInstructionList

public ModifiedInstructionList getInstructionList()
If the method cannot be modified, then this will return null.


getOriginalClass

public org.apache.bcel.classfile.JavaClass getOriginalClass()

getOriginalMethod

public org.apache.bcel.classfile.Method getOriginalMethod()

canAddMarks

public boolean canAddMarks()
Returns true if the method can be modified, otherwise returns false. A method can be modified only if it is not native, not abstract, and it has a code attribute.



Copyright © 2001-2003 by The GroboUtils Project