Package org.asciidoctor.extension
Interface PreprocessorReader
-
- All Superinterfaces:
Reader
- All Known Implementing Classes:
PreprocessorReaderImpl
public interface PreprocessorReader extends Reader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Document
document()
Deprecated.Please usegetDocument()
Document
getDocument()
void
push_include(java.lang.String data, java.lang.String file, java.lang.String path, int lineNumber, java.util.Map<java.lang.String,java.lang.Object> attributes)
Deprecated.UsepushInclude(String, String, String, int, Map)
instead.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.-
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 Detail
-
push_include
@Deprecated void push_include(java.lang.String data, java.lang.String file, java.lang.String path, int lineNumber, java.util.Map<java.lang.String,java.lang.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(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 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 Document document()
Deprecated.Please usegetDocument()
- Returns:
- Document representation.
-
getDocument
Document getDocument()
- Returns:
- Document representation.
-
-