Class DocxToAsciiDoc.CommentRecorder
java.lang.Object
pro.verron.asciidoc.docx.DocxToAsciiDoc.CommentRecorder
- Enclosing class:
DocxToAsciiDoc
Tracks comment ranges in the document and produces
MacroBlock
representations with start/end positions.-
Method Summary
Modifier and TypeMethodDescriptionall()Returns all recorded comments asMacroBlockinstances, in document order.voidclose(BigInteger id, int blockEnd, int lineEnd) Closes the comment range matching the given ID.voidopen(BigInteger id, int blockStart, int lineStart) Opens a comment range at the given position.
-
Method Details
-
open
Opens a comment range at the given position.- Parameters:
id- the unique identifier for the commentblockStart- the starting block positionlineStart- the starting inline position
-
close
Closes the comment range matching the given ID.- Parameters:
id- the unique identifier of the commentblockEnd- the ending block positionlineEnd- the ending inline position- Throws:
IllegalStateException- if the ID does not match the last opened comment
-
all
Returns all recorded comments asMacroBlockinstances, in document order.- Returns:
- the comment macro blocks
-