Capítulo 460 de 859

Chapter 460: ReferenceElementNode

Core Idea

This class is only relevant if the referenced property is array-like. In this case, ReferenceElementNode allows to refer to a specific element inside the data structure via an index.

Key Concepts

  • isReferenceElementNode : boolean (readonly): This flag can be used for type testing.
  • isReferenceElementNode : boolean (readonly): This flag can be used for type testing.
  • referenceNode : ReferenceBaseNode: Similar to ReferenceBaseNode#reference, an additional property references to the current node.
  • referenceNode : ReferenceNode: Similar to ReferenceNode#reference, an additional property references to the current node.

Reference Tables

Constructor

Signature
new ReferenceElementNode( referenceNode : ReferenceNode, indexNode : Node )

Properties

PropertyDescription
.isReferenceElementNode : boolean (readonly)This flag can be used for type testing.
.isReferenceElementNode : boolean (readonly)This flag can be used for type testing.
.referenceNode : ReferenceBaseNodeSimilar to ReferenceBaseNode#reference, an additional property references to the current node.
.referenceNode : ReferenceNodeSimilar to ReferenceNode#reference, an additional property references to the current node.

Methods

MethodDescription
.generateNodeType() : stringThis method is overwritten since the node type is inferred from the uniform type of the reference node.
.generateNodeType() : stringThis method is overwritten since the node type is inferred from the uniform type of the reference node.

Key Takeaways

  1. ReferenceElementNode extends: EventDispatcher → Node → ArrayElementNode
  2. Most relevant properties: isReferenceElementNode, isReferenceElementNode, referenceNode, referenceNode.
  3. Key methods: generateNodeType, generateNodeType.

Connects To