Class MethodScorer


  • public class MethodScorer
    extends java.lang.Object
    • Constructor Detail

      • MethodScorer

        private MethodScorer()
    • Method Detail

      • scoreMethod

        public MethodScore scoreMethod​(IType callsiteEnclosingType,
                                       IType rootType,
                                       IInvocableType funcType,
                                       java.util.List<? extends IInvocableType> listFunctionTypes,
                                       java.util.List<IType> argTypes,
                                       java.util.List<IType> inferringTypes,
                                       boolean bSkipScoring,
                                       boolean bLookInCache)
      • scoreMethod

        public double scoreMethod​(IInvocableType funcType,
                                  java.util.List<IType> argTypes,
                                  java.util.List<IType> inferringTypes)
      • addToScoreForTypes

        public double addToScoreForTypes​(java.util.List<IType> inferringTypes,
                                         IType paramType,
                                         IType argType)
      • _addToScoreForTypes

        public double _addToScoreForTypes​(java.util.List<IType> inferringTypes,
                                          IType paramType,
                                          IType argType)
      • arePrimitiveTypesCompatible

        private boolean arePrimitiveTypesCompatible​(IType paramType,
                                                    IType argType)
      • addDegreesOfSeparation

        public double addDegreesOfSeparation​(IType parameterType,
                                             IType exprType,
                                             java.util.List<IType> inferringTypes)
      • addDegreesOfSeparationFromParameterization

        private double addDegreesOfSeparationFromParameterization​(IType parameterType,
                                                                  IType exprType,
                                                                  java.util.List<IType> inferringTypes)
      • addDegreesOfSeparation

        public double addDegreesOfSeparation​(IType parameterType,
                                             java.util.Set<? extends IType> types,
                                             java.util.List<IType> inferringTypes)
      • getGenericType

        public <E extends IType> E getGenericType​(E type)