インタフェース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

PoolEntryは、JavaプラットフォームのプレビューAPIです。
プレビュー機能が有効な場合のみ、プログラムでPoolEntryを使用できます。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
クラス・ファイルの定数プール内のエントリをモデル化します。
シール済クラス階層グラフ:
PoolEntryのシール済クラス階層グラフPoolEntryのシール済クラス階層グラフ
導入されたバージョン:
22
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    このエントリの元の定数プールを返します。
    int
    このエントリに対応する定数プール内のインデックスを返します。
    byte
    tag()
    このエントリのタイプを説明する定数プール・タグを返します。
    int
    このエントリが消費する定数プール・スロットの数を返します。

    インタフェースjava.lang.classfile.WritableElementPREVIEWで宣言されたメソッド

    writeTo
  • メソッドの詳細

    • constantPool

      ConstantPoolPREVIEW constantPool()
      このエントリの元の定数プールを返します。
      戻り値:
      このエントリの元の定数プール
    • tag

      byte tag()
      このエントリのタイプを説明する定数プール・タグを返します。
      戻り値:
      このエントリのタイプを説明する定数プール・タグ
    • index

      int index()
      このエントリに対応する定数プール内のインデックスを返します。
      戻り値:
      このエントリに対応する定数プール内のインデックス
    • width

      int width()
      このエントリが消費する定数プール・スロットの数を返します。
      戻り値:
      このエントリが消費する定数プール・スロットの数