Uses of Interface
java.lang.classfile.constantpool.Utf8Entry
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing classfile attributes for the
java.lang.classfilePREVIEW library.Provides interfaces describing classfile constant pool entries for the
java.lang.classfilePREVIEW library.Provides interfaces describing code instructions for the
java.lang.classfilePREVIEW library.-
Uses of Utf8EntryPREVIEW in java.lang.classfilePREVIEW
Methods in java.lang.classfilePREVIEW that return Utf8EntryPREVIEWModifier and TypeMethodDescriptionAnnotation.className()Returns the constant pool entry holding the descriptor string of the annotation interface.AnnotationValue.OfClass.className()Returns the class descriptor string.AnnotationValue.OfEnum.className()Returns the enum class descriptor string.AnnotationValue.OfString.constant()Returns the backing UTF8 entry.AnnotationValue.OfEnum.constantName()Returns the enum constant name.FieldModel.fieldName()Returns the name of this field.FieldModel.fieldType()Returns the field descriptor of this field.MethodModel.methodName()Returns the name of this method.MethodModel.methodType()Returns the method descriptor of this method.AnnotationElement.name()Returns the element name.Methods in java.lang.classfilePREVIEW that return types with arguments of type Utf8EntryPREVIEWModifier and TypeMethodDescriptionClassFile.AttributeMapperOption.attributeMapper()Returns the function mapping attribute names to attribute mappers.ClassReader.customAttributes()Returns the table of custom attribute mappers.Methods in java.lang.classfilePREVIEW with parameters of type Utf8EntryPREVIEWModifier and TypeMethodDescriptiondefault CodeBuilderPREVIEWCodeBuilder.localVariable(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable entrydefault CodeBuilderPREVIEWCodeBuilder.localVariableType(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable type entrystatic AnnotationPREVIEWAnnotation.of(Utf8EntryPREVIEW annotationClass, AnnotationElementPREVIEW... elements) Returns an annotation.static AnnotationPREVIEWReturns an annotation.static AnnotationElementPREVIEWAnnotationElement.of(Utf8EntryPREVIEW name, AnnotationValuePREVIEW value) Returns an element-value pair.Returns a class value for an element-value pair.Returns an enum value for an element-value pair.Returns a string value for an element-value pair.default ClassBuilderPREVIEWAdds a field.ClassBuilder.withField(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, Consumer<? super FieldBuilderPREVIEW> handler) Adds a field.ClassBuilder.withMethod(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, int methodFlags, Consumer<? super MethodBuilderPREVIEW> handler) Adds a method.default ClassBuilderPREVIEWClassBuilder.withMethodBody(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, int methodFlags, Consumer<? super CodeBuilderPREVIEW> handler) Adds a method, with only aCodeattribute.Method parameters in java.lang.classfilePREVIEW with type arguments of type Utf8EntryPREVIEW -
Uses of Utf8EntryPREVIEW in java.lang.classfile.attributePREVIEW
Methods in java.lang.classfile.attributePREVIEW that return Utf8EntryPREVIEWModifier and TypeMethodDescriptionModuleHashesAttribute.algorithm()Returns the algorithm name used to compute the hash.CompilationIDAttribute.compilationId()Returns the compilation ID.RecordComponentInfo.descriptor()Returns the field descriptor of this component.LocalVariableInfo.name()Returns the name of the local variable.LocalVariableTypeInfo.name()Returns the name of the local variable.RecordComponentInfo.name()Returns the name of this component.LocalVariableTypeInfo.signature()Returns the field signature of the local variable.SignatureAttribute.signature()Returns the signature for the class, method, or field.SourceFileAttribute.sourceFile()Returns the name of the source file from which this class was compiled.SourceIDAttribute.sourceId()Returns the source id.ModuleTargetAttribute.targetPlatform()Returns the target platform.LocalVariableInfo.type()Returns the field descriptor of the local variable.Methods in java.lang.classfile.attributePREVIEW that return types with arguments of type Utf8EntryPREVIEWModifier and TypeMethodDescriptionEnclosingMethodAttribute.enclosingMethodName()Returns the name of the enclosing method, if the class is immediately enclosed by a method or constructor.EnclosingMethodAttribute.enclosingMethodType()Returns the type of the enclosing method, if the class is immediately enclosed by a method or constructor.InnerClassInfo.innerName()Returns the simple name of this class, or empty if this class is anonymous.ModuleAttribute.moduleVersion()Returns the version of the module, if present.MethodParameterInfo.name()The name of the method parameter, if there is one.ModuleRequireInfo.requiresVersion()Returns the required version of the required module, if present.Methods in java.lang.classfile.attributePREVIEW with parameters of type Utf8EntryPREVIEWModifier and TypeMethodDescriptionReturns aCompilationIDattribute.static ModuleAttributePREVIEWModuleAttribute.of(ModuleEntryPREVIEW moduleName, int moduleFlags, Utf8EntryPREVIEW moduleVersion, Collection<ModuleRequireInfoPREVIEW> requires, Collection<ModuleExportInfoPREVIEW> exports, Collection<ModuleOpenInfoPREVIEW> opens, Collection<ClassEntryPREVIEW> uses, Collection<ModuleProvideInfoPREVIEW> provides) Returns aModuleattribute.static ModuleHashesAttributePREVIEWModuleHashesAttribute.of(Utf8EntryPREVIEW algorithm, ModuleHashInfoPREVIEW... hashes) Returns aModuleHashesattribute.static ModuleHashesAttributePREVIEWReturns aModuleHashesattribute.static ModuleRequireInfoPREVIEWModuleRequireInfo.of(ModuleEntryPREVIEW requires, int requiresFlags, Utf8EntryPREVIEW requiresVersion) Returns a module requirement description.static ModuleRequireInfoPREVIEWModuleRequireInfo.of(ModuleEntryPREVIEW requires, Collection<AccessFlag> requiresFlags, Utf8EntryPREVIEW requiresVersion) Returns a module requirement description.static ModuleTargetAttributePREVIEWReturns aModuleTargetattribute.static RecordComponentInfoPREVIEWRecordComponentInfo.of(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, AttributePREVIEW<?>... attributes) Returns a record component description.static RecordComponentInfoPREVIEWRecordComponentInfo.of(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, List<AttributePREVIEW<?>> attributes) Returns a record component description.static SignatureAttributePREVIEWReturns aSignatureattribute.static SourceFileAttributePREVIEWReturns a source file attribute.static SourceIDAttributePREVIEWReturns aSourceIDattribute.Method parameters in java.lang.classfile.attributePREVIEW with type arguments of type Utf8EntryPREVIEW -
Uses of Utf8EntryPREVIEW in java.lang.classfile.constantpoolPREVIEW
Methods in java.lang.classfile.constantpoolPREVIEW that return Utf8EntryPREVIEWModifier and TypeMethodDescriptionMethodTypeEntry.descriptor()Returns the constant pool entry describing the method type.ClassEntry.name()Returns the UTF8 constant pool entry for the class name.DynamicConstantPoolEntry.name()Returns the invocation name.MemberRefEntry.name()Returns the name of the member.ModuleEntry.name()Returns the name of the module.NameAndTypeEntry.name()Returns the field or method name.PackageEntry.name()Returns the package name.DynamicConstantPoolEntry.type()Returns the invocation type.MemberRefEntry.type()Returns the type of the member.NameAndTypeEntry.type()Returns the field or method descriptor.StringEntry.utf8()Returns the UTF constant pool entry describing the string contents.ConstantPoolBuilder.utf8Entry(MethodTypeDesc desc) Methods in java.lang.classfile.constantpoolPREVIEW with parameters of type Utf8EntryPREVIEWModifier and TypeMethodDescriptionConstantPoolBuilder.classEntry(Utf8EntryPREVIEW ne) Returns AClassEntryPREVIEW describing the class whose internal name is encoded in the provided Utf8Entry.ConstantPoolBuilder.methodTypeEntry(Utf8EntryPREVIEW descriptor) Returns AMethodTypeEntryPREVIEW describing a method type.ConstantPoolBuilder.moduleEntry(Utf8EntryPREVIEW moduleName) ConstantPoolBuilder.nameAndTypeEntry(Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW typeEntry) Returns ANameAndTypeEntryPREVIEW describing the provided name and type.ConstantPoolBuilder.packageEntry(Utf8EntryPREVIEW nameEntry) Returns APackageEntryPREVIEW describing the class whose internal name is encoded in the provided Utf8Entry.ConstantPoolBuilder.stringEntry(Utf8EntryPREVIEW utf8) Returns AStringEntryPREVIEW referencing the provided UTF8 entry. -
Uses of Utf8EntryPREVIEW in java.lang.classfile.instructionPREVIEW
Methods in java.lang.classfile.instructionPREVIEW that return Utf8EntryPREVIEWModifier and TypeMethodDescriptionFieldInstruction.name()Returns the name of the field.InvokeDynamicInstruction.name()Returns the invocation name of the call site.InvokeInstruction.name()Returns the name of the method.LocalVariable.name()Returns the local variable name.LocalVariableType.name()Returns the local variable name.LocalVariableType.signature()Returns the local variable signature.FieldInstruction.type()Returns the field descriptor of the field.InvokeDynamicInstruction.type()Returns the invocation type of the call site.InvokeInstruction.type()Returns the method descriptor of the method.LocalVariable.type()Returns the local variable field descriptor.Methods in java.lang.classfile.instructionPREVIEW with parameters of type Utf8EntryPREVIEWModifier and TypeMethodDescriptionstatic FieldInstructionPREVIEWFieldInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type) Returns a field access instruction.static InvokeInstructionPREVIEWInvokeInstruction.of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type, boolean isInterface) Returns an invocation instruction.static LocalVariablePREVIEWLocalVariable.of(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable pseudo-instruction.static LocalVariableTypePREVIEWLocalVariableType.of(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable type pseudo-instruction.