Interface NodeWithJavadoc<N extends Node>
- All Known Implementing Classes:
AnnotationDeclaration, AnnotationMemberDeclaration, CallableDeclaration, ClassOrInterfaceDeclaration, CompactConstructorDeclaration, ConstructorDeclaration, EnumConstantDeclaration, EnumDeclaration, FieldDeclaration, InitializerDeclaration, MethodDeclaration, RecordDeclaration, TypeDeclaration
public interface NodeWithJavadoc<N extends Node>
A node that can be documented with a Javadoc comment.
-
Method Summary
Modifier and TypeMethodDescriptionGets the Javadoc for this node.default Optional<JavadocComment> Gets the JavadocComment for this node.default booleandefault booleansetComment(Comment comment) default NsetJavadocComment(JavadocComment comment) default NsetJavadocComment(Javadoc javadoc) default NsetJavadocComment(String comment) Use this to store additional information to this node.default NsetJavadocComment(String indentation, Javadoc javadoc)
-
Method Details
-
getComment
-
setComment
-
getJavadocComment
Gets the JavadocComment for this node. You can set the JavadocComment by calling setJavadocComment passing a JavadocComment.- Returns:
- The JavadocComment for this node wrapped in an optional as it may be absent.
-
getJavadoc
-
setJavadocComment
-
setJavadocComment
-
setJavadocComment
-
setJavadocComment
-
removeJavaDocComment
default boolean removeJavaDocComment() -
hasJavaDocComment
default boolean hasJavaDocComment()
-