public class ANTLRFileStream extends ANTLRStringStream
| Modifier and Type | Field and Description |
|---|---|
protected String |
fileName |
charPositionInLine, data, lastMarker, line, markDepth, markers, n, name, pEOF| Constructor and Description |
|---|
ANTLRFileStream(String fileName) |
ANTLRFileStream(String fileName,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
String |
getSourceName()
Where are you getting symbols from? Normally, implementations will
pass the buck all the way to the lexer who can ask its input stream
for the file name or whatever.
|
void |
load(String fileName,
String encoding) |
protected String fileName
public ANTLRFileStream(String fileName) throws IOException
IOExceptionpublic ANTLRFileStream(String fileName, String encoding) throws IOException
IOExceptionpublic void load(String fileName, String encoding) throws IOException
IOExceptionpublic String getSourceName()
IntStreamgetSourceName in interface IntStreamgetSourceName in class ANTLRStringStreamCopyright © 1992-2013 ANTLR. All Rights Reserved.