Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for addTypeArg (0.1 sec)

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

        }
    
        def rawTypeForParameterizedArrayType() {
            type.arrayDimensions = 2
            type.addTypeArg(new TypeMetaData('Type1'))
    
            expect:
            type.rawType.signature == 'org.gradle.SomeType[][]'
        }
    
        def rawTypeForParameterizedType() {
            type.addTypeArg(new TypeMetaData('Type1'))
            type.addTypeArg(new TypeMetaData('Type2'))
    
            expect:
            type.rawType.signature == 'org.gradle.SomeType'
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.6K bytes
    - Viewed (0)
  2. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/LinkRendererTest.groovy

        }
    
        def rendersLinkToParameterizedType() {
            def metaData = type('org.gradle.SomeClass')
            metaData.addTypeArg(type('Type1'))
            metaData.addTypeArg(type('Type2'))
    
            when:
            def link = renderer.link(metaData, listener)
    
            then:
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.9K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/TypeMetaData.java

                builder.append("[]");
            }
            if (varargs) {
                builder.append("...");
            }
            return builder.toString();
        }
    
        public TypeMetaData addTypeArg(TypeMetaData typeArg) {
            if (typeArgs == null) {
                typeArgs = new ArrayList<TypeMetaData>();
            }
            typeArgs.add(typeArg);
            return this;
        }
    
        @Override
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java

                typeMetaData.setName(extractName(classOrInterfaceType));
                classOrInterfaceType.getTypeArguments().ifPresent(typeArguments -> {
                    typeArguments.forEach(arg -> typeMetaData.addTypeArg(extractTypeName(arg)));
                });
            });
        }
    
        private void findAnnotations(NodeWithAnnotations<?> node, AbstractLanguageElement currentElement) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 19 15:07:24 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/MethodMetaDataTest.groovy

        }
    
        def formatsOverrideSignatureUsingRawParameterTypes() {
            method.returnType = new TypeMetaData('ReturnType')
            method.addParameter('param', new TypeMetaData('ParamType').addTypeArg(new TypeMetaData("Type1")))
            method.addParameter('param2', new TypeMetaData('ParamType2'))
    
            expect:
            method.signature == 'ReturnType method(ParamType<Type1> param, ParamType2 param2)'
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.6K bytes
    - Viewed (0)
  6. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/TypeNameResolverTest.groovy

            then:
            name == 'boolean'
        }
    
        def resolvesParameterisedTypes() {
            def typeMetaData = type('SomeClass')
            typeMetaData.addTypeArg(type('String'))
    
            when:
            typeNameResolver.resolve(typeMetaData, classMetaData)
    
            then:
            typeMetaData.signature == 'org.gradle.SomeClass<java.lang.String>'
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6K bytes
    - Viewed (0)
  7. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocMethodsBuilderTest.groovy

            MethodMetaData blockMethod = method('block', classMetaData, paramTypes: [Closure.class.name])
            PropertyMetaData compositeBlockProperty = property('listBlock', classMetaData, type: new TypeMetaData('java.util.List').addTypeArg(new TypeMetaData('BlockType')))
            MethodMetaData compositeBlockMethod = method('listBlock', classMetaData, paramTypes: [Closure.class.name])
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 8.4K bytes
    - Viewed (0)
Back to top