Property | Defined By | ||
---|---|---|---|
type : int
The type of the token. | JSONToken | ||
value : Object
The value of the token
| JSONToken |
Method | Defined By | ||
---|---|---|---|
JSONToken(type:int = -1, value:Object = null)
Creates a new JSONToken with a specific token type and value. | JSONToken | ||
[static]
Factory method to create instances. | JSONToken |
type | property |
public var type:int
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
The type of the token.
value | property |
public var value:Object
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
The value of the token
JSONToken | () | Constructor |
public function JSONToken(type:int = -1, value:Object = null)
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
Creates a new JSONToken with a specific token type and value.
Parameterstype:int (default = -1 ) — The JSONTokenType of the token
| |
value:Object (default = null ) — The value of the token
|
create | () | method |
public static function create(type:int = -1, value:Object = null):JSONToken
Factory method to create instances. Because we don't need more than one instance of a token at a time, we can always use the same instance to improve performance and reduce memory consumption during decoding.
Parameters
type:int (default = -1 )
| |
value:Object (default = null )
|
JSONToken |
token | Constant |