Class TWrapper

java.lang.Object
com.j3d.gen.docs.reader.tokens.TWrapper
Direct Known Subclasses:
TWCodeBlock, TWHeader, TWhtmlTag, TWLineSeparator, TWParagraph

public class TWrapper extends Object
A base class for all token wrappers used in the J3Engine documentation reader.

This class provides a common structure for different types of documentation elements, such as headers, paragraphs, code blocks, and HTML tags, by encapsulating their WrapperType and raw content.

Author:
Lehlogonolo Poole, Lehlogonolo Poole
See Also:
  • Field Details

    • type

      private final WrapperType type
      The type of the wrapper.
    • rawContent

      private final ArrayList<String> rawContent
      The raw content of the wrapper, stored as a list of strings.
  • Constructor Details

    • TWrapper

      public TWrapper(WrapperType type, ArrayList<String> rawContent)
      Constructs a new TWrapper with the specified type and raw content.
      Parameters:
      type - The type of the wrapper.
      rawContent - The raw content of the wrapper as an ArrayList of strings.
  • Method Details

    • getRawContent

      public ArrayList<String> getRawContent()
      Returns the raw content of the wrapper.
      Returns:
      An ArrayList of strings representing the raw content.
    • getType

      public WrapperType getType()
      Returns the type of the wrapper.
      Returns:
      The WrapperType of the wrapper.