MarkdownComment
https://openjdk.org/jeps/467 added support for markdown JavaDoc comments /// That are prefixed with /// /// Support `markdown` markup and references /// And supports substrings not allowed in regular block comments, e.g. *_no_space_here_/
While these comments could be seen as a series of single line comments, they are functionally block comments. The MarkdownComment class adds support for this, although special handling is required for the content of these comments, since the header is no longer only applied to the start of the comment, but rather to the start of each line.
Constructors
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks whether the range of the given
Node is contained within the range of this NodeWithRange.Link copied to clipboard
Walks the AST with pre-order traversal, returning all nodes of type "nodeType".
Walks the AST with specified traversal order, returning all nodes of type "nodeType".
Walks the AST with pre-order traversal, returning all nodes of type "nodeType" that match the predicate.
Link copied to clipboard
Walks the parents of this node and returns the first node of type
type, or empty() if none is found.Walks the parents of this node and returns the first node of type
type that matches predicate, or empty() if none is found.Walks the parents of this node and returns the first node that matches one of types
types, or empty() if none is found.Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Walks the AST with pre-order traversal, returning the first node of type "nodeType" or empty() if none is found.
Walks the AST, applying the function for every node, with traversal algorithm "traversal".
Walks the AST with pre-order traversal, returning the first node of type "nodeType" that matches "predicate" or empty() if none is found.
Link copied to clipboard
Finds the root node of this AST by finding the topmost parent.
Link copied to clipboard
This is the list of Comment which are contained in the Node either because they are properly associated to one of its children or because they are floating around inside the Node
Link copied to clipboard
This field is used by key to associated (JML) comments to this node.
Link copied to clipboard
Contains all nodes that have this node set as their parent.
Link copied to clipboard
Link copied to clipboard
This is a comment associated with this node.
Link copied to clipboard
Link copied to clipboard
This method was added to support the clone method.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the Markdown content of this comment as defined in JEP 467:
Because horizontal whitespace at the beginning and end of each line of Markdown text may be significant, the content of a Markdown documentation comment is determined as follows: -- Any leading whitespace and the three initial / characters are removed from each line.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
This is a list of Comment which are inside the node and are not associated with any meaningful AST Node.
Link copied to clipboard
Returns the parent node, or
Optional.empty if no parent is set.Link copied to clipboard
Returns the parent node from the perspective of the children of this node.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns true if the parent has a parent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Determines whether this node is an ancestor of the given node.
Link copied to clipboard
Link copied to clipboard
Determines whether this
HasParentNode node is a descendant of the given node.Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Was this observer registered?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Register an observer.
Register a new observer for the given node.
Link copied to clipboard
Register the observer for the current node and all the contained node and nodelists, recursively.
Link copied to clipboard
Link copied to clipboard
Remove data by key.
Link copied to clipboard
Forcibly removes this node from the AST.
Link copied to clipboard
Link copied to clipboard
open fun setAssociatedSpecificationComments(@Nullable associatedSpecificationComments: @Nullable NodeList<Comment>): Node
Link copied to clipboard
Use this to store additional information to this node.
Link copied to clipboard
Use this to store additional information to this node.
Link copied to clipboard
Sets the commentedNode
Link copied to clipboard
Use this to store additional information to this node.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Unregister an observer.
Link copied to clipboard
Walks the AST, calling the consumer for every node with pre-order traversal.
Walks the AST, calling the consumer for every node, with traversal algorithm "traversal".
Walks the AST with pre-order traversal, calling the consumer for every node of type "nodeType".