Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for annotationType (0.17 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/AbstractAnnotationDrivenModelRuleExtractor.java

        private final Class<T> annotationType;
    
        protected AbstractAnnotationDrivenModelRuleExtractor() {
            @SuppressWarnings("unchecked") Class<T> annotationType = (Class<T>) new TypeToken<T>(getClass()) {}.getRawType();
            this.annotationType = annotationType;
        }
    
        public Class<T> getAnnotationType() {
            return annotationType;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/Parameter.java

        return getAnnotation(annotationType) != null;
      }
    
      @Override
      @CheckForNull
      public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
        checkNotNull(annotationType);
        for (Annotation annotation : annotations) {
          if (annotationType.isInstance(annotation)) {
            return annotationType.cast(annotation);
          }
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 16 15:12:31 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. maven-di/src/main/java/org/apache/maven/di/impl/Utils.java

    public final class Utils {
    
        public static String getDisplayString(Class<? extends Annotation> annotationType, @Nullable Annotation annotation) {
            if (annotation == null) {
                return "@" + ReflectionUtils.getDisplayName(annotationType);
            }
            String typeName = annotationType.getName();
            String str = annotation.toString();
            return str.startsWith("@" + typeName)
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Feb 05 09:45:47 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/AbstractTypeAnnotationHandler.java

        protected AbstractTypeAnnotationHandler(Class<? extends Annotation> annotationType) {
            this.annotationType = annotationType;
        }
    
        private final Class<? extends Annotation> annotationType;
    
        @Override
        public Class<? extends Annotation> getAnnotationType() {
            return annotationType;
        }
    
        protected static void reportInvalidUseOfTypeAnnotation(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 09:10:37 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/DefaultTypeMetadataStore.java

            @Override
            public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
                return annotationMetadata.isAnnotationPresent(annotationType);
            }
    
            @Override
            public <T extends Annotation> Optional<T> getAnnotation(Class<T> annotationType) {
                return annotationMetadata.getAnnotation(annotationType);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:36 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. platforms/jvm/normalization-java/src/test/groovy/org/gradle/internal/normalization/java/ApiClassExtractorAnnotationsTest.groovy

            then:
            annotations.size() == 1
            annotations[0].annotationType().name == 'Ann'
            extractedAnnotations.size() == 1
            def annotation = extractedAnnotations[0]
            annotation.annotationType() == extractedAnn
            def subAnnotation = annotation.value()
            subAnnotation.annotationType().name == 'SubAnn'
            subAnnotation.value() == 'foo'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/AbstractPropertyAnnotationHandler.java

        private final Class<? extends Annotation> annotationType;
        private final Kind kind;
        private final ImmutableSet<Class<? extends Annotation>> allowedModifiers;
    
        protected AbstractPropertyAnnotationHandler(Class<? extends Annotation> annotationType, Kind kind, ImmutableSet<Class<? extends Annotation>> allowedModifiers) {
            this.annotationType = annotationType;
            this.kind = kind;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/DefaultMethodRuleDefinition.java

        }
    
        @Override
        public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
            return getAnnotation(annotationType) != null;
        }
    
        @Override
        public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
            return method.getMethod().getAnnotation(annotationType);
        }
    
        @Override
        public ModelRuleDescriptor getDescriptor() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. testing/architecture-test/src/test/java/org/gradle/architecture/test/ArchUnitFixture.java

            private final Class<? extends Annotation> annotationType;
    
            AnnotatedOrInPackageAnnotatedPredicate(Class<? extends Annotation> annotationType) {
                super("annotated (directly or via its package) with @" + annotationType.getName());
                this.annotationType = annotationType;
            }
    
            @Override
            public boolean test(JavaClass input) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/Parameter.java

        return getAnnotation(annotationType) != null;
      }
    
      @Override
      @CheckForNull
      public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
        checkNotNull(annotationType);
        for (Annotation annotation : annotations) {
          if (annotationType.isInstance(annotation)) {
            return annotationType.cast(annotation);
          }
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 16 15:12:31 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top