Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for GroovyObject (0.18 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/GroovyInteroperabilityTest.kt

        @Test
        fun `#withGroovyBuilder allow nested invocations against GroovyObject`() {
    
            val expectedNestedInvokeResult = Any()
            val nestedDelegate = mock<GroovyObject> {
                on { invokeMethod(any(), any()) } doReturn expectedNestedInvokeResult
            }
    
            val expectedInvokeResult = Any()
            val delegate = mock<GroovyObject> {
                on { invokeMethod(eq("nest"), any()) }.thenAnswer {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  2. subprojects/core-api/src/main/java/org/gradle/api/tasks/util/internal/PatternSetAntBuilderDelegate.java

            this.excludes = excludes;
            this.caseSensitive = caseSensitive;
        }
    
        private static Object logical(Object node, String op, final Action<Object> withNode) {
            GroovyObject groovyObject = (GroovyObject) node;
            groovyObject.invokeMethod(op, new Closure(null, null) {
                void doCall() {
                    withNode.execute(getDelegate());
                }
            });
            return node;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:48 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/TypesTest.groovy

        def "base object types are not visited"() {
            when: Types.walkTypeHierarchy(Object, Mock(Types.TypeVisitor))
            then: 0 * _
    
            when: Types.walkTypeHierarchy(GroovyObject, [Object, GroovyObject], Mock(Types.TypeVisitor))
            then: 0 * _
        }
    
        class Base {
            @Incubating
            Object doSomething() { null }
        }
    
        interface Iface {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 06 15:03:49 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/GroovyInteroperability.kt

     * }
     * ```
     *
     * @see [withGroovyBuilder]
     */
    interface GroovyBuilderScope : GroovyObject {
    
        companion object {
    
            /**
             * Creates a [GroovyBuilderScope] for the given [value].
             */
            fun of(value: Any): GroovyBuilderScope =
                when (value) {
                    is GroovyObject -> GroovyBuilderScopeForGroovyObject(value)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/GroovyMethods.java

    import com.google.common.base.Equivalence;
    import com.google.common.base.Function;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterables;
    import groovy.lang.GroovyObject;
    
    import javax.annotation.Nullable;
    import java.lang.reflect.Method;
    import java.util.Arrays;
    import java.util.Set;
    
    import static org.gradle.internal.reflect.Methods.SIGNATURE_EQUIVALENCE;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorInjectUndecoratedTest.groovy

            !(bean instanceof IConventionAware)
            !(bean instanceof GroovyObject)
        }
    
        def "generates subclass that is not decorated when service getter methods present"() {
            def services = Stub(ServiceLookup)
            services.get(Number) >> 12
    
            expect:
            // Use a Java class to verify GroovyObject is not mixed in
            def bean = create(BeanWithServiceGetters, services)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/DynamicPropertyNamer.java

                    name = ((Named) thing).getName();
                } else if (thing instanceof Map) {
                    name = ((Map) thing).get("name");
                } else if (thing instanceof GroovyObject) {
                    name = ((GroovyObject) thing).getProperty("name");
                } else {
                    name = DynamicObjectUtil.asDynamicObject(thing).getProperty("name");
                }
            } catch (MissingPropertyException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 10:39:11 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/initialization/MixInLegacyTypesClassLoaderTest.groovy

        }
    
        def "does not mix GroovyObject into other types"() {
            given:
            def className = "org.gradle.api.plugins.Thing"
    
            def original = compileJavaToDir(className, """
                package org.gradle.api.plugins;
                class Thing {
                }
            """)
            !GroovyObject.isAssignableFrom(original)
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 22 23:58:47 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/metaobject/BeanDynamicObject.java

            private final GroovyObject groovyObject = (GroovyObject) bean;
    
            @Override
            protected DynamicInvokeResult getOpaqueProperty(String name) {
                try {
                    return DynamicInvokeResult.found(groovyObject.getProperty(name));
                } catch (MissingPropertyException e) {
                    if (!name.equals(e.getProperty())) {
                        throw e;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/DefaultCallSiteDecorator.java

                        if (groovyDefaultCallSite != null) {
                            return groovyDefaultCallSite.callCurrent((GroovyObject) receiver, args);
                        } else {
                            try {
                                return super.callCurrent((GroovyObject) receiver, args);
                            } finally {
                                restoreCallSiteArrayEntry();
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 13:46:35 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top