Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for annotationType (0.27 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/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)
  6. 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)
  7. 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)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/annotations/impl/DefaultPropertyAnnotationMetadata.java

        }
    
        @Override
        public <T extends Annotation> Optional<T> getAnnotation(Class<T> annotationType) {
            return Optional.ofNullable(Cast.uncheckedCast(annotationsByType.get(annotationType)));
        }
    
        @Override
        public ImmutableMap<AnnotationCategory, Annotation> getAnnotations() {
            return annotationsByCategory;
        }
    
        @Override
        public int compareTo(@Nonnull PropertyAnnotationMetadata o) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java

                    Class<? extends Annotation> annotationType = a.annotationType();
                    if ("org.eclipse.sisu.Typed".equals(annotationType.getName())
                            || "javax.enterprise.inject.Typed".equals(annotationType.getName())
                            || "jakarta.enterprise.inject.Typed".equals(annotationType.getName())) {
                        try {
                            Class<?>[] value =
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/model/annotations/AbstractInputPropertyAnnotationHandler.java

            super(annotationType, Kind.INPUT, allowedModifiers);
        }
    
        protected static void validateUnsupportedInputPropertyValueTypes(
            PropertyMetadata propertyMetadata,
            TypeValidationContext validationContext,
            Class<? extends Annotation> annotationType
        ) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top