Class CategoryList.Category
java.lang.Object
com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextNode
com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextParentNode
com.lucaskjaerozhang.wikitext_parser.ast.root.CategoryList.Category
- All Implemented Interfaces:
WikiTextElement
- Enclosing class:
CategoryList
Categories contained within the list. This is primarily used for XML output.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Category
(List<WikiTextNode> content) Creates one category node. -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>
accept
(WikiTextASTVisitor<T> visitor) Hook for an AST visitor.Methods inherited from class com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextParentNode
getCategories, getFieldValuesFromChildren, rebuildWithContext
Methods inherited from class com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextNode
getAttributes
-
Constructor Details
-
Category
Creates one category node.- Parameters:
content
- The contents of the category. (Should be a Text 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.
-