public class ANTLRFileStream extends ANTLRStringStream
Modifier and Type | Field and Description |
---|---|
protected String |
fileName |
charPositionInLine, data, lastMarker, line, markDepth, markers, n, name, p
EOF
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
IOException
public ANTLRFileStream(String fileName, String encoding) throws IOException
IOException
public void load(String fileName, String encoding) throws IOException
IOException
public String getSourceName()
IntStream
getSourceName
in interface IntStream
getSourceName
in class ANTLRStringStream
Copyright © 2020. All rights reserved.