Class AptParser.Table

    • Constructor Detail

      • Table

        Table​(int indent,
              java.lang.String firstLine)
        throws AptParseException
        Constructor.
        Parameters:
        indent - indent.
        firstLine - the first line.
        Throws:
        AptParseException - AptParseException
    • Method Detail

      • parseJustification

        private int[] parseJustification​(java.lang.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​(java.lang.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.