Constructor
new Script(options, scriptStruct)
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | Error, warning and debug function references |
scriptStruct |
Object | Script node to process |
- Source:
Members
(readonly) attrib :Object
Provides default `attrib` property to ensure node processing, always returns
current meta values
Type:
- Object
- Source:
attrib
Continues node walking recursion through the current attrib node
- Source:
curKey :String
Curkey property default
Type:
- String
- Source:
(readonly) data :Object
Returns all processed data, including child data, of the this class
Type:
- Object
- Source:
(readonly) details :Object
Provides default `details` property to ensure node processing, always returns
current script details
Type:
- Object
- Source:
details
Stores data pulled from `elem` nodes, creating unique key names if the
current key already exists
- Source:
detailsMap :Number
Holds script details
Type:
- Number
- Source:
(readonly) elem :String
Provides default `elem` property to ensure node processing, always returns
current script id
Type:
- String
- Source:
elem
Processes the element properties of the current script node, normalizing
and storing the data
- Source:
id :String
Script ID property default
Type:
- String
- Source:
(readonly) key :String
Gets the current key for parsing `key` nodes
Type:
- String
- Source:
key
Sets the current key while parsing the script structure
- Source:
options :Object
Merge default options with given options
Type:
- Object
- Source:
out :String
Script output property default
Type:
- String
- Source:
(readonly) output :Object
Returns this scripts output
Type:
- Object
- Source:
output
Updates this scripts output
- Source:
(readonly) table :String
Provides default `table` property to ensure node processing, always returns
current script id
Type:
- String
- Source:
table
Continues enumeration through table node structures
- Source:
Methods
parseStruct(curStruct)
Recursive parsing function, sets the value of this classes properties (if
it exists), or calls the proper processing function, or builds required
child classes for further processing
Parameters:
Name | Type | Description |
---|---|---|
curStruct |
Object | Current node being processed |
- Source: