Class MethodScore

java.lang.Object
gw.lang.reflect.MethodScore
All Implemented Interfaces:
Comparable<MethodScore>

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

  • Constructor Details

  • Method Details

    • isValid

      public boolean isValid()
      Returns:
      true if this score represents an actual matching method score rather than just a placeholder indicating that no method matched
    • getScore

      public double getScore()
    • setScore

      public void setScore(double score)
    • incScore

      public void incScore(double amount)
    • setValid

      public void setValid(boolean valid)
    • getRawFunctionType

      public IInvocableType getRawFunctionType()
    • setRawFunctionType

      public void setRawFunctionType(IInvocableType funcType)
    • getInferredFunctionType

      public IInvocableType getInferredFunctionType()
    • setInferredFunctionType

      public void setInferredFunctionType(IInvocableType funcType)
    • getReceiverType

      public IType getReceiverType()
    • getAccessibility

      public IRelativeTypeInfo.Accessibility getAccessibility()
    • compareTo

      public int compareTo(MethodScore o)
      Specified by:
      compareTo in interface Comparable<MethodScore>
    • getArguments

      public List<IExpression> getArguments()
    • setArguments

      public void setArguments(List<IExpression> argExpressions)
    • getParserStates

      public List getParserStates()
    • setParserStates

      public void setParserStates(List parserStates)
    • matchesArgSize

      public boolean matchesArgSize()
    • getNamedArgOrder

      public int[] getNamedArgOrder()
    • setNamedArgOrder

      public void setNamedArgOrder(List<Integer> namedArgOrder)
    • getInferenceMap

      public TypeVarToTypeMap getInferenceMap()
    • setInferenceMap

      public void setInferenceMap(TypeVarToTypeMap inferenceMap)