Monster.Types. Node

You can create the instance via the monster namespace new Monster.Types.Node().

Constructor

new Node(valueopt)

A Node Class

Parameters:
NameTypeAttributesDescription
value*<optional>
Since
  • 1.26.0
License
  • AGPLv3

Members

childNodes

Properties
TypeDescription
NodeList

childNodes

Properties
TypeDescription
NodeList

level

Properties
TypeDescription
integer

parent

Properties
TypeDescription
Monster.Types.Node | null

value

Properties
TypeDescription
*

value

Properties
TypeDescription
*

Methods

appendChild(node) → {Monster.Types.Node}

Parameters:
NameTypeDescription
nodeNode
Returns:
Type: 
Monster.Types.Node

hasChild(node) → {Monster.Types.Node}

Parameters:
NameTypeDescription
nodeNode
Returns:
Type: 
Monster.Types.Node

hasChildNodes() → {boolean}

Returns:
Type: 
boolean

removeChild(node) → {Monster.Types.Node}

Parameters:
NameTypeDescription
nodeNode
Returns:
Type: 
Monster.Types.Node

toString() → {string}

Since
  • 1.28.0
Returns:
Type: 
string