Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for methodMissing (1.24 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtensibleDynamicObjectTestHelper.groovy

        }
    }
    
    public class DynamicBean extends ExtensibleDynamicObjectTest.Bean {
    //    def propertyMissing(String name) {
    //        super.getProperty(name)
    //    }
    
    //    def methodMissing(String name, params) {
    //        super.methodMissing(name, params)
    //    }
    
    //    void setProperty(String name, Object value) {
    //        super.setProperty(name, value)
    //    }
    }
    
    public class GroovyBean extends DynamicBean {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/fixtures/publish/RemoteRepositorySpec.groovy

                module(aid) {
                    version(v, spec)
                }
            }
        }
    
        /**
         * Use {@link #id} when possible since it doesn't rely on {@code methodMissing} and integrates better with IDEs.
         */
        void methodMissing(String name, args) {
            def (gid, aid, v) = name.split(':') as List
            Closure spec = {}
            if (args && args.length == 1 && args[0] instanceof Closure) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/metaobject/BeanWithDynamicProperties.groovy

                return
            }
            throw new MissingPropertyException(name, BeanWithDynamicProperties)
        }
    
        String thing(Number l) {
            return l.toString()
        }
    
        Object methodMissing(String name, Object params) {
            if (name == "dyno") {
                return Arrays.toString((Object[]) params)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/metaobject/BeanWithMixInMethods.groovy

                        return DynamicInvokeResult.found(Arrays.toString(arguments))
                    }
                    return DynamicInvokeResult.notFound()
                }
            }
        }
    
        Object methodMissing(String name, Object params) {
            throw new AssertionError("Should not be called")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/WithGroovyMeta.groovy

        Object invokeMethod(String name, Object args) {
            null
        }
    
        def propertyMissing(String name) {
            null
        }
    
        def propertyMissing(String name, def value) {
        }
    
        def methodMissing(String name, def args) {
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/internal/metaobject/MethodMixIn.java

     *
     * Note that when a type implements this interface, dynamic Groovy dispatch will not be used to discover opaque methods. That is, methods such as methodMissing() will be ignored.
     */
    public interface MethodMixIn {
        MethodAccess getAdditionalMethods();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 27 06:24:30 UTC 2018
    - 1.1K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiConnector.groovy

        }
    
        def searchUpwards(boolean searchUpwards) {
            connector.searchUpwards(searchUpwards)
            this
        }
    
        def methodMissing(String name, args) {
            connector."$name"(*args)
        }
    
        def propertyMissing(String name, value) {
            connector."$name" = value
        }
    
        def propertyMissing(String name) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestWorkspaceBuilder.groovy

        }
    
        TestFile link(String name, String target) {
            baseDir.file(name).createLink(target)
        }
    
        def setMode(int mode) {
            baseDir.mode = mode
        }
    
        def methodMissing(String name, Object args) {
            if (args.length == 1 && args[0] instanceof Closure) {
                baseDir.file(name).create(args[0])
            } else {
                throw new MissingMethodException(name, getClass(), args)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. platforms/software/signing/src/main/java/org/gradle/plugins/signing/signatory/internal/ConfigurableSignatoryProvider.java

        default void configure(SigningExtension settings, Closure closure) {
            ConfigureUtil.configure(closure, new Object() {
                @SuppressWarnings("unused") // invoked by Groovy
                public void methodMissing(String name, Object args) {
                    createSignatoryFor(settings.getProject(), name, asType(args, Object[].class));
                }
            });
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/fixtures/publish/GroupSpec.groovy

            moduleSpec.resolveStrategy = Closure.DELEGATE_ONLY
            moduleSpec()
        }
    
        void build(HttpRepository repository) {
            modules.values()*.build(repository)
        }
    
        void methodMissing(String name, args) {
            def (aid, v) = name.split(':') as List
            Closure spec = {}
            if (args && args.length == 1 && args[0] instanceof Closure) {
                spec = args[0]
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top