Package org.commonmark.internal
Class InlineParserImpl.LinkInfoImpl
java.lang.Object
org.commonmark.internal.InlineParserImpl.LinkInfoImpl
- All Implemented Interfaces:
LinkInfo
- Enclosing class:
InlineParserImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe position after the closing text bracket, e.g.:The destination if available, e.g.label()
The label, or null for inline links or for shortcut links (in which caseLinkInfo.text()
should be used as the label).marker()
The marker if present, or null.The text node of the opening bracket[
.text()
The text between the first brackets, e.g.title()
The title if available, e.g.
-
Field Details
-
marker
-
openingBracket
-
text
-
label
-
destination
-
title
-
afterTextBracket
-
-
Constructor Details
-
LinkInfoImpl
-
-
Method Details
-
marker
Description copied from interface:LinkInfo
The marker if present, or null. A marker is e.g.!
for an image, or a custom marker as specified inParser.Builder.linkMarker(java.lang.Character)
. -
openingBracket
Description copied from interface:LinkInfo
The text node of the opening bracket[
.- Specified by:
openingBracket
in interfaceLinkInfo
-
text
Description copied from interface:LinkInfo
The text between the first brackets, e.g. `foo` in `[foo][bar]`. -
label
Description copied from interface:LinkInfo
The label, or null for inline links or for shortcut links (in which caseLinkInfo.text()
should be used as the label). -
destination
Description copied from interface:LinkInfo
The destination if available, e.g. in `[foo](destination)`, or null- Specified by:
destination
in interfaceLinkInfo
-
title
Description copied from interface:LinkInfo
The title if available, e.g. in `[foo](destination "title")`, or null -
afterTextBracket
Description copied from interface:LinkInfo
The position after the closing text bracket, e.g.:[foo][bar] ^
- Specified by:
afterTextBracket
in interfaceLinkInfo
-