All methods for a class are currently stored in a single object called a
MethodMetricMap.
The main functionality offered by this class currently includes:
// Returns a HashMap of methods
final HashMap<String, int[] methods();
// Convenience method for direct access to a particular methods metrics.
// Returns the specified simple metric for the specified method.
int getSimpleMetric(String method, MethodMetric metric);
TODO:
Provide a Comparable implementation allowing one class' MethodMetricMap to
be compared to another. Since we now collect metrics down to the method
level, it would be useful to compare a class' MethodMetricMap between
versions.
// This could simply be implemented by comparing fully qualified
// method signature and all metrics.
int compareTo(MethodMetricMap other);
Additionally, provide a comparison method for comparing individual methods
directly.
boolean equals(String method1, String method2);
Original issue reported on code.google.com by jtha...@gmail.com on 17 Jul 2007 at 3:00
Original issue reported on code.google.com by
jtha...@gmail.com
on 17 Jul 2007 at 3:00