Class AptParser.Section3
java.lang.Object
org.apache.maven.doxia.module.apt.AptParser.Section3
- Enclosing class:
- AptParser
A Section3 Block.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
indent.protected String
text.protected int
textLength.protected int
type. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Return the block indent.final int
getType()
Return the block type.protected int
skipFromLeftToRightBracket
(int i) Skip brackets.protected int
Skip spaces.protected final int
skipSpaceFrom
(int i) Skip spaces.void
Title()
Start a title.void
Title_()
End a title.void
traverse()
Parse the block.protected void
traverseText
(int begin) Traverse the text.protected void
traverseText
(int begin, int end) Traverse the text.
-
Field Details
-
type
protected int typetype. -
indent
protected int indentindent. -
text
text. -
textLength
protected int textLengthtextLength.
-
-
Method Details
-
Title
public void Title()Start a title. -
Title_
public void Title_()End a title. -
traverse
Parse the block.- Throws:
AptParseException
- if something goes wrong.
-
getType
public final int getType()Return the block type.- Returns:
- int
-
getIndent
public final int getIndent()Return the block indent.- Returns:
- int
-
traverseText
Traverse the text.- Parameters:
begin
- offset.- Throws:
AptParseException
- if something goes wrong.
-
traverseText
Traverse the text.- Parameters:
begin
- offset.end
- offset.- Throws:
AptParseException
- if something goes wrong.
-
skipLeadingBullets
protected int skipLeadingBullets()Skip spaces.- Returns:
- int.
-
skipFromLeftToRightBracket
Skip brackets.- Parameters:
i
- offset.- Returns:
- int.
- Throws:
AptParseException
- if something goes wrong.
-
skipSpaceFrom
protected final int skipSpaceFrom(int i) Skip spaces.- Parameters:
i
- offset.- Returns:
- int.
-