Package com.j3d.gen.docs.reader.tokens
Class TWrapper
java.lang.Object
com.j3d.gen.docs.reader.tokens.TWrapper
- Direct Known Subclasses:
TWCodeBlock,TWHeader,TWhtmlTag,TWLineSeparator,TWParagraph
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 Summary
FieldsModifier and TypeFieldDescriptionThe raw content of the wrapper, stored as a list of strings.private final WrapperTypeThe type of the wrapper. -
Constructor Summary
ConstructorsConstructorDescriptionTWrapper(WrapperType type, ArrayList<String> rawContent) Constructs a new TWrapper with the specified type and raw content. -
Method Summary
Modifier and TypeMethodDescriptionReturns the raw content of the wrapper.getType()Returns the type of the wrapper.
-
Field Details
-
type
The type of the wrapper. -
rawContent
The raw content of the wrapper, stored as a list of strings.
-
-
Constructor Details
-
TWrapper
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
Returns the raw content of the wrapper.- Returns:
- An ArrayList of strings representing the raw content.
-
getType
Returns the type of the wrapper.- Returns:
- The WrapperType of the wrapper.
-