Packageorg.antlr.runtime
Interfacepublic interface Token
ImplementorsCommonToken, CommonTokenStream, Lexer



Public Properties
 PropertyDefined by
  channel : int
Token
  charPositionInLine : int
The index of the first character relative to the beginning of the line 0..n-1
Token
  inputStream : CharStream
From what character stream was this token created? You don't have to implement but it's nice to know where a Token comes from if you have include files etc...
Token
  line : int
The line number on which this token was matched; line=1..n
Token
  text : String
Get the text of the token
Token
  tokenIndex : int
An index from 0..n-1 of the token object in the input stream.
Token
  type : int
Token
Property detail
channelproperty
channel:int  [read-write]Implementation
    public function get channel():int
    public function set channel(value:int):void
charPositionInLineproperty 
charPositionInLine:int  [read-write]

The index of the first character relative to the beginning of the line 0..n-1

Implementation
    public function get charPositionInLine():int
    public function set charPositionInLine(value:int):void
inputStreamproperty 
inputStream:CharStream  [read-write]

From what character stream was this token created? You don't have to implement but it's nice to know where a Token comes from if you have include files etc... on the input.

Implementation
    public function get inputStream():CharStream
    public function set inputStream(value:CharStream):void
lineproperty 
line:int  [read-write]

The line number on which this token was matched; line=1..n

Implementation
    public function get line():int
    public function set line(value:int):void
textproperty 
text:String  [read-write]

Get the text of the token

Implementation
    public function get text():String
    public function set text(value:String):void
tokenIndexproperty 
tokenIndex:int  [read-write]

An index from 0..n-1 of the token object in the input stream. This must be valid in order to use the ANTLRWorks debugger.

Implementation
    public function get tokenIndex():int
    public function set tokenIndex(value:int):void
typeproperty 
type:int  [read-write]Implementation
    public function get type():int
    public function set type(value:int):void