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