Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setVarargs (0.07 sec)

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

            type.arrayDimensions = 2
    
            expect:
            type.rawType.signature == 'org.gradle.SomeType[][]'
        }
    
        def rawTypeForVarargsType() {
            when:
            type.setVarargs()
    
            then:
            type.rawType.signature == 'org.gradle.SomeType[]'
    
            when:
            type.arrayDimensions = 1
    
            then:
            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/main/groovy/gradlebuild/docs/dsl/source/model/TypeMetaData.java

            this.arrayDimensions = arrayDimensions;
            return this;
        }
    
        public boolean isVarargs() {
            return varargs;
        }
    
        public TypeMetaData setVarargs() {
            this.varargs = true;
            return this;
        }
    
        public List<TypeMetaData> getTypeArgs() {
            return typeArgs;
        }
    
        public TypeMetaData getRawType() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  3. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/MethodMetaDataTest.groovy

            method.returnType = new TypeMetaData('ReturnType')
            method.addParameter('param', new TypeMetaData('ParamType'))
            method.addParameter('param2', new TypeMetaData('ParamType2').setVarargs())
    
            expect:
            method.signature == 'ReturnType method(ParamType param, ParamType2... param2)'
            method.overrideSignature == 'method(ParamType, ParamType2[])'
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.6K bytes
    - Viewed (0)
Back to top