Package gw.lang.reflect
Class MethodScore
- java.lang.Object
-
- gw.lang.reflect.MethodScore
-
- All Implemented Interfaces:
Comparable<MethodScore>
public final class MethodScore extends Object implements Comparable<MethodScore>
-
-
Constructor Summary
Constructors Constructor Description MethodScore(IRelativeTypeInfo.Accessibility acc, IType receiverType)MethodScore(IType receiverType, IType callsiteEnclosingType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MethodScore o)IRelativeTypeInfo.AccessibilitygetAccessibility()List<IExpression>getArguments()TypeVarToTypeMapgetInferenceMap()IInvocableTypegetInferredFunctionType()int[]getNamedArgOrder()ListgetParserStates()IInvocableTypegetRawFunctionType()ITypegetReceiverType()doublegetScore()voidincScore(double amount)booleanisValid()booleanmatchesArgSize()voidsetArguments(List<IExpression> argExpressions)voidsetInferenceMap(TypeVarToTypeMap inferenceMap)voidsetInferredFunctionType(IInvocableType funcType)voidsetNamedArgOrder(List<Integer> namedArgOrder)voidsetParserStates(List parserStates)voidsetRawFunctionType(IInvocableType funcType)voidsetScore(double score)voidsetValid(boolean valid)
-
-
-
Constructor Detail
-
MethodScore
public MethodScore(IRelativeTypeInfo.Accessibility acc, IType receiverType)
-
-
Method Detail
-
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:
compareToin interfaceComparable<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()
-
getInferenceMap
public TypeVarToTypeMap getInferenceMap()
-
setInferenceMap
public void setInferenceMap(TypeVarToTypeMap inferenceMap)
-
-