| Package | org.antlr.runtime |
| Interface | public interface Token |
| Implementors | CommonToken, CommonTokenStream, Lexer |
| Property | Defined 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 | ||
| channel | property |
channel:int [read-write]Implementation
public function get channel():int
public function set channel(value:int):void
| charPositionInLine | property |
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
| inputStream | property |
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
| line | property |
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
| text | property |
text:String [read-write]Get the text of the token
Implementation public function get text():String
public function set text(value:String):void
| tokenIndex | property |
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
| type | property |
type:int [read-write]Implementation
public function get type():int
public function set type(value:int):void