Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for methodsNamed (0.45 sec)

  1. subprojects/core/src/test/groovy/org/gradle/internal/classpath/intercept/InterceptScopeTest.groovy

            InterceptScope.methodsNamed("method1")             | InterceptScope.methodsNamed("method2")
        }
    
        def "method and property scopes with the same name are not equal"() {
            when:
            InterceptScope methodScope = InterceptScope.methodsNamed("name")
            InterceptScope propertyScope = InterceptScope.readsOfPropertiesNamed("name")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 03 11:20:13 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/InterceptScope.java

         */
        public static InterceptScope methodsNamed(String methodName) {
            return new NamedMemberScope(CallType.METHOD, methodName);
        }
    
        /**
         * The returned scope includes reads of all properties named {@code propertyName}.
         * This scope doesn't include calls to the getter method corresponding to this property,
         * use additional explicit {@link #methodsNamed(String)} scope to intercept that.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 14:02:30 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ModelSchemaUtilsTest.groovy

        }
    
        class UnmanagedType  {
            String value
        }
    
        def "detects unmanaged property"() {
            expect:
            !ModelSchemaUtils.isMethodDeclaredInManagedType(ModelSchemaUtils.getCandidateMethods(UnmanagedType).methodsNamed("getValue").values().flatten())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/CandidateMethods.java

        }
    
        /**
         * @param methodName Method name
         * @return Candidate methods named {@literal methodName} or {@literal null} if none
         */
        Map<Equivalence.Wrapper<Method>, Collection<Method>> methodsNamed(String methodName) {
            if (candidates.containsKey(methodName)) {
                return candidates.get(methodName);
            }
            return Collections.<Equivalence.Wrapper<Method>, Collection<Method>>emptyMap();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top