ja:tutorial:reflection
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| ja:tutorial:reflection [2022/08/13 09:54] – created skytomo | ja:tutorial:reflection [2022/08/13 09:57] (current) – [Records] (英語)を追加 skytomo | ||
|---|---|---|---|
| Line 18: | Line 18: | ||
| cls = Identifier.class; | cls = Identifier.class; | ||
| - | // 次に、Identifier.getNamespace へのメソッド ハンドルを作成します: | + | // 次に、Identifier.getNamespace へのメソッドハンドルを作成します: |
| MethodHandles.Lookup lookup = MethodHandles.publicLookup(); | MethodHandles.Lookup lookup = MethodHandles.publicLookup(); | ||
| MethodHandle namespaceGetter = lookup.findVirtual(cls, | MethodHandle namespaceGetter = lookup.findVirtual(cls, | ||
| Line 41: | Line 41: | ||
| その結果、リフレクションを持つバニラクラスのレコードコンポーネントを見つけることができません。 | その結果、リフレクションを持つバニラクラスのレコードコンポーネントを見つけることができません。 | ||
| - | [[https:// | + | [[https:// |
| - | さらに、proguard は、(メソッドからではなく)レコードクラスからシグネチャ(一般的な情報を示す)も削除します。 Yarn mappings | + | さらに、proguard は、(メソッドからではなく)レコードクラスから(一般的な情報を示す)シグネチャも削除します。 Yarn のマッピングは、これらのクラスのシグネチャマッピングを定義します。 これは、[[https:// |
ja/tutorial/reflection.1660384442.txt.gz · Last modified: 2022/08/13 09:54 by skytomo