| java.lang.Object csdl.jblanket.modifier.ClassModifier
ClassModifier | class ClassModifier (Code) | | Provides a Modifer for Java byte code in class files. Methods in a class are modified only
once. However, even though a class was previously modified, it still needs to be processed by
this class so that all of its methods can be recorded in the set of total methods.
author: Joy M. Agustin version: $Id: ClassModifier.java,v 1.4 2005/02/19 05:55:19 timshadel Exp $ |
Constructor Summary | |
public | ClassModifier(boolean verbose, String testGrammar, boolean excludeOneLineMethods, boolean excludeConstructors, boolean excludeIndividualMethods, MethodCounter counter, File classFile) Constructs a new ClassModifier object. | public | ClassModifier(boolean verbose, MethodCounter counter, File classFile) Constructs a new ClassModifier object. |
Method Summary | |
public void | excludeMethods() Records the excluded methods in the class represented by this ClassModifier. | boolean | isModified() Checks if a class has already been modified. | public void | modifyMethods() Modifies byte code in the class represented by this ClassModifier. |
ClassModifier | public ClassModifier(boolean verbose, String testGrammar, boolean excludeOneLineMethods, boolean excludeConstructors, boolean excludeIndividualMethods, MethodCounter counter, File classFile) throws JBlanketException(Code) | | Constructs a new ClassModifier object.
Parameters: verbose - describes if JBlanke should execute in verbose mode. Parameters: testGrammar - the grammar describing test class names. Parameters: excludeOneLineMethods - describes exclusion of one-line methods. Parameters: excludeConstructors - describes exclusion of constructors. Parameters: excludeIndividualMethods - TODO Parameters: counter - the MethodCounter collecting all method type signatures. Parameters: classFile - the fully qualified path to a class file to process. throws: JBlanketException - if unable to get byte code from classFile . |
ClassModifier | public ClassModifier(boolean verbose, MethodCounter counter, File classFile) throws JBlanketException(Code) | | Constructs a new ClassModifier object.
Parameters: verbose - describes if JBlanke should execute in verbose mode. Parameters: counter - the MethodCounter collecting all method type signatures. Parameters: classFile - the fully qualified path to a class file to process. throws: JBlanketException - if unable to get byte code from classFile . |
excludeMethods | public void excludeMethods()(Code) | | Records the excluded methods in the class represented by this ClassModifier.
|
isModified | boolean isModified()(Code) | | Checks if a class has already been modified.
If clazz references the MethodCollector.storeMethodTypeSignature
method, then all methods in the class were previously modified.
NOTE: method is package private for testing, else should be private.
true if the class was previously modified or cannot be modified, false otherwise. |
modifyMethods | public void modifyMethods() throws JBlanketException(Code) | | Modifies byte code in the class represented by this ClassModifier.
throws: JBlanketException - if unable to store modified byte code. |
|
|