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 int
compareTo(MethodScore o)
IRelativeTypeInfo.Accessibility
getAccessibility()
List<IExpression>
getArguments()
TypeVarToTypeMap
getInferenceMap()
IInvocableType
getInferredFunctionType()
int[]
getNamedArgOrder()
List
getParserStates()
IInvocableType
getRawFunctionType()
IType
getReceiverType()
double
getScore()
void
incScore(double amount)
boolean
isValid()
boolean
matchesArgSize()
void
setArguments(List<IExpression> argExpressions)
void
setInferenceMap(TypeVarToTypeMap inferenceMap)
void
setInferredFunctionType(IInvocableType funcType)
void
setNamedArgOrder(List<Integer> namedArgOrder)
void
setParserStates(List parserStates)
void
setRawFunctionType(IInvocableType funcType)
void
setScore(double score)
void
setValid(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:
compareTo
in 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)
-
-