Blockly は 2025 年 11 月 10 日に Raspberry Pi Foundation に移行しました。ブログ投稿とよくある質問をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >名前 >(コンストラクタ)
Names.(constructor)
Names クラスの新しいインスタンスを作成します。
署名:
constructor(reservedWordsList: string, opt_variablePrefix?: string);
パラメータ
| パラメータ |
型 |
説明 |
| reservedWordsList |
文字列 |
言語の名前として使用できない単語をカンマで区切った文字列(例: 'new,if,this,...')。 |
| opt_variablePrefix |
文字列 |
(省略可)一部の言語には「$」が必要ですすべての変数名の前に名前空間を付けます(プロシージャ名は使用できません)。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],["The `Names` class constructor creates a new instance. It takes two parameters: `reservedWordsList`, a comma-separated string of illegal words, and `opt_variablePrefix`, an optional string for languages needing a prefix for variable names. The constructor initializes the class with these reserved words and optional prefix to manage and validate names.\n"]]