Class TLink

java.lang.Object
com.j3d.gen.docs.reader.tokens.TText
com.j3d.gen.docs.reader.tokens.TLink

public class TLink extends TText
Represents a link token in the parsed documentation. Extends TText to inherit text formatting properties.
Author:
Lehlogonolo Poole
  • Field Details

    • url

      private final String url
      The URL of the link.
  • Constructor Details

  • Method Details

    • getUrl

      public String getUrl()
    • fromText

      public static TLink fromText(TText t, String content, String url)
      Creates a new TLink instance by copying formatting properties from an existing TText object. The content and URL for the new link are provided separately.
      Parameters:
      t - The TText object from which to copy italic, bold, and inline code properties.
      content - The text content of the link.
      url - The URL of the link.
      Returns:
      A new TLink instance with the specified content and URL, and formatting properties copied from the input TText object.