hudson.plugins.testabilityexplorer.report.costs
Class MethodCost
java.lang.Object
hudson.plugins.testabilityexplorer.report.costs.MethodCost
- All Implemented Interfaces:
- TestabilityCost, java.io.Serializable
public class MethodCost
- extends java.lang.Object
- implements java.io.Serializable, TestabilityCost
Encapsulates the testability of a single method.
- Author:
- reik.schatz
- See Also:
- Serialized Form
|
Constructor Summary |
MethodCost(java.lang.String name,
int cyclomatic,
int global,
int line,
int lod,
int overall,
java.lang.String reason)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodCost
public MethodCost(java.lang.String name,
int cyclomatic,
int global,
int line,
int lod,
int overall,
java.lang.String reason)
addToCostStack
public void addToCostStack(MethodCost methodTestability)
getSubCostSize
public int getSubCostSize()
getName
public java.lang.String getName()
getDisplayName
public java.lang.String getDisplayName()
- This will return a shorter version of
getName(). The fully qualified class names of return
values and parameters will be shortened to be just the class name without package.
- Returns:
- String
getCyclomatic
public int getCyclomatic()
getGlobal
public int getGlobal()
getLine
public int getLine()
getLod
public int getLod()
getOverall
public int getOverall()
getReason
public java.lang.String getReason()
getCostStack
public java.util.Collection<MethodCost> getCostStack()
sort
public void sort()
- Sorts the all costs contained in this MethodCost highest first.
Copyright © 2009. All Rights Reserved.