int markerAnnotationIndex = 1;
int singleAnnatationIndex = 1;
int normalAnnotationIndex = 1;
for (AnnotationMetadata annotationMetadata : packageMetadata.getAnnotationMetada()) {
if (annotationMetadata instanceof MarkerAnnotationMetadata) {
MarkerAnnotationMetadata markerAnnotationMetadata = (MarkerAnnotationMetadata)annotationMetadata;
Path markerAnnotationChildNode = pathFactory.create(JAVA_COMPILATION_UNIT_NODE + SLASH
+ JAVA_PACKAGE_CHILD_NODE + SLASH
+ JAVA_PACKAGE_DECLARATION_CHILD_NODE + SLASH
+ JAVA_ANNOTATION_CHILD_NODE + SLASH
+ JAVA_ANNOTATION_DECLARATION_CHILD_NODE + SLASH
+ JAVA_ANNOTATION_TYPE_CHILD_NODE + SLASH
+ JAVA_MARKER_ANNOTATION_CHILD_NODE + "["
+ markerAnnotationIndex + "]");
output.setProperty(markerAnnotationChildNode,
nameFactory.create(JAVA_MARKER_ANNOTATION_NAME),
markerAnnotationMetadata.getName());
markerAnnotationIndex++;
}
if (annotationMetadata instanceof SingleMemberAnnotationMetadata) {
SingleMemberAnnotationMetadata singleMemberAnnotationMetadata = (SingleMemberAnnotationMetadata)annotationMetadata;
Path singleMemberAnnotationChildNode = pathFactory.create(JAVA_COMPILATION_UNIT_NODE + SLASH