Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for findDeclaredMethod (0.09 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/MethodMetaDataTest.groovy

            _ * owner.superClass >> superClassMetaData
            _ * owner.interfaces >> []
            1 * superClassMetaData.findDeclaredMethod('method()') >> null
            _ * superClassMetaData.superClass >> ancestorClassMetaData
            _ * superClassMetaData.interfaces >> []
            1 * ancestorClassMetaData.findDeclaredMethod('method()') >> overriddenMethod
        }
    
        def locatesOverriddenMethodInInterfaceOfAncestorClass() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.6K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/MethodMetaData.java

            while (!queue.isEmpty()) {
                ClassMetaData cl = queue.removeFirst();
                if (cl == null) {
                    continue;
                }
                MethodMetaData overriddenMethod = cl.findDeclaredMethod(overrideSignature);
                if (overriddenMethod != null) {
                    return overriddenMethod;
                }
                queue.add(cl.getSuperClass());
                queue.addAll(cl.getInterfaces());
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.9K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/ClassMetaData.java

            for (MethodMetaData declaredMethod : declaredMethods) {
                names.add(declaredMethod.getName());
            }
            return names;
        }
    
        public MethodMetaData findDeclaredMethod(String signature) {
            for (MethodMetaData method : declaredMethods) {
                if (method.getOverrideSignature().equals(signature)) {
                    return method;
                }
            }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 10.1K bytes
    - Viewed (0)
Back to top