インタフェースjava.lang.classfile.constantpool.ClassEntryの
使用
ClassEntryを使用するパッケージ
パッケージ
説明
クラス・ファイルの解析、生成および変換ライブラリを提供します。
java.lang.classfileライブラリのclassファイル属性を記述するインタフェースを提供します。java.lang.classfileライブラリの定数プール・エントリを記述するインタフェースを提供します。java.lang.classfileライブラリのコード手順を説明するインタフェースを提供します。-
java.lang.classfileでのClassEntryの使用
ClassEntryを返すjava.lang.classfileのメソッド修飾子と型メソッド説明Superclass.superclassEntry()スーパークラスを返します。ClassModel.thisClass()このクラスの名前を記述する定数プール・エントリを返します。ClassReader.thisClassEntry()クラスの名前を記述する定数プール・エントリを返します。型ClassEntryの引数を持つ型を返すjava.lang.classfileのメソッド修飾子と型メソッド説明ClassModel.interfaces()このクラスによって実装されたインタフェースを返します。Interfaces.interfaces()このクラスのインタフェースを返します。空の場合もあります。ClassModel.superclass()このクラスのスーパークラス(存在する場合)を返します。ClassReader.superclassEntry()スーパークラスの名前を記述する定数プール・エントリ(存在する場合)を返します。型ClassEntryのパラメータを持つjava.lang.classfileのメソッド修飾子と型メソッド説明default CodeBuilderCodeBuilder.anewarray(ClassEntry classEntry) referenceの新しい配列を作成する命令を生成します。byte[]ClassFile.build(ClassEntry thisClassEntry, ConstantPoolBuilder constantPool, Consumer<? super ClassBuilder> handler) 指定された定数プール・ビルダーを使用して、classファイルをバイト配列に構築します。default voidClassFile.buildTo(Path path, ClassEntry thisClassEntry, ConstantPoolBuilder constantPool, Consumer<? super ClassBuilder> handler) 指定された定数プール・ビルダーを使用して、ファイル・システム内のファイルにclassファイルをビルドします。default CodeBuilderCodeBuilder.checkcast(ClassEntry type) オブジェクトが指定の型かどうかをチェックする命令を生成し、チェックが失敗した場合はClassCastExceptionをスローします。default CodeBuilderCodeBuilder.exceptionCatch(Label start, Label end, Label handler, ClassEntry catchType) 例外表エントリを宣言します。default CodeBuilderCodeBuilder.instanceOf(ClassEntry target) オブジェクトが指定された型であるかどうかを判断する命令を生成し、オペランド・スタックにbooleanの結果を生成します。default CodeBuilderCodeBuilder.multianewarray(ClassEntry array, int dims) 新しい多次元配列を作成する命令を生成します。default CodeBuilderCodeBuilder.new_(ClassEntry clazz) 新しいオブジェクトを作成する命令を生成します。static InterfacesInterfaces.of(ClassEntry... interfaces) 「インタフェース」要素を返します。static SuperclassSuperclass.of(ClassEntry superclassEntry) Superclass要素を返します。byte[]ClassFile.transformClass(ClassModel model, ClassEntry newClassName, ClassTransform transform) ClassTransformに従って、1つのclassファイルを新しいclassファイルに変換します。default ClassBuilderClassBuilder.withInterfaces(ClassEntry... interfaces) このクラスのインタフェースを設定します。default ClassBuilderClassBuilder.withSuperclass(ClassEntry superclassEntry) このクラスのスーパークラスを設定します。型ClassEntryの型引数を持つjava.lang.classfileのメソッド・パラメータ修飾子と型メソッド説明default CodeBuilderCodeBuilder.exceptionCatch(Label start, Label end, Label handler, Optional<ClassEntry> catchType) 例外表エントリを宣言します。static InterfacesInterfaces.of(List<ClassEntry> interfaces) 「インタフェース」要素を返します。default ClassBuilderClassBuilder.withInterfaces(List<ClassEntry> interfaces) このクラスのインタフェースを設定します。 -
java.lang.classfile.attributeでのClassEntryの使用
修飾子と型メソッド説明StackMapFrameInfo.ObjectVerificationTypeInfo.className()オブジェクトのクラスを返します。EnclosingMethodAttribute.enclosingClass()現在のクラスの宣言を囲むクラスを返します。InnerClassInfo.innerClass()このエントリで記述されたネストされたクラスを返します。ModuleMainClassAttribute.mainClass()このモジュールのメイン・クラスを返します。NestHostAttribute.nestHost()このクラスが属する巣のホスト・クラスを返します。ModuleProvideInfo.provides()指定されたサービスを表すサービス・インタフェースを返します。型ClassEntryの引数を持つ型を返すjava.lang.classfile.attributeのメソッド修飾子と型メソッド説明ExceptionsAttribute.exceptions()このメソッドによってスローされるよう宣言された例外を返します。NestMembersAttribute.nestMembers()このクラスがホストするネストに属するクラスを返します。InnerClassInfo.outerClass()クラスまたはインタフェースのメンバーである場合に、このクラスがメンバーであるクラスまたはインタフェースを返します。PermittedSubclassesAttribute.permittedSubclasses()許可されるサブクラスまたはサブインタフェースのリストを返します。ModuleProvideInfo.providesWith()サービス実装を提供するクラスを返します。ModuleAttribute.uses()このモジュールで使用されるサービスを返します。型ClassEntryのパラメータを持つjava.lang.classfile.attributeのメソッド修飾子と型メソッド説明static EnclosingMethodAttributeEnclosingMethodAttribute.of(ClassEntry className, Optional<NameAndTypeEntry> method) EnclosingMethod属性を返します。static ExceptionsAttributeExceptionsAttribute.of(ClassEntry... exceptions) Exceptions属性を返します。static InnerClassInfoInnerClassInfo.of(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flags) ネストされたクラスの説明を返します。static ModuleMainClassAttributeModuleMainClassAttribute.of(ClassEntry mainClass) ModuleMainClass属性を返します。static ModuleProvideInfoModuleProvideInfo.of(ClassEntry provides, ClassEntry... providesWith) サービス・プロビジョニングの説明を返します。static ModuleProvideInfoModuleProvideInfo.of(ClassEntry provides, List<ClassEntry> providesWith) サービス・プロビジョニングの説明を返します。static NestHostAttributeNestHostAttribute.of(ClassEntry nestHost) NestHost属性を返します。static NestMembersAttributeNestMembersAttribute.of(ClassEntry... nestMembers) NestMembers属性を返します。static PermittedSubclassesAttributePermittedSubclassesAttribute.of(ClassEntry... permittedSubclasses) PermittedSubclasses属性を返します。StackMapFrameInfo.ObjectVerificationTypeInfo.of(ClassEntry className) 新しいオブジェクト検証タイプ情報を返します。ModuleAttribute.ModuleAttributeBuilder.uses(ClassEntry uses) サービスの使用を宣言します。型ClassEntryの型引数を持つjava.lang.classfile.attributeのメソッド・パラメータ修飾子と型メソッド説明static ExceptionsAttributeExceptionsAttribute.of(List<ClassEntry> exceptions) Exceptions属性を返します。static InnerClassInfoInnerClassInfo.of(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flags) ネストされたクラスの説明を返します。static ModuleProvideInfoModuleProvideInfo.of(ClassEntry provides, List<ClassEntry> providesWith) サービス・プロビジョニングの説明を返します。static NestMembersAttributeNestMembersAttribute.of(List<ClassEntry> nestMembers) NestMembers属性を返します。static PermittedSubclassesAttributePermittedSubclassesAttribute.of(List<ClassEntry> permittedSubclasses) PermittedSubclasses属性を返します。 -
java.lang.classfile.constantpoolでのClassEntryの使用
修飾子と型メソッド説明ConstantPoolBuilder.classEntry(Utf8Entry ne) 指定されたUtf8Entryを参照するClassEntryを返します。default ClassEntryConstantPoolBuilder.classEntry(ClassDesc classDesc) 指定されたClassDescと同じ参照型を記述するClassEntryを返します。MemberRefEntry.owner()このメンバーが属するクラスまたはインタフェースを返します。型ClassEntryのパラメータを持つjava.lang.classfile.constantpoolのメソッド修飾子と型メソッド説明ConstantPoolBuilder.fieldRefEntry(ClassEntry owner, NameAndTypeEntry nameAndType) ClassEntryおよびNameAndTypeEntryを参照するFieldRefEntryを返します。ConstantPoolBuilder.interfaceMethodRefEntry(ClassEntry owner, NameAndTypeEntry nameAndType) ClassEntryおよびNameAndTypeEntryを参照するInterfaceMethodRefEntryを返します。ConstantPoolBuilder.methodRefEntry(ClassEntry owner, NameAndTypeEntry nameAndType) ClassEntryおよびNameAndTypeEntryを参照するMethodRefEntryを返します。 -
java.lang.classfile.instructionでのClassEntryの使用
修飾子と型メソッド説明NewMultiArrayInstruction.arrayType()配列のタイプを返します。NewObjectInstruction.className()作成するオブジェクトの型を返します。NewReferenceArrayInstruction.componentType()配列のコンポーネント・タイプを返します。default ClassEntryFieldInstruction.owner()フィールドを保持するクラスを返します。default ClassEntryInvokeInstruction.owner()メソッドを保持するクラスまたはインタフェースを返します。TypeCheckInstruction.type()命令がチェックするタイプを返します。型ClassEntryの引数を持つ型を返すjava.lang.classfile.instructionのメソッド型ClassEntryのパラメータを持つjava.lang.classfile.instructionのメソッド修飾子と型メソッド説明static FieldInstructionFieldInstruction.of(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType) フィールド・アクセス指示を返します。static FieldInstructionFieldInstruction.of(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type) フィールド・アクセス指示を返します。static InvokeInstructionInvokeInstruction.of(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType, boolean isInterface) invocation instructionを返します。static InvokeInstructionInvokeInstruction.of(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type, boolean isInterface) invocation instructionを返します。static NewMultiArrayInstructionNewMultiArrayInstruction.of(ClassEntry arrayTypeEntry, int dimensions) 新しい多ディメンション配列命令を返します。static NewObjectInstructionNewObjectInstruction.of(ClassEntry className) 新しいオブジェクト命令を返します。static NewReferenceArrayInstructionNewReferenceArrayInstruction.of(ClassEntry componentType) 新しい参照配列命令を返します。static TypeCheckInstructionTypeCheckInstruction.of(Opcode op, ClassEntry type) 型チェック命令を返します。型ClassEntryの型引数を持つjava.lang.classfile.instructionのメソッド・パラメータ