Skip to content

Latest commit

 

History

History
174 lines (101 loc) · 3.23 KB

jsonhandler.md

File metadata and controls

174 lines (101 loc) · 3.23 KB

assemblyscript-json / JSONHandler

Class: JSONHandler

Extend from this class to handle events from parser. Default implementation traverses whole object tree and does nothing.

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

+ new JSONHandler(): JSONHandler

Returns: JSONHandler

Methods

popArray

popArray(): void

Returns: void

Defined in: decoder.ts:22


popObject

popObject(): void

Returns: void

Defined in: decoder.ts:28


pushArray

pushArray(name: string): bool

Parameters:

Name Type
name string

Returns: bool

Defined in: decoder.ts:18


pushObject

pushObject(name: string): bool

Parameters:

Name Type
name string

Returns: bool

Defined in: decoder.ts:24


setBoolean

setBoolean(name: string, value: bool): void

Parameters:

Name Type
name string
value bool

Returns: void

Defined in: decoder.ts:10


setFloat

setFloat(name: string, value: number): void

Parameters:

Name Type
name string
value number

Returns: void

Defined in: decoder.ts:16


setInteger

setInteger(name: string, value: number): void

Parameters:

Name Type
name string
value number

Returns: void

Defined in: decoder.ts:14


setNull

setNull(name: string): void

Parameters:

Name Type
name string

Returns: void

Defined in: decoder.ts:12


setString

setString(name: string, value: string): void

Parameters:

Name Type
name string
value string

Returns: void

Defined in: decoder.ts:8