Link

A link with a destination and an optional title; the link text is in child nodes. <p> Example for an inline link in a CommonMark document: <pre><code> link

</code></pre> <p> The corresponding Link node would look like this: <ul> <li>{@link #getDestination()} returns {@code "/uri"} <li>{@link #getTitle()} returns {@code "title"} <li>A {@link Text} child node with {@link Text#getLiteral() getLiteral} that returns {@code "link"}</li> </ul> <p> Note that the text in the link can contain inline formatting, so it could also contain an {@link Image} or {@link Emphasis}, etc.

Constructors

this
this()
Undocumented in source.
this
this(string destination, string title)
Undocumented in source.

Members

Functions

accept
void accept(Visitor visitor)
Undocumented in source. Be warned that the author may not have intended to support it.
getDestination
string getDestination()
Undocumented in source. Be warned that the author may not have intended to support it.
getTitle
string getTitle()
Undocumented in source. Be warned that the author may not have intended to support it.
setDestination
void setDestination(string destination)
Undocumented in source. Be warned that the author may not have intended to support it.
setTitle
void setTitle(string title)
Undocumented in source. Be warned that the author may not have intended to support it.
toStringAttributes
string toStringAttributes()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Node

accept
void accept(Visitor visitor)
Undocumented in source.
getNext
Node getNext()
Undocumented in source. Be warned that the author may not have intended to support it.
getPrevious
Node getPrevious()
Undocumented in source. Be warned that the author may not have intended to support it.
getFirstChild
Node getFirstChild()
Undocumented in source. Be warned that the author may not have intended to support it.
getLastChild
Node getLastChild()
Undocumented in source. Be warned that the author may not have intended to support it.
getParent
Node getParent()
Undocumented in source. Be warned that the author may not have intended to support it.
setParent
void setParent(Node parent)
Undocumented in source. Be warned that the author may not have intended to support it.
appendChild
void appendChild(Node child)
Undocumented in source. Be warned that the author may not have intended to support it.
prependChild
void prependChild(Node child)
Undocumented in source. Be warned that the author may not have intended to support it.
unlink
void unlink()
Undocumented in source. Be warned that the author may not have intended to support it.
insertAfter
void insertAfter(Node sibling)
Undocumented in source. Be warned that the author may not have intended to support it.
insertBefore
void insertBefore(Node sibling)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
toStringAttributes
string toStringAttributes()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta