Packagecom.godpaper.as3.serialization
Classpublic final class PGNToken
InheritancePGNToken Inheritance Object

PGNToken.as class.



Public Properties
 PropertyDefined By
  type : int
The type of the token.
PGNToken
  value : Object
The value of the token
PGNToken
Public Methods
 MethodDefined By
  
PGNToken(type:int = -1, value:Object = null)
Creates a new PGNToken with a specific token type and value.
PGNToken
  
create(type:int = -1, value:Object = null):PGNToken
[static] Factory method to create instances.
PGNToken
Public Constants
 ConstantDefined By
  token : PGNToken
[static] Reusable token instance.
PGNToken
Property Detail
typeproperty
public var type:int

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

The type of the token.

valueproperty 
public var value:Object

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

The value of the token

Constructor Detail
PGNToken()Constructor
public function PGNToken(type:int = -1, value:Object = null)

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

Creates a new PGNToken with a specific token type and value.

Parameters
type:int (default = -1) — The PGNTokenType of the token
 
value:Object (default = null) — The value of the token
Method Detail
create()method
public static function create(type:int = -1, value:Object = null):PGNToken

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)

Returns
PGNToken
Constant Detail
tokenConstant
public static const token:PGNToken

Reusable token instance.

See also