Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for walkTypeHierarchy (0.19 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/TypesTest.groovy

    import javax.annotation.Nullable
    
    class TypesTest extends Specification {
        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 }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 06 15:03:49 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/Types.java

         *
         * @param clazz the type of whose type hierarchy to visit.
         * @param visitor the visitor to call for each type in the hierarchy.
         */
        public static <T> void walkTypeHierarchy(Class<T> clazz, TypeVisitor<? extends T> visitor) {
            walkTypeHierarchy(clazz, OBJECT_TYPE, visitor);
        }
    
        /**
         * Visits all types in a type hierarchy in breadth-first order, super-classes first and then implemented interfaces.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ModelSchemaUtils.java

    import java.util.Arrays;
    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    
    import static org.gradle.internal.reflect.Methods.SIGNATURE_EQUIVALENCE;
    import static org.gradle.internal.reflect.Types.walkTypeHierarchy;
    
    public class ModelSchemaUtils {
        public static final List<Class<?>> IGNORED_OBJECT_TYPES = ImmutableList.of(Object.class, GroovyObject.class);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 06 15:03:49 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/typeregistration/BaseInstanceFactory.java

    import java.lang.reflect.Modifier;
    import java.util.ArrayList;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    
    import static org.gradle.internal.reflect.Types.walkTypeHierarchy;
    
    public class BaseInstanceFactory<PUBLIC> implements InstanceFactory<PUBLIC> {
        private final ModelType<PUBLIC> baseInterface;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/DefaultStructBindingsStore.java

    import static org.gradle.internal.reflect.PropertyAccessorType.hasVoidReturnType;
    import static org.gradle.internal.reflect.PropertyAccessorType.takesSingleParameter;
    import static org.gradle.internal.reflect.Types.walkTypeHierarchy;
    
    public class DefaultStructBindingsStore implements StructBindingsStore {
        private final LoadingCache<CacheKey, StructBindings<?>> bindings = CacheBuilder.newBuilder()
            .weakValues()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/isolated/IsolationScheme.java

            AtomicReference<Type> foundType = new AtomicReference<>();
            Map<Type, Type> collectedTypes = new HashMap<>();
            Types.walkTypeHierarchy(implementationType, type -> {
                for (Type genericInterface : type.getGenericInterfaces()) {
                    if (collectTypeParameters(genericInterface, foundType, collectedTypes, typeArgumentIndex)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:37 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGenerator.java

    import static org.gradle.internal.reflect.PropertyAccessorType.IS_GETTER;
    import static org.gradle.internal.reflect.PropertyAccessorType.SETTER;
    import static org.gradle.internal.reflect.Types.walkTypeHierarchy;
    import static org.gradle.model.internal.manage.schema.extract.ModelSchemaUtils.IGNORED_OBJECT_TYPES;
    import static org.objectweb.asm.Opcodes.ACC_FINAL;
    import static org.objectweb.asm.Opcodes.ACC_PRIVATE;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 55.3K bytes
    - Viewed (0)
Back to top