Class InlineParserImpl.LinkInfoImpl

java.lang.Object
org.commonmark.internal.InlineParserImpl.LinkInfoImpl
All Implemented Interfaces:
LinkInfo
Enclosing class:
InlineParserImpl

private static class InlineParserImpl.LinkInfoImpl extends Object implements LinkInfo
  • Field Details

    • marker

      private final Text marker
    • openingBracket

      private final Text openingBracket
    • text

      private final String text
    • label

      private final String label
    • destination

      private final String destination
    • title

      private final String title
    • afterTextBracket

      private final Position afterTextBracket
  • Constructor Details

  • Method Details

    • marker

      public Text 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 in Parser.Builder.linkMarker(java.lang.Character).
      Specified by:
      marker in interface LinkInfo
    • openingBracket

      public Text openingBracket()
      Description copied from interface: LinkInfo
      The text node of the opening bracket [.
      Specified by:
      openingBracket in interface LinkInfo
    • text

      public String text()
      Description copied from interface: LinkInfo
      The text between the first brackets, e.g. `foo` in `[foo][bar]`.
      Specified by:
      text in interface LinkInfo
    • label

      public String label()
      Description copied from interface: LinkInfo
      The label, or null for inline links or for shortcut links (in which case LinkInfo.text() should be used as the label).
      Specified by:
      label in interface LinkInfo
    • destination

      public String destination()
      Description copied from interface: LinkInfo
      The destination if available, e.g. in `[foo](destination)`, or null
      Specified by:
      destination in interface LinkInfo
    • title

      public String title()
      Description copied from interface: LinkInfo
      The title if available, e.g. in `[foo](destination "title")`, or null
      Specified by:
      title in interface LinkInfo
    • afterTextBracket

      public Position afterTextBracket()
      Description copied from interface: LinkInfo
      The position after the closing text bracket, e.g.:
       [foo][bar]
            ^
       
      Specified by:
      afterTextBracket in interface LinkInfo