使用Javadoc将类型为workWithAnnot
,Method
,Constructor
,Annotation
,Package
的对象记录为未完成在开发中,下面是代码,
src
package1
package-info.java
Unfinished.java
test
package-info.java
workWithAnnot.java
@Unfinished("Package scope")
package package1;
package package1;
import java.lang.annotation.*;
@Unfinished("Just articleware")
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.METHOD, ElementType.CONSTRUCTOR,
ElementType.ANNOTATION_TYPE, ElementType.PACKAGE})
@Inherited
public @interface Unfinished {
public enum Priority {LOW, MEDIUM, HIGH}
String value();
String[] owners() default "";
Priority priority() default Priority.MEDIUM;
}
package test;
import package1.Unfinished;
import package1.Unfinished.Priority;
@Unfinished(
value = "Class Scope",
priority = Priority.LOW
)
public class workWithAnnot {
@Unfinished(owners = "xyz", value="Method scope")
public void foo() {
}
@Unfinished(owners = "Sham", value="Method scope")
public void bar() {
}
}
@Unfinished("Package scope")
package test;
import package1.Unfinished;
Javadoc将Package
类型的对象显示为未完成的Java语法但不是作为文档(简体中文):
@Unfinished(value =" Package scope")
包装测试
Javadoc在Java语法中将workWithAnnot
类型的对象显示为未完成但未作为文档显示:
@Unfinished(value =" Class Scope", 优先级= LOW)
公共类workWithAnnot扩展java.lang.Object
Javadoc在Java语法中将Method
类型的对象显示为未完成但未作为文档显示:
FOO
@Unfinished(所有者=" XYZ&#34 ;, value ="方法范围")
public void foo()
@Documented
注释可以解决此问题吗?
或
我是否需要为新的自定义注释编写编译时注释处理器而不是使用元注释(@Documented
)?