Class PreprocessorReaderImpl

    • Constructor Detail

      • PreprocessorReaderImpl

        public PreprocessorReaderImpl​(org.jruby.runtime.builtin.IRubyObject rubyNode)
    • 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 an IncludeProcessor to add content read from the target specified.
        Specified by:
        push_include in interface PreprocessorReader
        Parameters:
        data - content to push
        file - representation of name of the included file. Does not need to exists
        path - representation of path of the included file. Does not need to exists
        lineNumber - line number of the first line of the included content
        attributes - 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 an IncludeProcessor to add content read from the target specified.
        Specified by:
        pushInclude in interface PreprocessorReader
        Parameters:
        data - content to push
        file - representation of name of the included file. Does not need to exists
        path - representation of path of the included file. Does not need to exists
        lineNumber - line number of the first line of the included content
        attributes - additional attributes to pass