Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for findDeclaredProperty (0.08 sec)

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

            then:
            p == overriddenProperty
            _ * getter.overriddenMethod >> overriddenGetter
            _ * overriddenGetter.ownerClass >> overriddenClass
            _ * overriddenClass.findDeclaredProperty('prop') >> overriddenProperty
        }
    
        def usesSetterToLocateOverriddenPropertyWhenPropertyHasNoGetter() {
            MethodMetaData setter = Mock()
            MethodMetaData overriddenSetter = Mock()
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.1K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/PropertyMetaData.java

                overriddenMethod = setter.getOverriddenMethod();
            }
            if (overriddenMethod != null) {
                return overriddenMethod.getOwnerClass().findDeclaredProperty(name);
            }
    
            return null;
        }
    
        @Override
        public void visitTypes(Action<TypeMetaData> action) {
            action.execute(type);
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 3K bytes
    - Viewed (0)
Back to top