- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for GroovyObject (0.23 sec)
-
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) -
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) -
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) -
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) -
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) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ModelSchemaUtils.java
import com.google.common.collect.ImmutableSortedMap; import com.google.common.collect.ListMultimap; import com.google.common.collect.Multimaps; import com.google.common.collect.Ordering; import groovy.lang.GroovyObject; import org.gradle.internal.reflect.GroovyMethods; import org.gradle.internal.reflect.Types.TypeVisitResult; import org.gradle.internal.reflect.Types.TypeVisitor; import org.gradle.model.Managed;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 06 15:03:49 UTC 2023 - 6.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/declarations/GroovyDynamicDispatchInterceptors.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.internal.classpath.declarations; import groovy.lang.GroovyObject; import org.codehaus.groovy.runtime.ScriptBytecodeAdapter; import org.gradle.api.NonNullApi; import org.gradle.internal.classpath.InstrumentedClosuresHelper; import org.gradle.internal.classpath.intercept.AbstractInvocation;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 13:46:35 UTC 2024 - 4.7K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/kotlinDsl/interoperability-groovy-builder/kotlin/build.gradle.kts
fun another(map: Map<String, *>) {} } val target = TargetType() val aReference = "" // tag::withGroovyBuilder[] target.withGroovyBuilder { // <1> // GroovyObject methods available // <2> if (hasProperty("foo")) { /*...*/ } val foo = getProperty("foo") setProperty("foo", "bar") invokeMethod("name", arrayOf("parameters", 42, aReference))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 925 bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/type/ModelTypes.java
*/ package org.gradle.model.internal.type; import com.google.common.collect.ImmutableSortedSet; import com.google.common.collect.Iterables; import com.google.common.collect.Ordering; import groovy.lang.GroovyObject; import org.gradle.model.ModelMap; import org.gradle.model.ModelSet; import java.util.ArrayDeque; import java.util.LinkedHashSet; import java.util.List; import java.util.Queue; import java.util.Set;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 4.2K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GroovyInteroperabilityIntegrationTest.kt
import org.gradle.kotlin.dsl.fixtures.AbstractKotlinIntegrationTest import org.junit.Test class GroovyInteroperabilityIntegrationTest : AbstractKotlinIntegrationTest() { @Test fun `can call GroovyObject methods in withGroovyBuilder`() { withDefaultSettings() withFile( "groovy.gradle", """ class MyExtension { String server = 'default'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 1.8K bytes - Viewed (0)