Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for addAnnotationTypeName (0.18 sec)

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

        def "is deprecated when @Deprecated annotation is attached to class"() {
            def notDeprecated = new ClassMetaData("SomeClass")
            def deprecated = new ClassMetaData("SomeClass")
            deprecated.addAnnotationTypeName(Deprecated.class.name)
    
            expect:
            !notDeprecated.deprecated
            deprecated.deprecated
        }
    
        def "is incubating when @Incubating annotation is attached to class"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  2. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/PropertyMetaDataTest.groovy

            def notDeprecated = new PropertyMetaData('param', classMetaData)
            def deprecated = new PropertyMetaData('param', classMetaData)
            deprecated.addAnnotationTypeName(Deprecated.class.name)
    
            expect:
            !notDeprecated.deprecated
            deprecated.deprecated
        }
    
        def "is incubating when @Incubating is attached to property"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.1K bytes
    - Viewed (0)
  3. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/MethodMetaDataTest.groovy

        def "is deprecated when @Deprecated is attached to method"() {
            def notDeprecated = new MethodMetaData('param', owner)
            def deprecated = new MethodMetaData('param', owner)
            deprecated.addAnnotationTypeName(Deprecated.class.name)
    
            expect:
            !notDeprecated.deprecated
            deprecated.deprecated
        }
    
        def "is incubating when @Incubating is attached to method"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.6K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/AbstractLanguageElement.java

            this.rawCommentText = rawCommentText;
        }
    
        @Override
        public List<String> getAnnotationTypeNames() {
            return annotationNames;
        }
    
        public void addAnnotationTypeName(String annotationType) {
            annotationNames.add(annotationType);
        }
    
        @Override
        public boolean isDeprecated() {
            return annotationNames.contains(Deprecated.class.getName());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.9K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java

                PropertyMetaData property = getCurrentClass().addReadableProperty(propName, returnType, rawCommentText, methodMetaData);
                methodMetaData.getAnnotationTypeNames().forEach(property::addAnnotationTypeName);
                property.setReplacement(methodMetaData.getReplacement());
                return;
            }
    
            if (methodMetaData.getParameters().size() != 1) {
                return;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 21 13:27:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
Back to top