Package org.asciidoctor.extension
Interface PreprocessorReader
- All Superinterfaces:
Reader
- All Known Implementing Classes:
PreprocessorReaderImpl
-
Method Summary
Modifier and TypeMethodDescriptiondocument()
Deprecated.void
Deprecated.UsepushInclude(String, String, String, int, Map)
instead.void
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, getLineno, getLineNumber, hasMoreLines, isNextLineEmpty, lines, peekLine, peekLines, read, readLine, readLines, restoreLine, restoreLines, terminate
-
Method Details
-
push_include
@Deprecated void push_include(String data, String file, String path, int lineNumber, Map<String, Object> attributes) Deprecated.UsepushInclude(String, String, String, int, Map)
instead.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 anIncludeProcessor
to add content read from the target specified.- Parameters:
data
- content to pushfile
- representation of name of the included file. Does not need to existspath
- representation of path of the included file. Does not need to existslineNumber
- line number of the first line of the included contentattributes
- additional attributes to pass
-
pushInclude
void pushInclude(String data, String file, String path, int lineNumber, Map<String, 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 anIncludeProcessor
to add content read from the target specified.- Parameters:
data
- content to pushfile
- representation of name of the included file. Does not need to existspath
- representation of path of the included file. Does not need to existslineNumber
- line number of the first line of the included contentattributes
- additional attributes to pass
-
document
Deprecated.Please usegetDocument()
- Returns:
- Document representation.
-
getDocument
Document getDocument()- Returns:
- Document representation.
-
getDocument()