public class MethodScorer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MethodScorer.MethodScoreKey |
| Modifier and Type | Field and Description |
|---|---|
static int |
BOXED_COERCION_SCORE |
static int |
PRIMITIVE_COERCION_SCORE |
| Modifier and Type | Method and Description |
|---|---|
int |
_addToScoreForTypes(List<IType> inferringTypes,
IType paramType,
IType argType) |
int |
addDegreesOfSeparation(IType parameterType,
IType exprType,
List<IType> inferringTypes) |
int |
addDegreesOfSeparation(IType parameterType,
Set<? extends IType> types,
List<IType> inferringTypes) |
int |
addToScoreForTypes(List<IType> inferringTypes,
IType paramType,
IType argType) |
IInvocableType |
getCachedMethodScore(IInvocableType funcType,
IType callsiteEnclosingType,
IType rootType,
List<IType> argTypes) |
<E extends IType> |
getGenericType(E type) |
static MethodScorer |
instance() |
MethodScorer.MethodScoreKey |
putCachedMethodScore(MethodScore score) |
void |
removeCachedMethodScore(MethodScorer.MethodScoreKey key) |
int |
scoreMethod(IInvocableType funcType,
List<IType> argTypes,
List<IType> inferringTypes) |
MethodScore |
scoreMethod(IType callsiteEnclosingType,
IType rootType,
IInvocableType funcType,
List<? extends IInvocableType> listFunctionTypes,
List<IType> argTypes,
List<IType> inferringTypes,
boolean bSkipScoring,
boolean bLookInCache) |
List<MethodScore> |
scoreMethods(List<IInvocableType> funcTypes,
List<IType> argTypes) |
public static final int BOXED_COERCION_SCORE
public static final int PRIMITIVE_COERCION_SCORE
public static MethodScorer instance()
public List<MethodScore> scoreMethods(List<IInvocableType> funcTypes, List<IType> argTypes)
public MethodScore scoreMethod(IType callsiteEnclosingType, IType rootType, IInvocableType funcType, List<? extends IInvocableType> listFunctionTypes, List<IType> argTypes, List<IType> inferringTypes, boolean bSkipScoring, boolean bLookInCache)
public int scoreMethod(IInvocableType funcType, List<IType> argTypes, List<IType> inferringTypes)
public int addToScoreForTypes(List<IType> inferringTypes, IType paramType, IType argType)
public int _addToScoreForTypes(List<IType> inferringTypes, IType paramType, IType argType)
public int addDegreesOfSeparation(IType parameterType, IType exprType, List<IType> inferringTypes)
public int addDegreesOfSeparation(IType parameterType, Set<? extends IType> types, List<IType> inferringTypes)
public <E extends IType> E getGenericType(E type)
public IInvocableType getCachedMethodScore(IInvocableType funcType, IType callsiteEnclosingType, IType rootType, List<IType> argTypes)
public MethodScorer.MethodScoreKey putCachedMethodScore(MethodScore score)
public void removeCachedMethodScore(MethodScorer.MethodScoreKey key)
Copyright © 2021. All rights reserved.