类 ANTLRFileStream
- java.lang.Object
-
- org.antlr.runtime.ANTLRStringStream
-
- org.antlr.runtime.ANTLRFileStream
-
- 所有已实现的接口:
CharStream
,IntStream
public class ANTLRFileStream extends ANTLRStringStream
This is a char buffer stream that is loaded from a file all at once when you construct the object. This looks very much like an ANTLReader or ANTLRInputStream, but it's a special case since we know the exact size of the object to load. We can avoid lots of data copying.
-
-
字段概要
字段 修饰符和类型 字段 说明 protected java.lang.String
fileName
-
从类继承的字段 org.antlr.runtime.ANTLRStringStream
charPositionInLine, data, lastMarker, line, markDepth, markers, n, name, p
-
从接口继承的字段 org.antlr.runtime.CharStream
EOF
-
-
构造器概要
构造器 构造器 说明 ANTLRFileStream(java.lang.String fileName)
ANTLRFileStream(java.lang.String fileName, java.lang.String encoding)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.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(java.lang.String fileName, java.lang.String encoding)
-
-
-
方法详细资料
-
load
public void load(java.lang.String fileName, java.lang.String encoding) throws java.io.IOException
- 抛出:
java.io.IOException
-
getSourceName
public java.lang.String getSourceName()
从接口复制的说明:IntStream
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.- 指定者:
getSourceName
在接口中IntStream
- 覆盖:
getSourceName
在类中ANTLRStringStream
-
-