סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > ASTNode
מחלקה ASTNode
מחלקה לצומת AST. מומלץ להשתמש באחת מהשיטות של createNode במקום ליצור צומת באופן ישיר.
Signature:
export declare class ASTNode
יצרנים
מאפיינים
נכס |
גורמי שינוי |
סוג |
תיאור |
NAVIGATE_ALL_FIELDS |
static |
בוליאני |
צריך להזין את הערך True כדי לנווט לכל השדות. הערך False כדי לנווט רק לשדות שאפשר ללחוץ עליהם. |
שיטות
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-21 (שעון UTC)."],[[["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."]]],[]]