Class IncludeFileFinder


  • public final class IncludeFileFinder
    extends java.lang.Object
    IncludeFileFinder implements logic for searching include files.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPath​(java.lang.String path)
      Adds path to the internal collection of paths.
      void addPaths​(java.lang.String paths)
      Adds sequence of paths to the internal collection of paths.
      org.antlr.runtime.ANTLRFileStream openFile​(java.lang.String filename)
      Opens the specified file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IncludeFileFinder

        public IncludeFileFinder()
    • Method Detail

      • addPath

        public void addPath​(java.lang.String path)
        Adds path to the internal collection of paths.
        Parameters:
        path - The path to file.
      • addPaths

        public void addPaths​(java.lang.String paths)
        Adds sequence of paths to the internal collection of paths.
        Parameters:
        paths - The seuqnce of paths in "String with separators" form.
      • openFile

        public org.antlr.runtime.ANTLRFileStream openFile​(java.lang.String filename)
        Opens the specified file.
        Parameters:
        filename - The file to be opened.
        Returns:
        The stream from the specified file.