private abstract class AptParser.Block
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
indent
indent.
|
protected java.lang.String |
text
text.
|
protected int |
textLength
textLength.
|
protected int |
type
type.
|
| Constructor and Description |
|---|
Block(int type,
int indent)
Constructor.
|
Block(int type,
int indent,
java.lang.String firstLine)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndent()
Return the block indent.
|
int |
getType()
Return the block type.
|
protected int |
skipFromLeftToRightBracket(int i)
Skip brackets.
|
protected int |
skipLeadingBullets()
Skip spaces.
|
protected int |
skipSpaceFrom(int i)
Skip spaces.
|
abstract void |
traverse()
Parse the block.
|
protected void |
traverseText(int begin)
Traverse the text.
|
protected void |
traverseText(int begin,
int end)
Traverse the text.
|
protected int type
protected int indent
protected java.lang.String text
protected int textLength
public Block(int type,
int indent)
throws AptParseException
type - the block type.indent - indent.AptParseException - AptParseExceptionpublic Block(int type,
int indent,
java.lang.String firstLine)
throws AptParseException
type - type.indent - indent.firstLine - the first line.AptParseException - AptParseExceptionpublic final int getType()
public final int getIndent()
public abstract void traverse()
throws AptParseException
AptParseException - if something goes wrong.protected void traverseText(int begin)
throws AptParseException
begin - offset.AptParseException - if something goes wrong.protected void traverseText(int begin,
int end)
throws AptParseException
begin - offset.end - offset.AptParseException - if something goes wrong.protected int skipLeadingBullets()
protected int skipFromLeftToRightBracket(int i)
throws AptParseException
i - offset.AptParseException - if something goes wrong.protected final int skipSpaceFrom(int i)
i - offset.