インタフェースjava.lang.classfile.constantpool.Utf8Entryの
使用
パッケージ
説明
クラス・ファイルの解析、生成および変換ライブラリを提供します。
java.lang.classfile
PREVIEWライブラリのクラス・ファイル属性を記述するインタフェースを提供します。java.lang.classfile
PREVIEWライブラリのクラス・ファイル定数プール・エントリを記述するインタフェースを提供します。java.lang.classfile
PREVIEWライブラリのコード命令を記述するインタフェースを提供します。-
java.lang.classfilePREVIEWでのUtf8EntryPREVIEWの使用
修飾子と型メソッド説明Annotation.className()
注釈のクラスを返します。AnnotationValue.OfClass.className()
クラス名を返します。AnnotationValue.OfEnum.className()
列挙クラス名を返します。AnnotationValue.OfEnum.constantName()
列挙定数名を返します。FieldModel.fieldName()
このフィールドの名前を返します。FieldModel.fieldType()
このフィールドのフィールド記述子を返します。MethodModel.methodName()
このメソッドの名前を返します。MethodModel.methodType()
このメソッドのメソッド記述子を返します。AnnotationElement.name()
要素名を返します。ClassReader.readUtf8Entry
(int offset) クラス・ファイル内で指定されたオフセットで索引が指定されたUTF8エントリを返します。ClassReader.readUtf8EntryOrNull
(int offset) クラス・ファイル内の指定されたオフセットで索引が指定されたUTF8エントリを返します。指定されたオフセットで索引がゼロの場合はnullを返します。ClassReader.utf8EntryByIndex
(int index) 定数プールの指定された索引にあるUTF8定数プール・エントリを返します。修飾子と型メソッド説明ClassFile.AttributeMapperOption.attributeMapper()
属性マッパーへの関数マッピング属性名を返します。ClassReader.customAttributes()
カスタム属性マッパーの表を返します。修飾子と型メソッド説明default CodeBuilderPREVIEW
CodeBuilder.localVariable
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) ローカル変数エントリを宣言しますdefault CodeBuilderPREVIEW
CodeBuilder.localVariableType
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) ローカル変数型エントリの宣言static AnnotationPREVIEW
Annotation.of
(Utf8EntryPREVIEW annotationClass, AnnotationElementPREVIEW... elements) 注釈を返します。static AnnotationPREVIEW
注釈を返します。static AnnotationElementPREVIEW
AnnotationElement.of
(Utf8EntryPREVIEW name, AnnotationValuePREVIEW value) 注釈のキーと値のペアを返します。static TypeAnnotationPREVIEW
TypeAnnotation.of
(TypeAnnotation.TargetInfoPREVIEW targetInfo, List<TypeAnnotation.TypePathComponentPREVIEW> targetPath, Utf8EntryPREVIEW annotationClassUtf8Entry, AnnotationElementPREVIEW... annotationElements) 型注釈を返します。static TypeAnnotationPREVIEW
TypeAnnotation.of
(TypeAnnotation.TargetInfoPREVIEW targetInfo, List<TypeAnnotation.TypePathComponentPREVIEW> targetPath, Utf8EntryPREVIEW annotationClassUtf8Entry, List<AnnotationElementPREVIEW> annotationElements) 型注釈を返します。class-valued要素の注釈要素を返します。enum-valued要素の注釈要素を返します。string-valued要素の注釈要素を返します。static AttributeMapperPREVIEW
<?> Attributes.standardAttribute
(Utf8EntryPREVIEW name) 標準属性の属性マッパーを返します。default ClassBuilderPREVIEW
フィールドを追加しますClassBuilder.withField
(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, Consumer<? super FieldBuilderPREVIEW> handler) フィールドを追加しますClassBuilder.withMethod
(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, int methodFlags, Consumer<? super MethodBuilderPREVIEW> handler) メソッドを追加します。default ClassBuilderPREVIEW
ClassBuilder.withMethodBody
(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, int methodFlags, Consumer<? super CodeBuilderPREVIEW> handler) Code
属性のみを持つメソッドを追加します。 -
java.lang.classfile.attributePREVIEWでのUtf8EntryPREVIEWの使用
修飾子と型メソッド説明ModuleHashesAttribute.algorithm()
ハッシュのコンピュートに使用されるアルゴリズム名を返します。CompilationIDAttribute.compilationId()
コンパイルIDを返します。RecordComponentInfo.descriptor()
このコンポーネントのフィールド記述子を返します。LocalVariableInfo.name()
ローカル変数の名前を返します。LocalVariableTypeInfo.name()
ローカル変数の名前を返します。RecordComponentInfo.name()
このコンポーネントの名前を返します。LocalVariableTypeInfo.signature()
ローカル変数のフィールド・シグネチャを返します。SignatureAttribute.signature()
クラス、メソッドまたはフィールドのシグネチャを返します。SourceFileAttribute.sourceFile()
このクラスのコンパイル元のソース・ファイルの名前を返します。SourceIDAttribute.sourceId()
ソースIDを返します。ModuleTargetAttribute.targetPlatform()
ターゲット・プラットフォームを返します。LocalVariableInfo.type()
ローカル変数のフィールド記述子を返します。修飾子と型メソッド説明EnclosingMethodAttribute.enclosingMethodName()
クラスがメソッドまたはコンストラクタによってすぐに囲まれている場合、包含メソッドの名前を返します。EnclosingMethodAttribute.enclosingMethodType()
クラスがメソッドまたはコンストラクタによってすぐに囲まれている場合、包含メソッドの型を返します。InnerClassInfo.innerName()
このクラスの単純名を返すか、このクラスが匿名の場合は空を返します。ModuleAttribute.moduleVersion()
モジュールのバージョンを返します(存在する場合)。MethodParameterInfo.name()
メソッド・パラメータの名前(存在する場合)。ModuleRequireInfo.requiresVersion()
必要なモジュールが存在する場合は、必要なバージョンを返します。修飾子と型メソッド説明CompilationID
属性を返します。static ModuleAttributePREVIEW
ModuleAttribute.of
(ModuleEntryPREVIEW moduleName, int moduleFlags, Utf8EntryPREVIEW moduleVersion, Collection<ModuleRequireInfoPREVIEW> requires, Collection<ModuleExportInfoPREVIEW> exports, Collection<ModuleOpenInfoPREVIEW> opens, Collection<ClassEntryPREVIEW> uses, Collection<ModuleProvideInfoPREVIEW> provides) Module
属性を返します。static ModuleHashesAttributePREVIEW
ModuleHashesAttribute.of
(Utf8EntryPREVIEW algorithm, ModuleHashInfoPREVIEW... hashes) ModuleHashes
属性を返します。static ModuleHashesAttributePREVIEW
ModuleHashes
属性を返します。static ModuleRequireInfoPREVIEW
ModuleRequireInfo.of
(ModuleEntryPREVIEW requires, int requiresFlags, Utf8EntryPREVIEW requiresVersion) モジュール要件の説明を返します。static ModuleRequireInfoPREVIEW
ModuleRequireInfo.of
(ModuleEntryPREVIEW requires, Collection<AccessFlag> requiresFlags, Utf8EntryPREVIEW requiresVersion) モジュール要件の説明を返します。static ModuleTargetAttributePREVIEW
ModuleTarget
属性を返します。static RecordComponentInfoPREVIEW
RecordComponentInfo.of
(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, AttributePREVIEW<?>... attributes) レコード・コンポーネントの説明を返します。static RecordComponentInfoPREVIEW
RecordComponentInfo.of
(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, List<AttributePREVIEW<?>> attributes) レコード・コンポーネントの説明を返します。static SignatureAttributePREVIEW
Signature
属性を返します。static SourceFileAttributePREVIEW
ソース・ファイル属性を返します。static SourceIDAttributePREVIEW
SourceID
属性を返します。 -
java.lang.classfile.constantpoolPREVIEWでのUtf8EntryPREVIEWの使用
修飾子と型メソッド説明MethodTypeEntry.descriptor()
メソッド・タイプを記述する定数プール・エントリを返します。ClassEntry.name()
クラス名のUTF8定数プール・エントリを返します。DynamicConstantPoolEntry.name()
起動名を返します。MemberRefEntry.name()
メンバーの名前を返します。ModuleEntry.name()
モジュールの名前を返します。NameAndTypeEntry.name()
フィールド名またはメソッド名を返します。PackageEntry.name()
パッケージ名を返します。DynamicConstantPoolEntry.type()
呼出しタイプを返します。MemberRefEntry.type()
メンバーのタイプを返します。NameAndTypeEntry.type()
フィールドまたはメソッド記述子を返します。StringEntry.utf8()
文字列の内容を記述するUTF定数プール・エントリを返します。ConstantPoolBuilder.utf8Entry
(MethodTypeDesc desc) 指定されたMethodTypeDescのメソッド記述子を記述するUtf8Entry
PREVIEWを返します。修飾子と型メソッド説明ConstantPoolBuilder.classEntry
(Utf8EntryPREVIEW ne) 内部名が指定されたUtf8EntryPREVIEWにエンコードされているクラスを記述するClassEntry
PREVIEWを返します。ConstantPoolBuilder.methodTypeEntry
(Utf8EntryPREVIEW descriptor) メソッド・タイプを記述するMethodTypeEntry
PREVIEWを返します。ConstantPoolBuilder.moduleEntry
(Utf8EntryPREVIEW moduleName) 指定されたUtf8EntryPREVIEWに名前がエンコードされているモジュールを記述するModuleEntry
PREVIEWを返します。ConstantPoolBuilder.nameAndTypeEntry
(Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW typeEntry) 指定された名前と型を記述するNameAndTypeEntry
PREVIEWを返します。ConstantPoolBuilder.packageEntry
(Utf8EntryPREVIEW nameEntry) 内部名が指定されたUtf8EntryPREVIEWにエンコードされているクラスを記述するPackageEntry
PREVIEWを返します。ConstantPoolBuilder.stringEntry
(Utf8EntryPREVIEW utf8) 指定されたUTF8エントリを参照するStringEntry
PREVIEWを返します。 -
java.lang.classfile.instructionPREVIEWでのUtf8EntryPREVIEWの使用
修飾子と型メソッド説明FieldInstruction.name()
フィールドの名前を返します。InvokeDynamicInstruction.name()
コール・サイトの呼出し名を返します。InvokeInstruction.name()
メソッドの名前を返します。LocalVariable.name()
ローカル変数名を返します。LocalVariableType.name()
ローカル変数名を返します。LocalVariableType.signature()
ローカル変数シグネチャを返します。FieldInstruction.type()
フィールドのフィールド記述子を返します。InvokeDynamicInstruction.type()
コール・サイトの呼出しタイプを返します。InvokeInstruction.type()
メソッドのメソッド記述子を返します。LocalVariable.type()
ローカル変数フィールド記述子を返します。修飾子と型メソッド説明static FieldInstructionPREVIEW
FieldInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type) フィールド・アクセス指示を返します。static InvokeInstructionPREVIEW
InvokeInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type, boolean isInterface) invocation instructionを返します。static LocalVariablePREVIEW
LocalVariable.of
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) ローカル変数擬似命令を返します。static LocalVariableTypePREVIEW
LocalVariableType.of
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) ローカル変数型擬似命令を返します。