Class Text
java.lang.Object
com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextNode
com.lucaskjaerozhang.wikitext_parser.ast.sections.Text
- All Implemented Interfaces:
WikiTextElement
Plain text that is not formatted in any way.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>
accept
(WikiTextASTVisitor<T> visitor) Hook for an AST visitor.Get the content within the node.Methods inherited from class com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextNode
getAttributes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextElement
getCategories
-
Constructor Details
-
Text
Creates a text node- Parameters:
content
- The text within the node.
-
-
Method Details
-
accept
Description copied from class:WikiTextNode
Hook for an AST visitor.- Specified by:
accept
in classWikiTextNode
- Type Parameters:
T
- Whatever the visitor produces.- Parameters:
visitor
- The visitor doing the visitor.- Returns:
- Whatever the visitor produced.
-
rebuildWithContext
- Overrides:
rebuildWithContext
in classWikiTextNode
-
getContent
Get the content within the node.- Returns:
- The content.
-