CharStream
, IntStream
public class ANTLRFileStream extends ANTLRStringStream
Modifier and Type | Field | Description |
---|---|---|
protected String |
fileName |
charPositionInLine, data, lastMarker, line, markDepth, markers, n, name, p
EOF
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
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 © 1992–2018 ANTLR. All rights reserved.