Class AbstractFatherBlock

java.lang.Object
org.apache.maven.doxia.module.twiki.parser.AbstractFatherBlock
All Implemented Interfaces:
Block
Direct Known Subclasses:
BoldBlock, ItalicBlock, ListBlock, ListItemBlock, MonospaceBlock, ParagraphBlock, SectionBlock, TableBlock, TableCellBlock, TableCellHeaderBlock, TableRowBlock, VerbatimBlock

abstract class AbstractFatherBlock extends Object implements Block
Generic Block for the Block that have child blocks.
  • Field Details

  • Constructor Details

    • AbstractFatherBlock

      AbstractFatherBlock(Block[] childBlocks)
      Creates the AbstractFatherBlock.
      Parameters:
      childBlocks - child blocks
  • Method Details

    • before

      abstract void before(Sink sink)
      method called before traversing the childs
      Parameters:
      sink - a sink to fill
    • after

      abstract void after(Sink sink)
      method called after traversing the childs
      Parameters:
      sink - a sink to fill
    • traverse

      public final void traverse(Sink sink)
      Traverse the block
      Specified by:
      traverse in interface Block
      Parameters:
      sink - the sink that travers
    • getBlocks

      public final Block[] getBlocks()
      Returns the childBlocks.
      Returns:
      Block[] with the childBlocks.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      a int.