Packageorg.antlr.runtime
Classpublic class ANTLRFileStream
InheritanceANTLRFileStream Inheritance ANTLRStringStream



Public Properties
 PropertyDefined by
 InheritedcharPositionInLine : int
ANTLRStringStream
 Inheritedindex : int
Return the current input symbol index 0..n where n indicates the last symbol has been read.
ANTLRStringStream
 Inheritedline : int
ANTLRStringStream
 Inheritedsize : int
ANTLRStringStream
  sourceName : String
[read-only]
ANTLRFileStream
Protected Properties
 PropertyDefined by
 Inherited_charPositionInLine : int = 0
The index of the character relative to the beginning of the line 0..n-1
ANTLRStringStream
 Inheriteddata : String
The data being scanned
ANTLRStringStream
  _file : File
ANTLRFileStream
 InheritedlastMarker : int
Track the last mark() call result value for use in rewind().
ANTLRStringStream
 Inherited_line : int = 1
line number 1..n within the input
ANTLRStringStream
 Inherited_lineDelimiter : String
ANTLRStringStream
 InheritedmarkDepth : int = 0
tracks how deep mark() calls are nested
ANTLRStringStream
 Inheritedmarkers : 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
 Inheritedn : int
How many characters are actually in the buffer
ANTLRStringStream
 Inheritedp : int = 0
0..n-1 index into string of next char
ANTLRStringStream
 Inherited_sourceName : String
ANTLRStringStream
Public Methods
 MethodDefined by
  
ANTLRFileStream(file:File, encoding:String = null)
ANTLRFileStream
 Inherited
consume():void
ANTLRStringStream
 Inherited
LA(i:int):int
ANTLRStringStream
  
load(file:File, encoding:String = null):void
ANTLRFileStream
 Inherited
LT(i:int):int
ANTLRStringStream
 Inherited
mark():int
ANTLRStringStream
 Inherited
release(marker:int):void
ANTLRStringStream
 Inherited
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
 Inherited
rewind():void
ANTLRStringStream
 Inherited
rewindTo(m:int):void
ANTLRStringStream
 Inherited
seek(index:int):void
consume() ahead until p==index; can't just set p=index as we must update line and charPositionInLine.
ANTLRStringStream
 Inherited
substring(start:int, stop:int):String
ANTLRStringStream
Property detail
_fileproperty
protected var _file:File
sourceNameproperty 
sourceName:String  [read-only]Implementation
    public function get sourceName():String
Constructor detail
ANTLRFileStream()constructor
public function ANTLRFileStream(file:File, encoding:String = null)Parameters
file:File
 
encoding:String (default = null)
Method detail
load()method
public function load(file:File, encoding:String = null):voidParameters
file:File
 
encoding:String (default = null)