public class MethodScorer extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BOXED_COERCION_SCORE |
static int |
PRIMITIVE_COERCION_SCORE |
Modifier and Type | Method and Description |
---|---|
int |
_addToScoreForTypes(Class<?> paramType,
Class argType) |
int |
addDegreesOfSeparation(Class<?> parameterType,
Set<? extends Class> types) |
int |
addDegreesOfSeparation(Class parameterType,
Class exprType) |
int |
addToScoreForTypes(Class paramType,
Class argType) |
static MethodScorer |
instance() |
MethodScore |
scoreMethod(Method funcType,
List<Class> argTypes,
Class returnType) |
int |
scoreMethod(MethodScore score,
Method funcType,
List<Class> argTypes,
Class returnType) |
List<MethodScore> |
scoreMethods(List<Method> funcTypes,
List<Class> argTypes,
Class returnType) |
public static final int BOXED_COERCION_SCORE
public static final int PRIMITIVE_COERCION_SCORE
public static MethodScorer instance()
public List<MethodScore> scoreMethods(List<Method> funcTypes, List<Class> argTypes, Class returnType)
public MethodScore scoreMethod(Method funcType, List<Class> argTypes, Class returnType)
public int scoreMethod(MethodScore score, Method funcType, List<Class> argTypes, Class returnType)
Copyright © 2024. All rights reserved.