Package gw.lang.reflect
Class MethodScorer
java.lang.Object
gw.lang.reflect.MethodScorer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptiondouble_addToScoreForTypes(List<IType> inferringTypes, IType paramType, IType argType) doubleaddDegreesOfSeparation(IType parameterType, IType exprType, List<IType> inferringTypes) doubledoubleaddToScoreForTypes(List<IType> inferringTypes, IType paramType, IType argType) getCachedMethodScore(IInvocableType funcType, IType callsiteEnclosingType, IType rootType, List<IType> argTypes) <E extends IType>
EgetGenericType(E type) static MethodScorerinstance()putCachedMethodScore(MethodScore score) voiddoublescoreMethod(IInvocableType funcType, List<IType> argTypes, List<IType> inferringTypes) scoreMethod(IType callsiteEnclosingType, IType rootType, IInvocableType funcType, List<? extends IInvocableType> listFunctionTypes, List<IType> argTypes, List<IType> inferringTypes, boolean bSkipScoring, boolean bLookInCache) scoreMethods(List<IInvocableType> funcTypes, List<IType> argTypes)
-
Field Details
-
BOXED_COERCION_SCORE
public static final int BOXED_COERCION_SCORE- See Also:
-
PRIMITIVE_COERCION_SCORE
public static final int PRIMITIVE_COERCION_SCORE- See Also:
-
-
Method Details
-
instance
-
scoreMethods
-
scoreMethod
public MethodScore scoreMethod(IType callsiteEnclosingType, IType rootType, IInvocableType funcType, List<? extends IInvocableType> listFunctionTypes, List<IType> argTypes, List<IType> inferringTypes, boolean bSkipScoring, boolean bLookInCache) -
scoreMethod
public double scoreMethod(IInvocableType funcType, List<IType> argTypes, List<IType> inferringTypes) -
addToScoreForTypes
-
_addToScoreForTypes
-
addDegreesOfSeparation
-
addDegreesOfSeparation
-
getGenericType
-
getCachedMethodScore
public IInvocableType getCachedMethodScore(IInvocableType funcType, IType callsiteEnclosingType, IType rootType, List<IType> argTypes) -
putCachedMethodScore
-
removeCachedMethodScore
-