private class AptParser.Table extends AptParser.Block
indent, text, textLength, type| Constructor and Description |
|---|
Table(int indent,
java.lang.String firstLine)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private int[] |
parseJustification(java.lang.String jline,
int lineLength)
Parse a table justification line.
|
void |
traverse()
Parse the block.
|
private boolean |
traverseRow(java.lang.StringBuilder[] cells,
boolean[] headers,
int[] justification)
Traverse a table row.
|
getIndent, getType, skipFromLeftToRightBracket, skipLeadingBullets, skipSpaceFrom, traverseText, traverseTextpublic Table(int indent,
java.lang.String firstLine)
throws AptParseException
indent - indent.firstLine - the first line.AptParseException - AptParseExceptionpublic void traverse()
throws AptParseException
traverse in class AptParser.BlockAptParseException - if something goes wrong.private int[] parseJustification(java.lang.String jline,
int lineLength)
throws AptParseException
jline - the justification line.lineLength - the length of the line. Must be > 2.AptParseException - if something goes wrong.private boolean traverseRow(java.lang.StringBuilder[] cells,
boolean[] headers,
int[] justification)
throws AptParseException
cells - The table cells.headers - true for header cells.justification - the justification for each cell.AptParseException - if something goes wrong.