@Test public void testEnumAnnotations() { Mirror<AnnotatedEnumObject> mirror = Mirrors.newMirrorFactory().getMirror(AnnotatedEnumObject.class); final Property<AnnotatedEnumObject, Object> property1 = mirror.getProperty("property1"); final List<Annotation> annotations = property1.getAnnotations(); Assert.assertEquals(1, annotations.size()); final Map<String, AnnotationProperty> propertyMap = annotations.iterator().next().getProperties(); Assert.assertEquals(1, propertyMap.size()); Assert.assertTrue(propertyMap.containsKey("value")); final AnnotationProperty value = propertyMap.get("value"); Assert.assertSame(TestEnum.VALUE1, value.getValue()); }
public java.util.Map<String, AnnotationProperty> getProperties() { return properties; }
Annotation { public java.util.Map<String, AnnotationProperty> getProperties() { return properties; } }
Annotation { public java.util.Map<String, AnnotationProperty> getProperties() { return properties; } Annotation(Class<?> annotationClass, boolean visible, java.util.Map<String, AnnotationProperty> properties); }
Annotation { public java.util.Map<String, AnnotationProperty> getProperties() { return properties; } Annotation(Class<?> annotationClass, boolean visible, java.util.Map<String, AnnotationProperty> properties); Class<?> getAnnotationClass(); boolean isVisible(); java.util.Map<String, AnnotationProperty> getProperties(); @Override int hashCode(); @Override boolean equals(Object obj); }
Annotation { public java.util.Map<String, AnnotationProperty> getProperties() { return properties; } Annotation(Class<?> annotationClass, boolean visible, java.util.Map<String, AnnotationProperty> properties); Class<?> getAnnotationClass(); boolean isVisible(); java.util.Map<String, AnnotationProperty> getProperties(); @Override int hashCode(); @Override boolean equals(Object obj);  }