|
||||||||||
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 |
String |
path
File path |
String |
sig
Signature |
int |
st
Statement |
Constructor Summary | |
---|---|
MethodInfo(String path,
String signature,
int complexity,
int lineno)
Constructor |
|
MethodInfo(String path,
String signature,
int complexity,
int lineno,
int covered,
int size)
Constructor |
Method Summary | |
---|---|
int |
compareTo(MethodInfo o)
|
int |
getCompl()
|
float |
getCoverageRatio()
Get coverage ratio. |
String |
getDisplaySignature()
Return signature string cutting off more than 80 characters. |
String |
getFormattedCoverageRatio()
Get coverage ratio formatted by "#.##" |
String |
getPath()
|
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(String path)
|
void |
setSig(String sig)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String sig
public int compl
public int line
public int cst
public int st
public String path
public boolean covered
Constructor Detail |
---|
public MethodInfo(String path, String signature, int complexity, int lineno)
path
- file path in which this method existssignature
- method signaturecomplexity
- method complexitylineno
- method linespublic MethodInfo(String path, String signature, int complexity, int lineno, int covered, int size)
path
- file path in which this method existssignature
- method signaturecomplexity
- method complexitylineno
- method linesMethod Detail |
---|
public float getCoverageRatio()
public String getFormattedCoverageRatio()
public String getDisplaySignature()
public void increaseLine(boolean covered)
covered
- true if the line is covered.public String toString()
toString
in class Object
public int compareTo(MethodInfo o)
compareTo
in interface Comparable<MethodInfo>
public void setCompl(int compl)
public int getCompl()
public void setSig(String sig)
public String getSig()
public void setPath(String path)
public 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 |