@Test public void testAnnotatedAnnotations() { Mirror<AnnotatedAnnotationObject> mirror = Mirrors.newMirrorFactory().getMirror(AnnotatedAnnotationObject.class); final List<Annotation> annotations = mirror.getProperty("property").getAnnotations(); Assert.assertEquals(1, annotations.size()); final Annotation annotation1 = annotations.iterator().next(); final AnnotationProperty annotationProperty = annotation1.getProperties().get("value"); final Annotation annotation2 = (Annotation) annotationProperty.getValue(); Assert.assertEquals("Annotation !", annotation2.getProperties().get("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);  }