Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for isAnnotationPresent (0.23 sec)

  1. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/annotations/AllFeaturesShouldBeAnnotated.groovy

                spec = spec.subSpec
            }
    
            if (!spec.getReflection().isAnnotationPresent(RunFor) &&
                !spec.getReflection().isAnnotationPresent(Ignore) &&
                !spec.getReflection().isAnnotationPresent(NoRunFor)) {
                spec.getFeatures()
                    .findAll {
                        !it.getFeatureMethod().getReflection().isAnnotationPresent(RunFor.class) &&
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/model/annotations/AbstractInputFilePropertyAnnotationHandler.java

            );
        }
    
        private static InputBehavior determineBehavior(PropertyMetadata propertyMetadata) {
            return propertyMetadata.isAnnotationPresent(SkipWhenEmpty.class)
                ? InputBehavior.PRIMARY
                : propertyMetadata.isAnnotationPresent(Incremental.class)
                ? InputBehavior.INCREMENTAL
                : InputBehavior.NON_INCREMENTAL;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:33 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/ModelProperty.java

            return accessors.values();
        }
    
        public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
            return isAnnotationPresent(annotationType, getAccessor(PropertyAccessorType.GET_GETTER))
                || isAnnotationPresent(annotationType, getAccessor(PropertyAccessorType.IS_GETTER));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertTrue(invokable.isAnnotationPresent(Tested.class));
      }
    
      public void testAbstractMethod() throws Exception {
        Invokable<?, Object> invokable = A.method("abstractMethod");
        assertTrue(invokable.isPackagePrivate());
        assertTrue(invokable.isAbstract());
        assertFalse(invokable.isFinal());
        assertTrue(invokable.isAnnotationPresent(Tested.class));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 30.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertTrue(invokable.isAnnotationPresent(Tested.class));
      }
    
      public void testAbstractMethod() throws Exception {
        Invokable<?, Object> invokable = A.method("abstractMethod");
        assertTrue(invokable.isPackagePrivate());
        assertTrue(invokable.isAbstract());
        assertFalse(invokable.isFinal());
        assertTrue(invokable.isAnnotationPresent(Tested.class));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  6. maven-di/src/main/java/org/apache/maven/di/impl/ReflectionUtils.java

            Object qualifier = null;
            for (Annotation annotation : annotatedElement.getDeclaredAnnotations()) {
                if (annotation.annotationType().isAnnotationPresent(Qualifier.class)) {
                    if (qualifier != null) {
                        throw new DIException("More than one qualifier annotation on " + annotatedElement);
                    }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Feb 09 17:13:31 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/internal/registry/AbstractAnnotationModelRuleExtractorTest.groovy

        def "handles methods annotated with @#annotationName"() {
            when:
            1 * ruleDefinition.isAnnotationPresent(annotation) >> false
    
            then:
            !ruleHandler.isSatisfiedBy(ruleDefinition)
    
            when:
            1 * ruleDefinition.isAnnotationPresent(annotation) >> true
    
            then:
            ruleHandler.isSatisfiedBy(ruleDefinition)
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/AbstractAnnotationDrivenModelRuleExtractor.java

        public Class<T> getAnnotationType() {
            return annotationType;
        }
    
        @Override
        public boolean isSatisfiedBy(MethodRuleDefinition<?, ?> ruleDefinition) {
            return ruleDefinition.isAnnotationPresent(annotationType);
        }
    
        @Override
        public String getDescription() {
            return String.format("annotated with @%s", annotationType.getSimpleName());
       }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/PropertyMetadata.java

    import javax.annotation.Nullable;
    import java.lang.annotation.Annotation;
    import java.util.Optional;
    
    public interface PropertyMetadata {
        String getPropertyName();
    
        boolean isAnnotationPresent(Class<? extends Annotation> annotationType);
    
        <T extends Annotation> Optional<T> getAnnotation(Class<T> annotationType);
    
        Optional<Annotation> getAnnotationForCategory(AnnotationCategory category);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/annotations/PropertyAnnotationMetadata.java

    import java.util.Optional;
    
    public interface PropertyAnnotationMetadata extends Comparable<PropertyAnnotationMetadata> {
        Method getGetter();
    
        String getPropertyName();
    
        boolean isAnnotationPresent(Class<? extends Annotation> annotationType);
    
        <T extends Annotation> Optional<T> getAnnotation(Class<T> annotationType);
    
        ImmutableMap<AnnotationCategory, Annotation> getAnnotations();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top