Class PreprocessorReaderImpl
java.lang.Object
org.asciidoctor.jruby.internal.RubyObjectWrapper
org.asciidoctor.jruby.extension.internal.ReaderImpl
org.asciidoctor.jruby.extension.internal.PreprocessorReaderImpl
- All Implemented Interfaces:
PreprocessorReader,Reader
-
Field Summary
Fields inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
rubyNode, runtime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondocument()Deprecated.voidPush source content onto the front of the reader and switch the context based on the file, document-relative path and line information given.voidPush 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 class org.asciidoctor.jruby.extension.internal.ReaderImpl
advance, getDir, getFile, getLineno, getLineNumber, hasMoreLines, isNextLineEmpty, lines, peekLine, peekLines, read, readLine, readLines, restoreLine, restoreLines, terminateMethods inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
getBoolean, getInt, getList, getProperty, getRubyObject, getRubyProperty, getRuntime, getString, getSymbol, setBoolean, setInt, setRubyProperty, setString, setSymbol, toJava, toJavaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.asciidoctor.extension.Reader
advance, getDir, getFile, getLineno, getLineNumber, hasMoreLines, isNextLineEmpty, lines, peekLine, peekLines, read, readLine, readLines, restoreLine, restoreLines, terminate
-
Constructor Details
-
PreprocessorReaderImpl
public PreprocessorReaderImpl(org.jruby.runtime.builtin.IRubyObject rubyNode)
-
-
Method Details
-
push_include
public void push_include(String data, String file, String path, int lineNumber, Map<String, Object> attributes) Description copied from interface:PreprocessorReaderPush 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.- Specified by:
push_includein interfacePreprocessorReader- 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
public void pushInclude(String data, String file, String path, int lineNumber, Map<String, Object> attributes) Description copied from interface:PreprocessorReaderPush 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.- Specified by:
pushIncludein interfacePreprocessorReader- 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.- Specified by:
documentin interfacePreprocessorReader- Returns:
- Document representation.
-
getDocument
- Specified by:
getDocumentin interfacePreprocessorReader- Returns:
- Document representation.
-