Lines Matching refs:methods

96  * Utility class that encapsulates the algorithm for choosing the maximally specific methods.
100 * Given a list of methods, returns a list of maximally specific methods.
102 * @param methods the list of methods
103 * @param varArgs whether to assume the methods are varargs
104 * @return the list of maximally specific methods.
106 static List<SingleDynamicMethod> getMaximallySpecificMethods(final List<SingleDynamicMethod> methods, final boolean varArgs) {
107 return getMaximallySpecificSingleDynamicMethods(methods, varArgs, null, null);
131 * Given a list of methods handles, returns a list of maximally specific methods, applying language-runtime
134 * @param methods the list of method handles
139 static List<MethodHandle> getMaximallySpecificMethodHandles(final List<MethodHandle> methods, final boolean varArgs,
141 return getMaximallySpecificMethods(methods, varArgs, argTypes, ls, METHOD_HANDLE_TYPE_GETTER);
145 * Given a list of methods, returns a list of maximally specific methods, applying language-runtime specific
148 * @param methods the list of methods
149 * @param varArgs whether to assume the methods are varargs
151 * @return the list of maximally specific methods.
153 static List<SingleDynamicMethod> getMaximallySpecificSingleDynamicMethods(final List<SingleDynamicMethod> methods,
155 return getMaximallySpecificMethods(methods, varArgs, argTypes, ls, DYNAMIC_METHOD_TYPE_GETTER);
159 * Given a list of methods, returns a list of maximally specific methods, applying language-runtime specific
162 * @param methods the list of methods
163 * @param varArgs whether to assume the methods are varargs
165 * @return the list of maximally specific methods.
167 private static <T> List<T> getMaximallySpecificMethods(final List<T> methods, final boolean varArgs,
169 if(methods.size() < 2) {
170 return methods;
173 for(final T m: methods) {
213 // 'this'. We're only dealing with instance methods here, not static methods. Actually, static methods will have