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
*

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Since
  • 2.1.0

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