Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 42 for annotationType (0.16 seconds)

  1. android/guava/src/com/google/common/reflect/Parameter.java

      public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
        return getAnnotation(annotationType) != null;
      }
    
      @Override
      public <A extends Annotation> @Nullable A getAnnotation(Class<A> annotationType) {
        checkNotNull(annotationType);
        for (Annotation annotation : annotations) {
          if (annotationType.isInstance(annotation)) {
            return annotationType.cast(annotation);
          }
        }
        return null;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/validation/CustomSizeTest.java

        }
    
        // Test annotation with empty keys
        @Test
        public void test_annotationWithEmptyKeys() {
            final CustomSize emptyKeysAnnotation = new CustomSize() {
                @Override
                public Class<? extends Annotation> annotationType() {
                    return CustomSize.class;
                }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/validation/UriTypeTest.java

            assertEquals("Annotation type should be UriType", UriType.class, customAnnotation.annotationType());
        }
    
        // Test annotation with FILE protocol type
        @Test
        public void test_annotationWithFileProtocolType() {
            final UriType fileAnnotation = new UriType() {
                @Override
                public Class<? extends Annotation> annotationType() {
                    return UriType.class;
                }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 21.3K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java

            }
        }
    
        private CustomSize createBasicAnnotation() {
            return new CustomSize() {
                @Override
                public Class<? extends Annotation> annotationType() {
                    return CustomSize.class;
                }
    
                @Override
                public String message() {
                    return "Size validation failed";
                }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/lang/AnnotationUtil.java

            assertArgumentNotNull("annotation", annotation);
    
            final Map<String, Object> map = newHashMap();
            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(annotation.annotationType());
            for (final String name : beanDesc.getMethodNames()) {
                final Object v = getProperty(beanDesc, annotation, name);
                if (v != null) {
                    map.put(name, v);
                }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRule.groovy

            return (isIncubating(interf) && !isIncubating(c)) || isInternal(interf)
        }
    
        private boolean isIncubating(CtClass c) {
            return c.annotations.any { it.annotationType().name == 'org.gradle.api.Incubating' }
        }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2.8K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

       */
      private static TesterRequirements buildTesterRequirements(Annotation testerAnnotation)
          throws ConflictingRequirementsException {
        Class<? extends Annotation> annotationClass = testerAnnotation.annotationType();
        Feature<?>[] presentFeatures;
        Feature<?>[] absentFeatures;
        try {
          presentFeatures = (Feature<?>[]) annotationClass.getMethod("value").invoke(testerAnnotation);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 12.4K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

       */
      private static TesterRequirements buildTesterRequirements(Annotation testerAnnotation)
          throws ConflictingRequirementsException {
        Class<? extends Annotation> annotationClass = testerAnnotation.annotationType();
        Feature<?>[] presentFeatures;
        Feature<?>[] absentFeatures;
        try {
          presentFeatures = (Feature<?>[]) annotationClass.getMethod("value").invoke(testerAnnotation);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 12.4K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      private static boolean containsNullable(Annotation[] annotations) {
        for (Annotation annotation : annotations) {
          if (NULLABLE_ANNOTATION_SIMPLE_NAMES.contains(annotation.annotationType().getSimpleName())) {
            return true;
          }
        }
        return false;
      }
    
      private boolean isIgnored(Member member) {
        return member.isSynthetic()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      private static boolean containsNullable(Annotation[] annotations) {
        for (Annotation annotation : annotations) {
          if (NULLABLE_ANNOTATION_SIMPLE_NAMES.contains(annotation.annotationType().getSimpleName())) {
            return true;
          }
        }
        return false;
      }
    
      private boolean isIgnored(Member member) {
        return member.isSynthetic()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 24.9K bytes
    - Click Count (0)
Back to Top