Class: Obj

Obj

new Obj(sourceLine)

Parameters:
Name Type Description
sourceLine number
Source:

Members

lines

Source:

parsed :boolean

Type:
  • boolean
Source:

source :Object

Type:
  • Object
Properties:
Name Type Description
begin number
end number
Source:

value :Object|Array|string|Mixin

Type:
  • Object | Array | string | Mixin
Source:

Methods

(static) empty() → {Obj}

Get an empty Obj already parsed This obj, when parsed, will give `{}`
Source:
Returns:
Type
Obj

execute(context, name) → {*}

Execute and return the result for the parsed Obj
Parameters:
Name Type Description
context Object
name string A string like '<' + description + '>' to be part of a thrown execption
Source:
Throws:
if not parsed
Returns:
Type
*

parse() → {Obj}

Parses the object content and make it ready to execute
Source:
Returns:
itself
Type
Obj

push(line)

Add one more line as the source of the Obj
Parameters:
Name Type Description
line string
Source:
Throws:
if already parsed