public class MatchMetrics extends java.lang.Object implements java.lang.Comparable<MatchMetrics>
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
cvt
Number of matches due to widening or narrowing conversion.
|
(package private) MethodData |
data
The member to which the metrics refer.
|
(package private) int |
exact
Number of exact matches.
|
(package private) int |
extCvt
Number of matches due to fixed extent to indeterminate conversion.
|
(package private) int |
extExact
Number of exact extent matches (none to none, fixed to fixed, indeterminate to indeterminate).
|
(package private) int[] |
ooLvl
Number of OO inheritance levels the caller type is from the callee type.
|
(package private) java.lang.String[] |
overrides
Type overrides needed due to fuzzy matching.
|
(package private) int |
wildcard
Number of wildcard matches.
|
| Constructor and Description |
|---|
MatchMetrics(MethodData data)
Construct an instance which references the given member.
|
| Modifier and Type | Method and Description |
|---|---|
private int |
compareInheritanceLevels(MatchMetrics other)
Compares this object with the given other object to calculate if one of them matched based on OO
inheritance and is "closer" in its relationship.
|
int |
compareTo(MatchMetrics other)
Compares this object with the given other object to calculate a relative ordering between the two
instances.
|
boolean |
equals(java.lang.Object other)
Report if the two instances have equivalent state.
|
java.lang.String |
toString()
Render the state of the instance in a text form.
|
MethodData data
int exact
int cvt
int extExact
int extCvt
int wildcard
int[] ooLvl
java.lang.String[] overrides
public MatchMetrics(MethodData data)
data - The member being referenced.public int compareTo(MatchMetrics other)
compareTo in interface java.lang.Comparable<MatchMetrics>other - The other instance. Must NOT be null.java.lang.NullPointerException - If the parameter is null.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The other instance to check against.true if the other instance is non-null, is the same class and the state is equivalent
as reported by compareTo(com.goldencode.p2j.uast.MatchMetrics). false otherwise.public java.lang.String toString()
toString in class java.lang.Objectprivate int compareInheritanceLevels(MatchMetrics other)
other - The other instance. Must NOT be null.java.lang.NullPointerException - If the parameter is null.