QueryWrapperOptions

QueryWrapperOptions

Source:

Methods

getChildren(node) → {Array.<object>}

Return an array of children for a node

Parameters:
Name Type Description
node object
Source:
Returns:
Type
Array.<object>

getType(node) → {string}

Return a string representation of the node's type

Parameters:
Name Type Description
node object
Source:
Returns:
Type
string

hasChildren(node) → {boolean}

Return true if the node has children

Parameters:
Name Type Description
node object
Source:
Returns:
Type
boolean

toJSON(node, childrenopt) → {string}

Convert the node back to JSON. This usually just means merging the children back into the node

Parameters:
Name Type Attributes Description
node object
children Array.<object> <optional>
Source:
Returns:
Type
string

toString(node) → {string}

Convert the node to a string

Parameters:
Name Type Description
node object
Source:
Returns:
Type
string