public class Link extends Node
Example for an inline link in a CommonMark document:
[link](/uri "title")
The corresponding Link node would look like this:
getDestination() returns "/uri"
getTitle() returns "title"
Text child node with getLiteral that returns "link"
Note that the text in the link can contain inline formatting, so it could also contain an Image or
Emphasis, etc.
| Constructor and Description |
|---|
Link() |
Link(String destination,
String title) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor) |
String |
getDestination() |
String |
getTitle() |
void |
setDestination(String destination) |
void |
setTitle(String title) |
protected String |
toStringAttributes() |
addSourceSpan, appendChild, getFirstChild, getLastChild, getNext, getParent, getPrevious, getSourceSpans, insertAfter, insertBefore, prependChild, setParent, setSourceSpans, toString, unlinkpublic String getDestination()
public void setDestination(String destination)
public String getTitle()
public void setTitle(String title)
protected String toStringAttributes()
toStringAttributes in class NodeCopyright © 2021. All rights reserved.