Class AptParser.Table

java.lang.Object
org.apache.maven.doxia.module.apt.AptParser.Block
org.apache.maven.doxia.module.apt.AptParser.Table
Enclosing class:
AptParser

private class AptParser.Table extends AptParser.Block
A Table Block.
  • Constructor Details

  • Method Details

    • traverse

      public void traverse() throws AptParseException
      Parse the block.
      Specified by:
      traverse in class AptParser.Block
      Throws:
      AptParseException - if something goes wrong.
    • parseJustification

      private int[] parseJustification(String jline, int lineLength) throws AptParseException
      Parse a table justification line.
      Parameters:
      jline - the justification line.
      lineLength - the length of the line. Must be > 2.
      Returns:
      int[]
      Throws:
      AptParseException - if something goes wrong.
    • traverseRow

      private boolean traverseRow(StringBuilder[] cells, boolean[] headers, int[] justification) throws AptParseException
      Traverse a table row.
      Parameters:
      cells - The table cells.
      headers - true for header cells.
      justification - the justification for each cell.
      Returns:
      boolean
      Throws:
      AptParseException - if something goes wrong.