インタフェースjava.lang.classfile.constantpool.ClassEntryの
使用
ClassEntryPREVIEWを使用するパッケージ
パッケージ
説明
クラス・ファイルの解析、生成および変換ライブラリを提供します。
java.lang.classfilePREVIEWライブラリのクラス・ファイル属性を記述するインタフェースを提供します。java.lang.classfilePREVIEWライブラリのクラス・ファイル定数プール・エントリを記述するインタフェースを提供します。java.lang.classfilePREVIEWライブラリのコード命令を記述するインタフェースを提供します。-
java.lang.classfilePREVIEWでのClassEntryPREVIEWの使用
修飾子と型メソッド説明ClassReader.readClassEntry(int offset) クラス・ファイル内で指定されたオフセットでインデックスが指定されたクラス・エントリを返します。Superclass.superclassEntry()スーパークラスを返します。ClassModel.thisClass()このクラスの名前を記述する定数プール・エントリを返します。ClassReader.thisClassEntry()クラスの名前を記述する定数プール・エントリを返します。ClassEntryPREVIEW型の引数を持つ型を返すjava.lang.classfilePREVIEWのメソッド修飾子と型メソッド説明ClassModel.interfaces()このクラスによって実装されたインタフェースを返します。Interfaces.interfaces()このクラスのインタフェースを返します。ClassModel.superclass()このクラスのスーパークラス(存在する場合)を返します。ClassReader.superclassEntry()スーパークラスの名前を記述する定数プール・エントリ(存在する場合)を返します。ClassEntryPREVIEW型のパラメータを持つjava.lang.classfilePREVIEWのメソッド修飾子と型メソッド説明default CodeBuilderPREVIEWCodeBuilder.anewarray(ClassEntryPREVIEW classEntry) 新しい参照配列を作成する命令を生成しますbyte[]ClassFile.build(ClassEntryPREVIEW thisClassEntry, ConstantPoolBuilderPREVIEW constantPool, Consumer<? super ClassBuilderPREVIEW> handler) 指定された定数プール・ビルダーを使用して、クラス・ファイルをバイト配列に作成します。default voidClassFile.buildTo(Path path, ClassEntryPREVIEW thisClassEntry, ConstantPoolBuilderPREVIEW constantPool, Consumer<? super ClassBuilderPREVIEW> handler) 指定された定数プール・ビルダーを使用して、クラス・ファイルをファイルに作成します。default CodeBuilderPREVIEWCodeBuilder.checkcast(ClassEntryPREVIEW type) オブジェクトが指定されたタイプかどうかをチェックする命令を生成しますdefault CodeBuilderPREVIEWCodeBuilder.exceptionCatch(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassEntryPREVIEW catchType) 例外表エントリの宣言default CodeBuilderPREVIEWCodeBuilder.instanceOf(ClassEntryPREVIEW target) オブジェクトが指定されたタイプであるかどうかを判断するための命令を生成します。default CodeBuilderPREVIEWCodeBuilder.multianewarray(ClassEntryPREVIEW array, int dims) 新しい多次元配列を作成する命令の生成default CodeBuilderPREVIEWCodeBuilder.new_(ClassEntryPREVIEW clazz) 新規オブジェクトを作成する命令の生成static InterfacesPREVIEWInterfaces.of(ClassEntryPREVIEW... interfaces) InterfacesPREVIEW要素を返します。static SuperclassPREVIEWSuperclass.of(ClassEntryPREVIEW superclassEntry) SuperclassPREVIEW要素を返します。byte[]ClassFile.transform(ClassModelPREVIEW model, ClassEntryPREVIEW newClassName, ClassTransformPREVIEW transform) ClassTransformPREVIEWを使用して、1つのクラス・ファイルを新しいクラス・ファイルに変換します。default ClassBuilderPREVIEWClassBuilder.withInterfaces(ClassEntryPREVIEW... interfaces) このクラスのインタフェースを設定します。default ClassBuilderPREVIEWClassBuilder.withSuperclass(ClassEntryPREVIEW superclassEntry) このクラスのスーパークラスを設定します。ClassEntryPREVIEW型の型引数を持つjava.lang.classfilePREVIEWのメソッド・パラメータ修飾子と型メソッド説明default CodeBuilderPREVIEWCodeBuilder.exceptionCatch(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, Optional<ClassEntryPREVIEW> catchType) 例外表エントリの宣言static InterfacesPREVIEWInterfaces.of(List<ClassEntryPREVIEW> interfaces) InterfacesPREVIEW要素を返します。default ClassBuilderPREVIEWClassBuilder.withInterfaces(List<ClassEntryPREVIEW> interfaces) このクラスのインタフェースを設定します。 -
java.lang.classfile.attributePREVIEWでのClassEntryPREVIEWの使用
修飾子と型メソッド説明StackMapFrameInfo.ObjectVerificationTypeInfo.className()オブジェクトのクラスを返します。EnclosingMethodAttribute.enclosingClass()現在のクラスの宣言を囲む最も内側のクラスを返します。InnerClassInfo.innerClass()この内部クラスの説明によって記述されたクラスを返します。ModuleMainClassAttribute.mainClass()このモジュールのメイン・クラスを返します。NestHostAttribute.nestHost()このクラスが属する巣のホスト・クラスを返します。ModuleProvideInfo.provides()指定されたサービスを表すサービス・インタフェースを返します。ClassEntryPREVIEW型の引数を持つ型を返すjava.lang.classfile.attributePREVIEWのメソッド修飾子と型メソッド説明ExceptionsAttribute.exceptions()このメソッドによってスローされるよう宣言された例外を返します。NestMembersAttribute.nestMembers()このクラスがホストするネストに属するクラスを返します。InnerClassInfo.outerClass()クラスまたはインタフェースのメンバーである場合に、このクラスがメンバーであるクラスまたはインタフェースを返します。PermittedSubclassesAttribute.permittedSubclasses()許可されているサブクラスのリストを返します。ModuleProvideInfo.providesWith()サービス実装を提供するクラスを返します。ModuleAttribute.uses()このモジュールで使用されるサービスを返します。ClassEntryPREVIEW型のパラメータを持つjava.lang.classfile.attributePREVIEWのメソッド修飾子と型メソッド説明EnclosingMethodAttribute.of(ClassEntryPREVIEW className, Optional<NameAndTypeEntryPREVIEW> method) EnclosingMethod属性を返します。static ExceptionsAttributePREVIEWExceptionsAttribute.of(ClassEntryPREVIEW... exceptions) Exceptions属性を返します。static InnerClassInfoPREVIEWInnerClassInfo.of(ClassEntryPREVIEW innerClass, Optional<ClassEntryPREVIEW> outerClass, Optional<Utf8EntryPREVIEW> innerName, int flags) 内部クラスの説明を返します。ModuleMainClassAttribute.of(ClassEntryPREVIEW mainClass) ModuleMainClass属性を返します。static ModuleProvideInfoPREVIEWModuleProvideInfo.of(ClassEntryPREVIEW provides, ClassEntryPREVIEW... providesWith) サービス・プロビジョニングの説明を返します。static ModuleProvideInfoPREVIEWModuleProvideInfo.of(ClassEntryPREVIEW provides, List<ClassEntryPREVIEW> providesWith) サービス・プロビジョニングの説明を返します。static NestHostAttributePREVIEWNestHostAttribute.of(ClassEntryPREVIEW nestHost) NestHost属性を返します。static NestMembersAttributePREVIEWNestMembersAttribute.of(ClassEntryPREVIEW... nestMembers) NestMembers属性を返します。PermittedSubclassesAttribute.of(ClassEntryPREVIEW... permittedSubclasses) PermittedSubclasses属性を返します。StackMapFrameInfo.ObjectVerificationTypeInfo.of(ClassEntryPREVIEW className) 新しいオブジェクト検証タイプ情報を返します。ModuleAttribute.ModuleAttributeBuilder.uses(ClassEntryPREVIEW uses) サービスの使用を宣言します。ClassEntryPREVIEW型の型引数を持つjava.lang.classfile.attributePREVIEWのメソッド・パラメータ修飾子と型メソッド説明static ExceptionsAttributePREVIEWExceptionsAttribute.of(List<ClassEntryPREVIEW> exceptions) Exceptions属性を返します。static InnerClassInfoPREVIEWInnerClassInfo.of(ClassEntryPREVIEW innerClass, Optional<ClassEntryPREVIEW> outerClass, Optional<Utf8EntryPREVIEW> innerName, int flags) 内部クラスの説明を返します。static ModuleProvideInfoPREVIEWModuleProvideInfo.of(ClassEntryPREVIEW provides, List<ClassEntryPREVIEW> providesWith) サービス・プロビジョニングの説明を返します。static NestMembersAttributePREVIEWNestMembersAttribute.of(List<ClassEntryPREVIEW> nestMembers) NestMembers属性を返します。PermittedSubclassesAttribute.of(List<ClassEntryPREVIEW> permittedSubclasses) PermittedSubclasses属性を返します。 -
java.lang.classfile.constantpoolPREVIEWでのClassEntryPREVIEWの使用
修飾子と型メソッド説明ConstantPoolBuilder.classEntry(Utf8EntryPREVIEW ne) 内部名が指定されたUtf8EntryPREVIEWにエンコードされているクラスを記述するClassEntryPREVIEWを返します。default ClassEntryPREVIEWConstantPoolBuilder.classEntry(ClassDesc classDesc) 指定されたClassDescで説明されているクラスを記述するClassEntryPREVIEWを返します。MemberRefEntry.owner()このメンバー参照が存在するクラスを返します。ClassEntryPREVIEW型のパラメータを持つjava.lang.classfile.constantpoolPREVIEWのメソッド修飾子と型メソッド説明ConstantPoolBuilder.fieldRefEntry(ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) クラスのフィールドを記述するFieldRefEntryPREVIEWを返します。ConstantPoolBuilder.interfaceMethodRefEntry(ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) クラスのメソッドを記述するInterfaceMethodRefEntryPREVIEWを返します。ConstantPoolBuilder.methodRefEntry(ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) クラスのメソッドを記述するMethodRefEntryPREVIEWを返します。 -
java.lang.classfile.instructionPREVIEWでのClassEntryPREVIEWの使用
修飾子と型メソッド説明NewMultiArrayInstruction.arrayType()配列の型をシンボリック記述子として返します。NewObjectInstruction.className()作成するオブジェクトの型を返します。NewReferenceArrayInstruction.componentType()配列のコンポーネント・タイプを返します。default ClassEntryPREVIEWFieldInstruction.owner()フィールドを保持するクラスを返します。default ClassEntryPREVIEWInvokeInstruction.owner()メソッドを保持するクラスを返します。TypeCheckInstruction.type()命令がチェックまたはキャストする対象となる型を返します。ClassEntryPREVIEW型の引数を持つ型を返すjava.lang.classfile.instructionPREVIEWのメソッドClassEntryPREVIEW型のパラメータを持つjava.lang.classfile.instructionPREVIEWのメソッド修飾子と型メソッド説明static FieldInstructionPREVIEWFieldInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) フィールド・アクセス指示を返します。static FieldInstructionPREVIEWFieldInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type) フィールド・アクセス指示を返します。static InvokeInstructionPREVIEWInvokeInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType, boolean isInterface) invocation instructionを返します。static InvokeInstructionPREVIEWInvokeInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type, boolean isInterface) invocation instructionを返します。NewMultiArrayInstruction.of(ClassEntryPREVIEW arrayTypeEntry, int dimensions) 新しい多ディメンション配列命令を返します。static NewObjectInstructionPREVIEWNewObjectInstruction.of(ClassEntryPREVIEW className) 新しいオブジェクト命令を返します。NewReferenceArrayInstruction.of(ClassEntryPREVIEW componentType) 新しい参照配列命令を返します。static TypeCheckInstructionPREVIEWTypeCheckInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW type) 型チェック命令を返します。ClassEntryPREVIEW型の型引数を持つjava.lang.classfile.instructionPREVIEWのメソッド・パラメータ