|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.covcomplplot.model.MethodInfo
public class MethodInfo
Value class which contains each method info.
| Field Summary | |
|---|---|
int |
compl
Complexity |
int |
cst
Covered Statement |
int |
line
Line no |
java.lang.String |
path
File path |
java.lang.String |
sig
Signature |
int |
st
Statement |
| Constructor Summary | |
|---|---|
MethodInfo(java.lang.String path,
java.lang.String signature,
int complexity,
int lineno)
Constructor |
|
| Method Summary | |
|---|---|
int |
compareTo(MethodInfo o)
|
float |
getCoverageRatio()
Get coverage ratio. |
java.lang.String |
getDisplaySignature()
Return signature string cutting off more than 80 characters. |
java.lang.String |
getFormattedCoverageRatio()
Get coverage ratio formatted by "# |
void |
increaseLine(boolean covered)
Increase lines of code in this method. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String sig
public final int compl
public final int line
public int cst
public int st
public final java.lang.String path
| Constructor Detail |
|---|
public MethodInfo(java.lang.String path,
java.lang.String signature,
int complexity,
int lineno)
path - file path in which this method existssignature - method signaturecomplexity - method complexitylineno - method lines| Method Detail |
|---|
public float getCoverageRatio()
public java.lang.String getFormattedCoverageRatio()
public java.lang.String getDisplaySignature()
public void increaseLine(boolean covered)
covered - true if the line is covered.public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(MethodInfo o)
compareTo in interface java.lang.Comparable<MethodInfo>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||