Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 4,619 for method1 (0.14 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/reflect/JavaMethod.java

        }
    
        public JavaMethod(Class<R> returnType, Method method) {
            this.returnType = returnType;
            this.method = method;
            method.setAccessible(true);
        }
    
        private static Method findMethod(Class<?> target, String name, boolean allowStatic, Class<?>[] paramTypes) {
            // First try to find a method from all public methods
            Method method = findMethodFrom(target.getMethods(), name, allowStatic, paramTypes);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 20 11:07:38 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/MethodSet.java

        public void add(Method method) {
            MethodKey key = new MethodKey(method);
            Method current = methods.get(key);
            if (current == null || shouldReplace(current, method)) {
                // Prefer implementation methods over abstract or bridge methods
                methods.put(key, method);
            }
        }
    
        private boolean shouldReplace(Method current, Method method) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/CandidateMethods.java

            ImmutableMap.Builder<Equivalence.Wrapper<Method>, Collection<Method>> builder = ImmutableMap.builder();
            for (Map<Equivalence.Wrapper<Method>, Collection<Method>> candidatesForSomeName : candidates.values()) {
                builder.putAll(candidatesForSomeName);
            }
            return builder.build();
        }
    
        /**
         * @param methodName Method name
         * @return Candidate methods named {@literal methodName} or {@literal null} if none
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

                // now get the 'public method', the method declared by a
                // public interface or class (because the actual implementing
                // class may be a facade...)
    
                Method publicMethod = getPublicMethod(method);
    
                // it is entirely possible that there is no public method for
                // the methods of this class (i.e. in the facade, a method
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Oct 17 17:55:08 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ModelSchemaUtils.java

            for (String methodName : methodsByName.keySet()) {
                ImmutableList<Method> methodsWithSameName = methodsByName.get(methodName);
                ListMultimap<Equivalence.Wrapper<Method>, Method> equivalenceIndex = Multimaps.index(methodsWithSameName, new Function<Method, Equivalence.Wrapper<Method>>() {
                    @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 06 15:03:49 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/RuleSource.java

     * <p>
     * The following constraints apply to all rule methods:
     * <ul>
     * <li>A method may only be annotated by at most one of the above annotations.</li>
     * <li>A rule method may be {@code static} or not; it makes no difference.</li>
     * <li>A rule method cannot be generic (i.e. cannot have type parameters).</li>
     * <li>With the exception of {@link Model} methods, all methods must have at least one parameter.</li>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        for (int i = 0; i < methods.length; i++) {
          try {
            methods[i] = type.getMethod(methods[i].getName(), methods[i].getParameterTypes());
          } catch (Exception e) {
            throwIfUnchecked(e);
            throw new RuntimeException(e);
          }
        }
        return methods;
      }
    
      private static <T> void testSuccessfulForwarding(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 08 17:31:55 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/MethodInvocationSerializer.java

            }
    
            private MethodDetails writeMethod(Method method) throws IOException {
                MethodDetails methodDetails = methods.get(method);
                if (methodDetails == null) {
                    int methodId = methods.size();
                    methodDetails = new MethodDetails(methodId, method, methodArgsSerializer.forTypes(method.getParameterTypes()));
                    methods.put(method, methodDetails);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  9. maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java

         */
        private static LinkedList<Method> getApplicables(List<Method> methods, Class<?>... classes) {
            LinkedList<Method> list = new LinkedList<>();
    
            for (Method method : methods) {
                if (isApplicable(method, classes)) {
                    list.add(method);
                }
            }
            return list;
        }
    
        /**
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Oct 17 17:55:08 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        for (int i = 0; i < methods.length; i++) {
          try {
            methods[i] = type.getMethod(methods[i].getName(), methods[i].getParameterTypes());
          } catch (Exception e) {
            throwIfUnchecked(e);
            throw new RuntimeException(e);
          }
        }
        return methods;
      }
    
      private static <T> void testSuccessfulForwarding(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 08 17:31:55 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top