|
||||||||||
| 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 |
boolean |
covered
whether this method is called |
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 |
|
MethodInfo(java.lang.String path,
java.lang.String signature,
int complexity,
int lineno,
int covered,
int size)
Constructor |
|
| Method Summary | |
|---|---|
int |
compareTo(MethodInfo o)
|
int |
getCompl()
|
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 "# |
java.lang.String |
getPath()
|
java.lang.String |
getSig()
|
void |
increaseComplexity(int count)
|
void |
increaseLine(boolean covered)
Increase lines of code in this method. |
void |
increaseSizeAndCovered(int size,
int covered)
|
void |
setCompl(int compl)
|
void |
setPath(java.lang.String path)
|
void |
setSig(java.lang.String sig)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String sig
public int compl
public int line
public int cst
public int st
public java.lang.String path
public boolean covered
| 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
public MethodInfo(java.lang.String path,
java.lang.String signature,
int complexity,
int lineno,
int covered,
int size)
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>public void setCompl(int compl)
public int getCompl()
public void setSig(java.lang.String sig)
public java.lang.String getSig()
public void setPath(java.lang.String path)
public java.lang.String getPath()
public void increaseSizeAndCovered(int size,
int covered)
public void increaseComplexity(int count)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||