Package ru.ispras.castle.antlr
Class IncludeFileFinder
- java.lang.Object
-
- ru.ispras.castle.antlr.IncludeFileFinder
-
public final class IncludeFileFinder extends java.lang.Object
IncludeFileFinder
implements logic for searching include files.
-
-
Constructor Summary
Constructors Constructor Description IncludeFileFinder()
-
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.
-
-
-
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.
-
-