Class MethodScore

java.lang.Object
manifold.util.MethodScore
All Implemented Interfaces:
Comparable<MethodScore>

public final class MethodScore extends Object implements Comparable<MethodScore>
  • Constructor Details

    • MethodScore

      public MethodScore(Class receiverType)
  • Method Details

    • 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:
      compareTo in interface Comparable<MethodScore>
    • getParameterTypes

      public List<Class> getParameterTypes()
    • setParameterTypes

      public void setParameterTypes(List<Class> paramTypes)
    • matchesArgSize

      public boolean matchesArgSize()