Package org.asciidoctor.extension
Interface PreprocessorReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DocumentgetDocument()voidpushInclude(java.lang.String data, java.lang.String file, java.lang.String path, int lineNumber, java.util.Map<java.lang.String,java.lang.Object> attributes)Push source content onto the front of the reader and switch the context based on the file, document-relative path and line information given.-
Methods inherited from interface org.asciidoctor.extension.Reader
advance, getDir, getFile, getLineNumber, getLines, getSource, getSourceLines, hasMoreLines, isNextLineEmpty, peekLine, peekLines, read, readLine, readLines, restoreLine, restoreLines, terminate
-
-
-
-
Method Detail
-
pushInclude
void pushInclude(java.lang.String data, java.lang.String file, java.lang.String path, int lineNumber, java.util.Map<java.lang.String,java.lang.Object> attributes)Push source content onto the front of the reader and switch the context based on the file, document-relative path and line information given. This method is typically used in anIncludeProcessorto add content read from the target specified.- Parameters:
data- content to pushfile- representation of name of the included file. Does not need to existpath- representation of path of the included file. Does not need to existlineNumber- line number of the first line of the included contentattributes- additional attributes to pass
-
getDocument
Document getDocument()
- Returns:
- Document representation.
-
-