Packagecom.adobe.linguistics.utils
Classpublic class Token
InheritanceToken Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

A Token is an occurrence of a word in a block of text. It consists of the start and end offset of the word in the block of text. The start and end offsets permit applications to re-associate a token with its source text, e.g., to display highlighted misspelled word in a block of text.



Public Properties
 PropertyDefined By
  first : int
Return the start offset in the source text.
Token
  last : int
Return the end offset in the source text.
Token
Public Methods
 MethodDefined By
  
Token(inFirst:int, inLast:int)
The Token class.
Token
Property Detail
firstproperty
first:int

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

Return the start offset in the source text.


Implementation
    public function get first():int
    public function set first(value:int):void
lastproperty 
last:int

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

Return the end offset in the source text.


Implementation
    public function get last():int
    public function set last(value:int):void
Constructor Detail
Token()Constructor
public function Token(inFirst:int, inLast:int)

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

The Token class. Constructs a Token with first and last offsets. .

Parameters
inFirst:int — A int type input to point start offset in the source text.
 
inLast:int — A int type input to point end offset in the source text.