封鎖 >ASTNode
ASTNode 類別
AST 節點的類別。建議您使用其中一個 createNode 方法,而不要直接建立節點。
Signature:
export declare class ASTNode
建構函式
屬性
方法
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-21 (世界標準時間)。
[null,null,["上次更新時間:2024-08-21 (世界標準時間)。"],[[["The `ASTNode` class represents a node in the Abstract Syntax Tree (AST) of Blockly blocks and provides methods to navigate and manipulate the tree."],["It offers static methods for creating AST nodes for various Blockly components like blocks, fields, inputs, connections, buttons, stacks, and workspaces."],["`ASTNode` instances store location information, allowing retrieval of the associated Blockly element and its type."],["Navigation methods like `next()`, `prev()`, `in()`, and `out()` enable traversal of the AST structure relative to the current node."],["The `getLocation()` method retrieves the underlying Blockly element, while `getType()` identifies the node's type within the AST."]]],[]]