インタフェースjava.lang.classfile.constantpool.ConstantPoolBuilderの
使用
ConstantPoolBuilderPREVIEWを使用するパッケージ
パッケージ
説明
クラス・ファイルの解析、生成および変換ライブラリを提供します。
java.lang.classfilePREVIEWライブラリのクラス・ファイル定数プール・エントリを記述するインタフェースを提供します。-
java.lang.classfilePREVIEWでのConstantPoolBuilderPREVIEWの使用
修飾子と型メソッド説明BufWriter.constantPool()このバッファに関連付けられた定数プール・ビルダーを返します。ClassFileBuilder.constantPool()このビルダーに関連付けられた定数プール・ビルダーを返します。ConstantPoolBuilderPREVIEW型のパラメータを持つjava.lang.classfilePREVIEWのメソッド修飾子と型メソッド説明byte[]ClassFile.build(ClassEntryPREVIEW thisClassEntry, ConstantPoolBuilderPREVIEW constantPool, Consumer<? super ClassBuilderPREVIEW> handler) 指定された定数プール・ビルダーを使用して、クラス・ファイルをバイト配列に作成します。default voidClassFile.buildTo(Path path, ClassEntryPREVIEW thisClassEntry, ConstantPoolBuilderPREVIEW constantPool, Consumer<? super ClassBuilderPREVIEW> handler) 指定された定数プール・ビルダーを使用して、クラス・ファイルをファイルに作成します。 -
java.lang.classfile.constantpoolPREVIEWでのConstantPoolBuilderPREVIEWの使用
修飾子と型メソッド説明static ConstantPoolBuilderPREVIEWConstantPoolBuilder.of()新しい定数プール・ビルダーを返します。static ConstantPoolBuilderPREVIEWConstantPoolBuilder.of(ClassModelPREVIEW classModel) 新しい定数プール・ビルダーを返します。