インタフェース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 CodeBuilder
CodeBuilder.anewarray
(ClassEntry classEntry) reference
の新しい配列を作成する命令を生成します。byte[]
ClassFile.build
(ClassEntry thisClassEntry, ConstantPoolBuilder constantPool, Consumer<? super ClassBuilder> handler) 指定された定数プール・ビルダーを使用して、class
ファイルをバイト配列に構築します。default void
ClassFile.buildTo
(Path path, ClassEntry thisClassEntry, ConstantPoolBuilder constantPool, Consumer<? super ClassBuilder> handler) 指定された定数プール・ビルダーを使用して、ファイル・システム内のファイルにclass
ファイルをビルドします。default CodeBuilder
CodeBuilder.checkcast
(ClassEntry type) オブジェクトが指定の型かどうかをチェックする命令を生成し、チェックが失敗した場合はClassCastException
をスローします。default CodeBuilder
CodeBuilder.exceptionCatch
(Label start, Label end, Label handler, ClassEntry catchType) 例外表エントリを宣言します。default CodeBuilder
CodeBuilder.instanceOf
(ClassEntry target) オブジェクトが指定された型であるかどうかを判断する命令を生成し、オペランド・スタックにboolean
の結果を生成します。default CodeBuilder
CodeBuilder.multianewarray
(ClassEntry array, int dims) 新しい多次元配列を作成する命令を生成します。default CodeBuilder
CodeBuilder.new_
(ClassEntry clazz) 新しいオブジェクトを作成する命令を生成します。static Interfaces
Interfaces.of
(ClassEntry... interfaces) 「インタフェース」要素を返します。static Superclass
Superclass.of
(ClassEntry superclassEntry) Superclass要素を返します。byte[]
ClassFile.transformClass
(ClassModel model, ClassEntry newClassName, ClassTransform transform) ClassTransform
に従って、1つのclass
ファイルを新しいclass
ファイルに変換します。default ClassBuilder
ClassBuilder.withInterfaces
(ClassEntry... interfaces) このクラスのインタフェースを設定します。default ClassBuilder
ClassBuilder.withSuperclass
(ClassEntry superclassEntry) このクラスのスーパークラスを設定します。型ClassEntryの型引数を持つjava.lang.classfileのメソッド・パラメータ修飾子と型メソッド説明default CodeBuilder
CodeBuilder.exceptionCatch
(Label start, Label end, Label handler, Optional<ClassEntry> catchType) 例外表エントリを宣言します。static Interfaces
Interfaces.of
(List<ClassEntry> interfaces) 「インタフェース」要素を返します。default ClassBuilder
ClassBuilder.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 EnclosingMethodAttribute
EnclosingMethodAttribute.of
(ClassEntry className, Optional<NameAndTypeEntry> method) EnclosingMethod
属性を返します。static ExceptionsAttribute
ExceptionsAttribute.of
(ClassEntry... exceptions) Exceptions
属性を返します。static InnerClassInfo
InnerClassInfo.of
(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flags) ネストされたクラスの説明を返します。static ModuleMainClassAttribute
ModuleMainClassAttribute.of
(ClassEntry mainClass) ModuleMainClass
属性を返します。static ModuleProvideInfo
ModuleProvideInfo.of
(ClassEntry provides, ClassEntry... providesWith) サービス・プロビジョニングの説明を返します。static ModuleProvideInfo
ModuleProvideInfo.of
(ClassEntry provides, List<ClassEntry> providesWith) サービス・プロビジョニングの説明を返します。static NestHostAttribute
NestHostAttribute.of
(ClassEntry nestHost) NestHost
属性を返します。static NestMembersAttribute
NestMembersAttribute.of
(ClassEntry... nestMembers) NestMembers
属性を返します。static PermittedSubclassesAttribute
PermittedSubclassesAttribute.of
(ClassEntry... permittedSubclasses) PermittedSubclasses
属性を返します。StackMapFrameInfo.ObjectVerificationTypeInfo.of
(ClassEntry className) 新しいオブジェクト検証タイプ情報を返します。ModuleAttribute.ModuleAttributeBuilder.uses
(ClassEntry uses) サービスの使用を宣言します。型ClassEntryの型引数を持つjava.lang.classfile.attributeのメソッド・パラメータ修飾子と型メソッド説明static ExceptionsAttribute
ExceptionsAttribute.of
(List<ClassEntry> exceptions) Exceptions
属性を返します。static InnerClassInfo
InnerClassInfo.of
(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flags) ネストされたクラスの説明を返します。static ModuleProvideInfo
ModuleProvideInfo.of
(ClassEntry provides, List<ClassEntry> providesWith) サービス・プロビジョニングの説明を返します。static NestMembersAttribute
NestMembersAttribute.of
(List<ClassEntry> nestMembers) NestMembers
属性を返します。static PermittedSubclassesAttribute
PermittedSubclassesAttribute.of
(List<ClassEntry> permittedSubclasses) PermittedSubclasses
属性を返します。 -
java.lang.classfile.constantpoolでのClassEntryの使用
修飾子と型メソッド説明ConstantPoolBuilder.classEntry
(Utf8Entry ne) 指定されたUtf8Entry
を参照するClassEntry
を返します。default ClassEntry
ConstantPoolBuilder.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 ClassEntry
FieldInstruction.owner()
フィールドを保持するクラスを返します。default ClassEntry
InvokeInstruction.owner()
メソッドを保持するクラスまたはインタフェースを返します。TypeCheckInstruction.type()
命令がチェックするタイプを返します。型ClassEntryの引数を持つ型を返すjava.lang.classfile.instructionのメソッド型ClassEntryのパラメータを持つjava.lang.classfile.instructionのメソッド修飾子と型メソッド説明static FieldInstruction
FieldInstruction.of
(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType) フィールド・アクセス指示を返します。static FieldInstruction
FieldInstruction.of
(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type) フィールド・アクセス指示を返します。static InvokeInstruction
InvokeInstruction.of
(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType, boolean isInterface) invocation instructionを返します。static InvokeInstruction
InvokeInstruction.of
(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type, boolean isInterface) invocation instructionを返します。static NewMultiArrayInstruction
NewMultiArrayInstruction.of
(ClassEntry arrayTypeEntry, int dimensions) 新しい多ディメンション配列命令を返します。static NewObjectInstruction
NewObjectInstruction.of
(ClassEntry className) 新しいオブジェクト命令を返します。static NewReferenceArrayInstruction
NewReferenceArrayInstruction.of
(ClassEntry componentType) 新しい参照配列命令を返します。static TypeCheckInstruction
TypeCheckInstruction.of
(Opcode op, ClassEntry type) 型チェック命令を返します。型ClassEntryの型引数を持つjava.lang.classfile.instructionのメソッド・パラメータ