cyvis.core.metrics
Class MethodMetric
java.lang.Object
cyvis.core.metrics.MethodMetric
public class MethodMetric
- extends Object
Metrics extracted from a method.
Method Summary |
void |
generateText(Writer out)
Generates a fragment of a plain-text report for this method's metrics. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REVERSE_CC_COMPARATOR
public static final cyvis.core.metrics.MethodMetric._ReverseCcComparator REVERSE_CC_COMPARATOR
- A comparator for MethodMetric objects, ordering by cyclomatic complexity
then length, in reverse.
Note: this comparator imposes orderings that are inconsistent with
equals.
name
public final String name
cyclomaticComplexity
public final int cyclomaticComplexity
length
public final int length
MethodMetric
public MethodMetric(MethodNode method)
- Extracts method metrics from the given MethodNode.
generateText
public void generateText(Writer out)
throws IOException
- Generates a fragment of a plain-text report for this method's metrics.
Used by
ClassMetric.generateText(Writer)
.
- Parameters:
out
- Writer to which the report fragment is written
- Throws:
IOException