GODPAPER | All Packages | All Classes | Index | Frames No Frames |
PGNTokenizer

Package | com.godpaper.as3.serialization
Class | public class PGNTokenizer
Inheritance | PGNTokenizer Object

PGNTokenizer.as class.

Public Methods

| Method | Defined By
--- | --- | ---
|  | PGNTokenizer(s:String, strict:Boolean) Constructs a new PGNDecoder to parse a PGN string into a native object. | PGNTokenizer
|  | getNextToken():PGNToken Gets the next token in the input sting and advances the character to the next character after the token | PGNTokenizer
|  | parseError(message:String):void Raises a parsing error with a specified message, tacking on the error location and the original string. | PGNTokenizer
|  | unescapeString(input:String):String Convert all JavaScript escape characters into normal characters | PGNTokenizer

Constructor Detail

PGNTokenizer | () | Constructor

`public function PGNTokenizer(s:String, strict:Boolean)`

Constructs a new PGNDecoder to parse a PGN string into a native object.

Parameters

| `s:String` — The PGN string to be converted into a native object
| `strict:Boolean`

Method Detail

getNextToken | () | method

`public function getNextToken():PGNToken`

Gets the next token in the input sting and advances the character to the next character after the token

Returns

| `PGNToken`

parseError | () | method |

`public final function parseError(message:String):void`

Raises a parsing error with a specified message, tacking on the error location and the original string.

Parameters

| `message:String` — The message indicating why the error occurred

unescapeString | () | method |

`public function unescapeString(input:String):String`

Convert all JavaScript escape characters into normal characters

Parameters

| `input:String` — The input string to convert

Returns

| `String` — Original string with escape characters replaced by real characters

Thu Jan 16 2014, 01:11 PM +08:00