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

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

public class ModifiedClass
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

Constructor Summary
ModifiedClass(ParseCoverageLogger pcl, java.lang.String filename, byte[] originalClassFile)
           
ModifiedClass(java.lang.String filename, byte[] originalClassFile)
          Uses the default settings for the ParseCoverageLogger during the creation of the modified class.
 
Method Summary
 ClassRecord createClassRecord(AnalysisModuleSet ams)
           
 long getClassCRC()
           
 java.lang.String getClassName()
           
 java.lang.String getClassSignature()
           
 ModifiedMethod[] getMethods()
          Return all modifiable methods owned by the class.
 byte[] getModifiedClass()
          Returns the class in its current state, and closes off the modified class from further modifications.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifiedClass

public ModifiedClass(java.lang.String filename,
                     byte[] originalClassFile)
              throws java.io.IOException
Uses the default settings for the ParseCoverageLogger during the creation of the modified class.

Parameters:
filename - the name of the file the class file was pulled from.
Throws:
java.lang.IllegalStateException - if the class file has already been modified (identified by a class name field).
java.io.IOException

ModifiedClass

public ModifiedClass(ParseCoverageLogger pcl,
                     java.lang.String filename,
                     byte[] originalClassFile)
              throws java.io.IOException
Parameters:
pcl - the definition for the logger to create method references for. This allows for easier testing and customizations of the logger to compile for.
filename - the name of the file the class file was pulled from.
Throws:
java.lang.IllegalStateException - if the class file has already been modified (identified by a class name field).
java.io.IOException
Method Detail

getClassName

public java.lang.String getClassName()

getClassCRC

public long getClassCRC()

getClassSignature

public java.lang.String getClassSignature()

createClassRecord

public ClassRecord createClassRecord(AnalysisModuleSet ams)

getMethods

public ModifiedMethod[] getMethods()
Return all modifiable methods owned by the class. This will not return methods deemed non-modifiable, such as abstract or native methods, or javac-generated methods.


getModifiedClass

public byte[] getModifiedClass()
Returns the class in its current state, and closes off the modified class from further modifications.



Copyright © 2001-2003 by The GroboUtils Project