Class WikiText.InternalLink

All Implemented Interfaces:
Visitable
Enclosing class:
WikiText

public final class WikiText.InternalLink extends WikiText.Link
  • Method Details

    • getLinkText

      public String getLinkText()
      returns the full text of the link, including the suffix if any
      Overrides:
      getLinkText in class WikiText.Link
      Returns:
      the full text of the link
    • getSuffix

      public WikiText.WikiContent getSuffix()
      returns the suffix of the link, if any
      Returns:
      the suffix of the link
    • fillText

      public void fillText(StringBuilder r)
      Specified by:
      fillText in class WikiText.Token
    • isValidInternalLink

      public boolean isValidInternalLink()
      Wikitext parser considers an internal link as invalid if it contains curly brace Here, we authorize templates but no "free" curly braces or other token.
      Returns:
      true iff the this is a VALID internal link
    • accept

      public <T> T accept(Visitor<T> visitor)
    • asInternalLink

      public WikiText.InternalLink asInternalLink()
      Overrides:
      asInternalLink in class WikiText.Token