Returns an annotation.
Returns an annotation.
key of the annotation
The value of the annotation as an option if an annotation with the given key exists. None, otherwise.
CAUTION: code outside this class should change the parent only under very rare circumstances.
CAUTION: code outside this class should change the parent only under very rare circumstances.
Retrieves some text from this node.
Retrieves some text from this node. Only works on a TextNode or a Node that has a single TextNode child. Returns None iff this node is not a TextNode and contains child nodes other than a single TextNode.
TODO: the behavior of this method is weird, but I don't dare to change it because existing code may rely on its current behavior. New code should probably use toPlainText.
Retrieves the root node of this AST.
Retrieves the section of this node
Retrieves the section of this node
The section of this node, may be null
Sets a user-defined annotation.
Sets a user-defined annotation.
The key of the annotation
The value of the annotation
IRI of source page and line number.
IRI of source page and line number.
Get plain text content of this node and all child nodes, without markup.
Convert back to original (or equivalent) wiki markup string.
Convert back to original (or equivalent) wiki markup string.