All Implemented Interfaces:
WikiTextElement

public class IndentedBlock extends WikiTextParentNode implements WikiTextElement
An indented block.
WikiText: : text
Text can be indented more than once, with one level per :.
One level - : One
Two levels - :: Two
... etc.
  • Constructor Details

    • IndentedBlock

      public IndentedBlock(Integer level, List<WikiTextNode> content)
      Constructs the indented block node.
      Parameters:
      level - The level of indentation.
      content - The child nodes.
  • 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.
    • getAttributes

      public List<NodeAttribute> getAttributes()
      Description copied from class: WikiTextNode
      Base case for getting element attributes. Most nodes have no attributes
      Overrides:
      getAttributes in class WikiTextNode
      Returns:
      Attributes