|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.web.coverage
Class Metrics
java.lang.Objectbe.lassi.web.coverage.Metrics
public class Metrics
- extends java.lang.Object
Coverage metrics details.
| Constructor Summary | |
|---|---|
Metrics()
|
|
| Method Summary | |
|---|---|
void |
add(Metrics other)
|
int |
compareTo(Metrics other)
Compares two metrics (for sorting purposes). |
int |
getClasses()
Gets the number of classes. |
int |
getCoverage()
Gets the percentage of statement coverage. |
int |
getCoveredmethods()
Gets the number of covered methods. |
int |
getCoveredstatements()
Gets the number of covered statements. |
int |
getLoc()
Gets the number of 'Lines Of Code'. |
int |
getMethods()
Gets the number of methods. |
int |
getNcloc()
Gets the number of 'Non Comment Lines Of Code'. |
int |
getStatements()
Gets the number of statements. |
int |
getStatementsNotCovered()
Gets the number of statements that are not covered. |
void |
setClasses(int classes)
Sets the number of classes. |
void |
setCoveredmethods(int coveredmethods)
Sets the number of covered methods. |
void |
setCoveredstatements(int coveredstatements)
Sets the number of covered statements. |
void |
setLoc(int loc)
Sets the number of 'Lines Of Code'. |
void |
setMethods(int methods)
Sets the number of methods. |
void |
setNcloc(int ncloc)
Sets the number of 'Non Comment Lines Of Code'. |
void |
setStatements(int statements)
Sets the number of statements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Metrics
public Metrics()
| Method Detail |
|---|
add
public void add(Metrics other)
compareTo
public int compareTo(Metrics other)
- Compares two metrics (for sorting purposes).
- Parameters:
other- the other metrics- Returns:
- integer determing the sorting order
getClasses
public int getClasses()
- Gets the number of classes.
- Returns:
- the number of classes
getCoverage
public int getCoverage()
- Gets the percentage of statement coverage.
- Returns:
- the percentage of statement coverage
getCoveredmethods
public int getCoveredmethods()
- Gets the number of covered methods.
- Returns:
- the number of covered methods
getCoveredstatements
public int getCoveredstatements()
- Gets the number of covered statements.
- Returns:
- the number of covered statements
getLoc
public int getLoc()
- Gets the number of 'Lines Of Code'.
- Returns:
- the number of 'Lines Of Code'
getMethods
public int getMethods()
- Gets the number of methods.
- Returns:
- the number of methods
getNcloc
public int getNcloc()
- Gets the number of 'Non Comment Lines Of Code'.
- Returns:
- the number of 'Non Comment Lines Of Code'
getStatements
public int getStatements()
- Gets the number of statements.
- Returns:
- the number of statements
getStatementsNotCovered
public int getStatementsNotCovered()
- Gets the number of statements that are not covered.
- Returns:
- the number of statements that are not covered
setClasses
public void setClasses(int classes)
- Sets the number of classes.
- Parameters:
classes- the number of classes to set
setCoveredmethods
public void setCoveredmethods(int coveredmethods)
- Sets the number of covered methods.
- Parameters:
coveredmethods- the number of covered methods to set
setCoveredstatements
public void setCoveredstatements(int coveredstatements)
- Sets the number of covered statements.
- Parameters:
coveredstatements- the number of covered statements to set
setLoc
public void setLoc(int loc)
- Sets the number of 'Lines Of Code'.
- Parameters:
loc- the number of 'Lines Of Code' to set
setMethods
public void setMethods(int methods)
- Sets the number of methods.
- Parameters:
methods- the number of methods
setNcloc
public void setNcloc(int ncloc)
- Sets the number of 'Non Comment Lines Of Code'.
- Parameters:
ncloc- the number of 'Non Comment Lines Of Code' to set
setStatements
public void setStatements(int statements)
- Sets the number of statements.
- Parameters:
statements- the number of statements to set
|
Lighting Assistant 1.2 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.web.coverage.Metrics