in doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java [680:742]
private void traverseSection(int level) throws AptParseException {
if (block == null) {
return;
}
int type = SECTION1 + level;
expectedBlock(type);
switch (level) {
case 0:
sink.section1();
break;
case 1:
sink.section2();
break;
case 2:
sink.section3();
break;
case 3:
sink.section4();
break;
case 4:
sink.section5();
break;
default:
break;
}
block.traverse();
nextBlock();
traverseSectionBlocks();
while (block != null) {
if (block.getType() <= type) {
break;
}
traverseSection(level + 1);
}
switch (level) {
case 0:
sink.section1_();
break;
case 1:
sink.section2_();
break;
case 2:
sink.section3_();
break;
case 3:
sink.section4_();
break;
case 4:
sink.section5_();
break;
default:
break;
}
}