forked from MarkusBernhardt/xml-doclet
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request MarkusBernhardt#13 from G-Ork/master
Support nested annotations MarkusBernhardt#12
- Loading branch information
Showing
7 changed files
with
164 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,13 @@ | |
<email>[email protected]</email> | ||
</developer> | ||
</developers> | ||
|
||
<contributors> | ||
<contributor> | ||
<name>Georg Tsakumagos</name> | ||
<email>[email protected]</email> | ||
</contributor> | ||
</contributors> | ||
|
||
<dependencies> | ||
<dependency> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/test/java/com/github/markusbernhardt/xmldoclet/simpledata/AnnotationCascade.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.github.markusbernhardt.xmldoclet.simpledata; | ||
|
||
/** | ||
* AnnotationCascade | ||
*/ | ||
public @interface AnnotationCascade { | ||
/** | ||
* value | ||
* | ||
* @return ret | ||
*/ | ||
AnnotationCascadeChild[] children(); | ||
} |
18 changes: 18 additions & 0 deletions
18
src/test/java/com/github/markusbernhardt/xmldoclet/simpledata/AnnotationCascadeChild.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.github.markusbernhardt.xmldoclet.simpledata; | ||
|
||
/** | ||
* AnnotationCascadeChild | ||
*/ | ||
public @interface AnnotationCascadeChild { | ||
|
||
/** | ||
* The name. | ||
* @return The name. | ||
*/ | ||
public String name(); | ||
|
||
public String[] dummyData() default {} ; | ||
|
||
public Annotation3[] subAnnotations() default {}; | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
src/test/java/com/github/markusbernhardt/xmldoclet/simpledata/ClassAnnotationCascade.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.github.markusbernhardt.xmldoclet.simpledata; | ||
|
||
/** | ||
* ClassAnnotationCascade | ||
*/ | ||
@AnnotationCascade( | ||
children= { | ||
@AnnotationCascadeChild(name="primitive", | ||
dummyData= {"A", "B", "C"} | ||
), | ||
@AnnotationCascadeChild(name="nested", | ||
subAnnotations= { | ||
@Annotation3(id=4), | ||
@Annotation3(id=5), | ||
@Annotation3(id=666) | ||
|
||
}) | ||
} | ||
) | ||
public class ClassAnnotationCascade implements Interface2 { | ||
|
||
public void test() { | ||
|
||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
public int method1() { | ||
return 0; | ||
} | ||
} |