public class PreprocessorReaderImpl extends ReaderImpl implements PreprocessorReader
rubyNode, runtime| Constructor and Description |
|---|
PreprocessorReaderImpl(org.jruby.runtime.builtin.IRubyObject rubyNode) |
| Modifier and Type | Method and 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.
|
advance, getDir, getFile, getLineno, getLineNumber, hasMoreLines, isNextLineEmpty, lines, peekLine, peekLines, read, readLine, readLines, restoreLine, restoreLines, terminategetBoolean, getInt, getList, getProperty, getRubyObject, getRubyProperty, getRuntime, getString, getSymbol, setBoolean, setInt, setRubyProperty, setString, setSymbol, toJava, toJavaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadvance, getDir, getFile, getLineno, getLineNumber, hasMoreLines, isNextLineEmpty, lines, peekLine, peekLines, read, readLine, readLines, restoreLine, restoreLines, terminatepublic PreprocessorReaderImpl(org.jruby.runtime.builtin.IRubyObject rubyNode)
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)
PreprocessorReaderIncludeProcessor to add content
read from the target specified.push_include in interface PreprocessorReaderdata - 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 passpublic 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)
PreprocessorReaderIncludeProcessor to add content
read from the target specified.pushInclude in interface PreprocessorReaderdata - 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@Deprecated public Document document()
document in interface PreprocessorReaderpublic Document getDocument()
getDocument in interface PreprocessorReader