Class CategoryList.Category

All Implemented Interfaces:
WikiTextElement
Enclosing class:
CategoryList

public static class CategoryList.Category extends WikiTextParentNode
Categories contained within the list. This is primarily used for XML output.
  • Constructor Details

    • Category

      protected Category(List<WikiTextNode> content)
      Creates one category node.
      Parameters:
      content - The contents of the category. (Should be a Text node)
  • Method Details

    • accept

      public <T> Optional<T> accept(WikiTextASTVisitor<T> visitor)
      Description copied from class: WikiTextNode
      Hook for an AST visitor.
      Specified by:
      accept in class WikiTextNode
      Type Parameters:
      T - Whatever the visitor produces.
      Parameters:
      visitor - The visitor doing the visitor.
      Returns:
      Whatever the visitor produced.