Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for TypeMetaData (0.12 sec)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/TypeMetaData.java

     */
    public class TypeMetaData implements Serializable, TypeContainer {
        public static final TypeMetaData VOID = new TypeMetaData("void");
        public static final TypeMetaData OBJECT = new TypeMetaData("java.lang.Object");
    
        private String name;
        private int arrayDimensions;
        private boolean varargs;
        private List<TypeMetaData> typeArgs;
        private boolean wildcard;
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/ParameterMetaData.java

        private final String name;
        private TypeMetaData type;
    
        public ParameterMetaData(String name) {
            this.name = name;
        }
    
        public String getName() {
            return name;
        }
    
        public TypeMetaData getType() {
            return type;
        }
    
        public void setType(TypeMetaData type) {
            this.type = type;
        }
    
        public String getSignature() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/MethodMetaData.java

        }
    
        public ClassMetaData getOwnerClass() {
            return ownerClass;
        }
    
        public TypeMetaData getReturnType() {
            return returnType;
        }
    
        public void setReturnType(TypeMetaData returnType) {
            this.returnType = returnType;
        }
    
        public MethodMetaData getOverriddenMethod() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.9K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java

                });
            }
        }
    
        private TypeMetaData extractTypeName(Type type) {
            TypeMetaData typeMetaData = new TypeMetaData();
            type.ifArrayType(arrayType -> typeMetaData.setArrayDimensions(arrayType.getArrayLevel()));
            extractElementTypeName(type.getElementType(), typeMetaData);
            return typeMetaData;
        }
    
    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/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)
  6. 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)
  7. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/LinkRendererTest.groovy

            _ * method.ownerClass >> ownerClass
            _ * ownerClass.className >> className
            return method
        }
    
        def type(String name, boolean isArray = false) {
            TypeMetaData type = new TypeMetaData(name)
            if (isArray) {
                type.arrayDimensions = 1
            }
            return type
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.9K bytes
    - Viewed (0)
  8. 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>'
    
            _ * classMetaData.innerClassNames >> []
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6K bytes
    - Viewed (0)
  9. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/links/ClassLinkMetaDataTest.groovy

            classMetaData.addMethod(METHOD_NAME, TypeMetaData.VOID, null)
            classMetaData.addMethod(METHOD_NAME, TypeMetaData.VOID, null).addParameter('param1', new TypeMetaData("java.lang.Integer"))
            def overloadedCalculateMethod = classMetaData.addMethod('calculate', TypeMetaData.VOID, null)
            overloadedCalculateMethod.addParameter('x', new TypeMetaData("java.lang.Integer"))
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.7K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/ClassMetaData.java

            PropertyMetaData property = getProperty(name);
            property.setType(type);
            property.setRawCommentText(rawCommentText);
            property.setGetter(getterMethod);
            return property;
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 10.1K bytes
    - Viewed (0)
Back to top