Package manifold.util
Class MethodScore
- java.lang.Object
-
- manifold.util.MethodScore
-
- All Implemented Interfaces:
Comparable<MethodScore>
public final class MethodScore extends Object implements Comparable<MethodScore>
-
-
Constructor Summary
Constructors Constructor Description MethodScore(Class receiverType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MethodScore o)MethodgetMethod()List<Class>getParameterTypes()ClassgetReceiverType()intgetScore()voidincScore(int amount)booleanisErrant()booleanisValid()booleanmatchesArgSize()voidsetErrant(boolean errant)voidsetMethod(Method method)voidsetParameterTypes(List<Class> paramTypes)voidsetScore(int score)voidsetValid(boolean valid)
-
-
-
Constructor Detail
-
MethodScore
public MethodScore(Class receiverType)
-
-
Method Detail
-
isValid
public boolean isValid()
- Returns:
- true if this score represents a matching method score rather than just a placeholder indicating that no method matched
-
setValid
public void setValid(boolean valid)
-
getScore
public int getScore()
-
setScore
public void setScore(int score)
-
incScore
public void incScore(int amount)
-
isErrant
public boolean isErrant()
- Returns:
- true iff the method is call-compatible with the arguments.
-
setErrant
public void setErrant(boolean errant)
-
getMethod
public Method getMethod()
-
setMethod
public void setMethod(Method method)
-
getReceiverType
public Class getReceiverType()
-
compareTo
public int compareTo(MethodScore o)
- Specified by:
compareToin interfaceComparable<MethodScore>
-
matchesArgSize
public boolean matchesArgSize()
-
-