Package | org.antlr.runtime |
Class | public class ANTLRFileStream |
Inheritance | ANTLRFileStream ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | charPositionInLine : int | ANTLRStringStream | |
![]() | index : int Return the current input symbol index 0..n where n indicates the
last symbol has been read.
| ANTLRStringStream | |
![]() | line : int | ANTLRStringStream | |
![]() | size : int | ANTLRStringStream | |
sourceName : String [read-only]
| ANTLRFileStream |
Property | Defined by | ||
---|---|---|---|
![]() | _charPositionInLine : int = 0 The index of the character relative to the beginning of the line 0..n-1
| ANTLRStringStream | |
![]() | data : String The data being scanned
| ANTLRStringStream | |
_file : File | ANTLRFileStream | ||
![]() | lastMarker : int Track the last mark() call result value for use in rewind().
| ANTLRStringStream | |
![]() | _line : int = 1 line number 1..n within the input
| ANTLRStringStream | |
![]() | _lineDelimiter : String | ANTLRStringStream | |
![]() | markDepth : int = 0 tracks how deep mark() calls are nested
| ANTLRStringStream | |
![]() | markers : Array A list of CharStreamState objects that tracks the stream state
values line, charPositionInLine, and p that can change as you
move through the input stream.
| ANTLRStringStream | |
![]() | n : int How many characters are actually in the buffer
| ANTLRStringStream | |
![]() | p : int = 0 0..n-1 index into string of next char
| ANTLRStringStream | |
![]() | _sourceName : String | ANTLRStringStream |
Method | Defined by | ||
---|---|---|---|
ANTLRFileStream(file:File, encoding:String = null)
| ANTLRFileStream | ||
![]() |
consume():void
| ANTLRStringStream | |
![]() |
LA(i:int):int
| ANTLRStringStream | |
load(file:File, encoding:String = null):void
| ANTLRFileStream | ||
![]() |
LT(i:int):int
| ANTLRStringStream | |
![]() |
mark():int
| ANTLRStringStream | |
![]() |
release(marker:int):void
| ANTLRStringStream | |
![]() |
reset():void
Reset the stream so that it's in the same state it was
when the object was created xceptthe data array is not
touched.
| ANTLRStringStream | |
![]() |
rewind():void
| ANTLRStringStream | |
![]() |
rewindTo(m:int):void
| ANTLRStringStream | |
![]() |
seek(index:int):void
consume() ahead until p==index; can't just set p=index as we must
update line and charPositionInLine.
| ANTLRStringStream | |
![]() |
substring(start:int, stop:int):String
| ANTLRStringStream |
_file | property |
protected var _file:File
sourceName | property |
sourceName:String
[read-only]Implementation
public function get sourceName():String
ANTLRFileStream | () | constructor |
public function ANTLRFileStream(file:File, encoding:String = null)
Parameters
file:File |
|
encoding:String (default = null )
|
load | () | method |
public function load(file:File, encoding:String = null):void
Parameters
file:File |
|
encoding:String (default = null )
|