Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for addAnnotationTypeName (0.15 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)
Back to top