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
ConstructorsModifierConstructorDescriptionprotectedCategory(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, rebuildWithContextMethods 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:WikiTextNodeHook for an AST visitor.- Specified by:
acceptin classWikiTextNode- Type Parameters:
T- Whatever the visitor produces.- Parameters:
visitor- The visitor doing the visitor.- Returns:
- Whatever the visitor produced.
-