Class GroovydocAnnotationUtils
java.lang.Object
org.codehaus.groovy.tools.groovydoc.GroovydocAnnotationUtils
Utilities shared between
GroovydocVisitor (Groovy AST) and
GroovydocJavaVisitor (JavaParser AST). Kept narrow on purpose:
only logic that is genuinely pure (no AST-type dependency) belongs here.
Everything else is parallel in both visitors because their input AST
types are fundamentally different hierarchies and the adapter layer
needed to unify them would cost more than the duplication it saves.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanshouldDocument(String fqn) GROOVY-4634: emit an annotation reference only when the annotation type is itself markedDocumented, matching Javadoc's behavior.
-
Method Details
-
shouldDocument
GROOVY-4634: emit an annotation reference only when the annotation type is itself markedDocumented, matching Javadoc's behavior. When the annotation type cannot be resolved on the current classpath (common for user-defined annotations in the source tree being documented), default totrueso that groovydoc does not silently drop user annotations.Takes a fully-qualified annotation type name and returns
truewhen the annotation should be shown in the rendered documentation.
-