コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >名前 >(コンストラクタ)
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。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 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"]]