|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.codecoverage.v2.util.ClassfileCheckerCLI
This file joins the class detail files, original class files, and covered class files with the source, into a STDOUT report.
Constructor Summary | |
ClassfileCheckerCLI()
|
Method Summary | |
protected java.util.Map |
createAnalysisModuleIndexMap(IMetaDataReader mdr)
|
protected org.apache.bcel.classfile.JavaClass |
createJavaClass(java.io.File filename)
|
protected IMetaDataReader |
createMetaDataReader(java.io.File datadir)
|
protected java.lang.String |
format8(int i)
|
protected java.lang.String[] |
formatWidth(java.lang.String t,
int width)
|
java.io.File |
getClassFileForClass(java.lang.String classname,
java.io.File classdir)
Returns only the class file for the given class name. |
java.io.File[] |
getClassFilesForClass(java.lang.String classname,
java.io.File classdir)
Returns all class files related to the given classname. |
protected java.lang.String |
getClassName(org.apache.bcel.classfile.ConstantPool cp,
int typeIndex)
|
protected java.lang.String |
getJustClassName(java.lang.String classname)
|
protected java.lang.String[] |
getMachingClassSignatures(java.lang.String classname,
java.lang.String[] sigs)
|
MarkRecord[] |
getMarkRecords(java.lang.String classname,
IMetaDataReader mdr)
|
protected java.lang.String |
getPackageName(java.lang.String classname)
|
java.io.File |
getSourceFileForClass(java.lang.String classname,
java.io.File srcdir)
Returns only the class file for the given class name. |
protected java.lang.String |
indexCode(int i)
|
static void |
main(java.lang.String[] args)
|
java.lang.String[] |
markedLine(MarkRecord[] mrL,
int lineNo)
Returns the measure names of the analysis modules that marked this particular line. |
protected void |
printCodeException(java.lang.String type,
org.apache.bcel.classfile.CodeException[] ce,
int pos,
org.apache.bcel.classfile.ConstantPool cp,
java.io.PrintStream out)
|
protected int |
printLegend(java.util.Map amToIndex,
java.io.PrintStream out)
|
protected void |
printSideBySide(java.lang.String left,
java.lang.String right,
int width,
java.lang.String sep,
java.lang.String indent,
java.io.PrintStream out)
|
void |
reportAddedMethod(org.apache.bcel.classfile.Method cov,
java.io.PrintStream out)
|
void |
reportClassDiff(java.lang.String classname,
java.io.File originalClassDir,
java.io.File coveredClassDir,
java.io.PrintStream out)
Perform a diff on the covered and original class files for a specific class. |
void |
reportMarkedSource(java.lang.String classname,
java.io.File coveredDataDir,
java.io.File srcDir,
java.io.PrintStream out)
|
void |
reportMarkedSource(java.lang.String classname,
IMetaDataReader mdr,
java.io.File srcFile,
java.io.PrintStream out)
Comment the source code for the given class with the line number and which analysis module marked each line. |
void |
reportMethodDiff(org.apache.bcel.classfile.Method orig,
org.apache.bcel.classfile.Method cov,
org.apache.bcel.classfile.ConstantPool origCP,
org.apache.bcel.classfile.ConstantPool covCP,
java.io.PrintStream out)
|
void |
reportRemovedMethod(org.apache.bcel.classfile.Method orig,
java.io.PrintStream out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassfileCheckerCLI()
Method Detail |
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public void reportMarkedSource(java.lang.String classname, java.io.File coveredDataDir, java.io.File srcDir, java.io.PrintStream out) throws java.io.IOException
java.io.IOException
public void reportMarkedSource(java.lang.String classname, IMetaDataReader mdr, java.io.File srcFile, java.io.PrintStream out) throws java.io.IOException
java.io.IOException
public void reportClassDiff(java.lang.String classname, java.io.File originalClassDir, java.io.File coveredClassDir, java.io.PrintStream out) throws java.io.IOException
java.io.IOException
public void reportMethodDiff(org.apache.bcel.classfile.Method orig, org.apache.bcel.classfile.Method cov, org.apache.bcel.classfile.ConstantPool origCP, org.apache.bcel.classfile.ConstantPool covCP, java.io.PrintStream out)
public void reportRemovedMethod(org.apache.bcel.classfile.Method orig, java.io.PrintStream out)
public void reportAddedMethod(org.apache.bcel.classfile.Method cov, java.io.PrintStream out)
public java.lang.String[] markedLine(MarkRecord[] mrL, int lineNo)
public java.io.File[] getClassFilesForClass(java.lang.String classname, java.io.File classdir)
public java.io.File getClassFileForClass(java.lang.String classname, java.io.File classdir) throws java.io.IOException
java.io.IOException
public java.io.File getSourceFileForClass(java.lang.String classname, java.io.File srcdir) throws java.io.IOException
java.io.IOException
public MarkRecord[] getMarkRecords(java.lang.String classname, IMetaDataReader mdr) throws java.io.IOException
java.io.IOException
protected org.apache.bcel.classfile.JavaClass createJavaClass(java.io.File filename) throws java.io.IOException
java.io.IOException
protected java.lang.String[] getMachingClassSignatures(java.lang.String classname, java.lang.String[] sigs)
protected java.lang.String getPackageName(java.lang.String classname)
protected java.lang.String getJustClassName(java.lang.String classname)
protected IMetaDataReader createMetaDataReader(java.io.File datadir) throws java.io.IOException
java.io.IOException
protected java.util.Map createAnalysisModuleIndexMap(IMetaDataReader mdr) throws java.io.IOException
java.io.IOException
protected int printLegend(java.util.Map amToIndex, java.io.PrintStream out)
protected java.lang.String indexCode(int i)
protected java.lang.String format8(int i)
protected java.lang.String[] formatWidth(java.lang.String t, int width)
protected void printCodeException(java.lang.String type, org.apache.bcel.classfile.CodeException[] ce, int pos, org.apache.bcel.classfile.ConstantPool cp, java.io.PrintStream out)
protected void printSideBySide(java.lang.String left, java.lang.String right, int width, java.lang.String sep, java.lang.String indent, java.io.PrintStream out)
protected java.lang.String getClassName(org.apache.bcel.classfile.ConstantPool cp, int typeIndex)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |