| java.lang.Object net.sourceforge.groboutils.codecoverage.v2.compiler.ModifiedClass
ModifiedClass | public class ModifiedClass (Code) | | Refers to a class file that has been modified with additional logging
statements.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2004/04/15 05:48:25 $ since: December 17, 2002 |
Constructor Summary | |
public | ModifiedClass(String filename, byte[] originalClassFile) Uses the default settings for the ParseCoverageLogger
during the creation of the modified class. | public | ModifiedClass(ParseCoverageLogger pcl, String filename, byte[] originalClassFile) Parameters: pcl - the definition for the logger to create method referencesfor. |
ModifiedClass | public ModifiedClass(String filename, byte[] originalClassFile) throws IOException(Code) | | 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: IllegalStateException - if the class file has already beenmodified (identified by a class name field). |
ModifiedClass | public ModifiedClass(ParseCoverageLogger pcl, String filename, byte[] originalClassFile) throws IOException(Code) | | Parameters: pcl - the definition for the logger to create method referencesfor. This allows for easier testing and customizations of thelogger to compile for. Parameters: filename - the name of the file the class file was pulled from. throws: IllegalStateException - if the class file has already beenmodified (identified by a class name field). |
getClassCRC | public long getClassCRC()(Code) | | |
getMethods | public ModifiedMethod[] getMethods()(Code) | | 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()(Code) | | Returns the class in its current state, and closes off the modified
class from further modifications.
|
getPostCompiledSignature | final public static String getPostCompiledSignature()(Code) | | String that gets placed within class files to flag that they've
been post-compiled.
|
isMarkable | static boolean isMarkable(Method m)(Code) | | Checks if the given method is markable only from the context of the
method contents, not by looking at the signature.
|
|
|