Class PreprocessorReaderImpl

All Implemented Interfaces:
PreprocessorReader, Reader

public class PreprocessorReaderImpl extends ReaderImpl implements PreprocessorReader
  • 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: 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(String data, String file, String path, int lineNumber, Map<String,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
    • document

      @Deprecated public Document document()
      Deprecated.
      Specified by:
      document in interface PreprocessorReader
      Returns:
      Document representation.
    • getDocument

      public Document getDocument()
      Specified by:
      getDocument in interface PreprocessorReader
      Returns:
      Document representation.