make JSweet annotations to be visible in JavaDoc

This commit is contained in:
Renaud Pawlak 2017-01-15 11:03:35 +01:00
parent 3897c03a56
commit 87541b8d14
14 changed files with 28 additions and 0 deletions

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -59,6 +60,7 @@ import def.js.String;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.FIELD, ElementType.METHOD }) @Target({ ElementType.TYPE, ElementType.FIELD, ElementType.METHOD })
@Documented
public @interface Ambient { public @interface Ambient {
} }

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -55,5 +56,6 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.ANNOTATION_TYPE }) @Target({ ElementType.ANNOTATION_TYPE })
@Documented
public @interface Decorator { public @interface Decorator {
} }

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -27,5 +28,6 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD }) @Target({ ElementType.METHOD })
@Documented
public @interface Disabled { public @interface Disabled {
} }

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -34,5 +35,6 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD }) @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD })
@Documented
public @interface Erased { public @interface Erased {
} }

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -40,6 +41,7 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Documented
public @interface Extends { public @interface Extends {
/** /**

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -36,5 +37,6 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Documented
public @interface Interface { public @interface Interface {
} }

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -36,6 +37,7 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE }) @Target({ ElementType.TYPE })
@Documented
public @interface Mixin { public @interface Mixin {
/** /**
* The target class of this mixin, that it to say the class to which it will * The target class of this mixin, that it to say the class to which it will

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -35,6 +36,7 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.PACKAGE, ElementType.METHOD, ElementType.FIELD }) @Target({ ElementType.PACKAGE, ElementType.METHOD, ElementType.FIELD })
@Documented
public @interface Module { public @interface Module {
/** /**
* The name of the module to be required. * The name of the module to be required.

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -40,6 +41,7 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.PACKAGE }) @Target({ ElementType.TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.PACKAGE })
@Documented
public @interface Name { public @interface Name {
/** /**

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -29,5 +30,6 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Documented
public @interface ObjectType { public @interface ObjectType {
} }

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -43,6 +44,7 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.PARAMETER }) @Target({ ElementType.FIELD, ElementType.PARAMETER })
@Documented
public @interface Optional { public @interface Optional {
} }

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -38,6 +39,7 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.PACKAGE }) @Target({ ElementType.PACKAGE })
@Documented
public @interface Root { public @interface Root {
/** /**
* Declares the dependencies of this package if any. This is purely * Declares the dependencies of this package if any. This is purely

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -29,6 +30,7 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.TYPE }) @Target({ ElementType.FIELD, ElementType.TYPE })
@Documented
public @interface StringType { public @interface StringType {
/** /**

View File

@ -16,6 +16,7 @@
*/ */
package jsweet.lang; package jsweet.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -31,5 +32,6 @@ import java.lang.annotation.Target;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE }) @Target({ ElementType.TYPE })
@Documented
public @interface SyntacticIterable { public @interface SyntacticIterable {
} }