CharStream, IntStreampublic class ANTLRFileStream extends ANTLRStringStream
| Modifier and Type | Field | Description |
|---|---|---|
protected String |
fileName |
charPositionInLine, data, lastMarker, line, markDepth, markers, n, name, pEOF| Constructor | Description |
|---|---|
ANTLRFileStream(String fileName) |
|
ANTLRFileStream(String fileName,
String encoding) |
| Modifier and Type | Method | 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–2018 ANTLR. All rights reserved.