Package manifold.util
Class MethodScorer
- java.lang.Object
-
- manifold.util.MethodScorer
-
public class MethodScorer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intBOXED_COERCION_SCOREstatic intPRIMITIVE_COERCION_SCORE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int_addToScoreForTypes(Class<?> paramType, Class argType)intaddDegreesOfSeparation(Class<?> parameterType, Set<? extends Class> types)intaddDegreesOfSeparation(Class parameterType, Class exprType)intaddToScoreForTypes(Class paramType, Class argType)static MethodScorerinstance()MethodScorescoreMethod(Method funcType, List<Class> argTypes, Class returnType)intscoreMethod(MethodScore score, Method funcType, List<Class> argTypes, Class returnType)List<MethodScore>scoreMethods(List<Method> funcTypes, List<Class> argTypes, Class returnType)
-
-
-
Field Detail
-
BOXED_COERCION_SCORE
public static final int BOXED_COERCION_SCORE
- See Also:
- Constant Field Values
-
PRIMITIVE_COERCION_SCORE
public static final int PRIMITIVE_COERCION_SCORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
instance
public static MethodScorer instance()
-
scoreMethods
public List<MethodScore> scoreMethods(List<Method> funcTypes, List<Class> argTypes, Class returnType)
-
scoreMethod
public MethodScore scoreMethod(Method funcType, List<Class> argTypes, Class returnType)
-
scoreMethod
public int scoreMethod(MethodScore score, Method funcType, List<Class> argTypes, Class returnType)
-
-