インタフェースPoolEntry
- すべてのスーパー・インタフェース:
ClassFileElementPREVIEW,WritableElementPREVIEW<PoolEntryPREVIEW>
- 既知のすべてのサブインタフェース:
AnnotationConstantValueEntryPREVIEW,ClassEntryPREVIEW,ConstantDynamicEntryPREVIEW,ConstantValueEntryPREVIEW,DoubleEntryPREVIEW,DynamicConstantPoolEntryPREVIEW,FieldRefEntryPREVIEW,FloatEntryPREVIEW,IntegerEntryPREVIEW,InterfaceMethodRefEntryPREVIEW,InvokeDynamicEntryPREVIEW,LoadableConstantEntryPREVIEW,LongEntryPREVIEW,MemberRefEntryPREVIEW,MethodHandleEntryPREVIEW,MethodRefEntryPREVIEW,MethodTypeEntryPREVIEW,ModuleEntryPREVIEW,NameAndTypeEntryPREVIEW,PackageEntryPREVIEW,StringEntryPREVIEW,Utf8EntryPREVIEW
public sealed interface PoolEntry extends WritableElementPREVIEW<PoolEntryPREVIEW> permits AnnotationConstantValueEntryPREVIEW, DynamicConstantPoolEntryPREVIEW, LoadableConstantEntryPREVIEW, MemberRefEntryPREVIEW, ModuleEntryPREVIEW, NameAndTypeEntryPREVIEW, PackageEntryPREVIEW
PoolEntryは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
クラス・ファイルの定数プール内のエントリをモデル化します。
-
メソッドの詳細
-
constantPool
-
tag
byte tag()このエントリのタイプを説明する定数プール・タグを返します。- 戻り値:
- このエントリのタイプを説明する定数プール・タグ
-
index
int index()このエントリに対応する定数プール内のインデックスを返します。- 戻り値:
- このエントリに対応する定数プール内のインデックス
-
width
int width()このエントリが消費する定数プール・スロットの数を返します。- 戻り値:
- このエントリが消費する定数プール・スロットの数
-
PoolEntryを使用できます。