Uses of Interface
java.lang.classfile.constantpool.Utf8Entry
Packages that use Utf8Entry
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing classfile attributes for the
java.lang.classfile
library.Provides interfaces describing classfile constant pool entries for the
java.lang.classfile
library.Provides interfaces describing code instructions for the
java.lang.classfile
library.-
Uses of Utf8Entry in java.lang.classfile
Methods in java.lang.classfile that return Utf8EntryModifier and TypeMethodDescriptionAttribute.attributeName()
Returns the name of the attribute.CustomAttribute.attributeName()
Annotation.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.classfile that return types with arguments of type Utf8EntryModifier 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.classfile with parameters of type Utf8EntryModifier and TypeMethodDescriptiondefault CodeBuilder
CodeBuilder.localVariable
(int slot, Utf8Entry nameEntry, Utf8Entry descriptorEntry, Label startScope, Label endScope) Declare a local variable entrydefault CodeBuilder
CodeBuilder.localVariableType
(int slot, Utf8Entry nameEntry, Utf8Entry signatureEntry, Label startScope, Label endScope) Declare a local variable type entrystatic Annotation
Annotation.of
(Utf8Entry annotationClass, AnnotationElement... elements) Returns an annotation.static Annotation
Annotation.of
(Utf8Entry annotationClass, List<AnnotationElement> elements) Returns an annotation.static AnnotationElement
AnnotationElement.of
(Utf8Entry name, AnnotationValue value) Returns an element-value pair.static AnnotationValue.OfClass
Returns a class value for an element-value pair.static AnnotationValue.OfEnum
Returns an enum value for an element-value pair.static AnnotationValue.OfString
Returns a string value for an element-value pair.default ClassBuilder
Adds a field.ClassBuilder.withField
(Utf8Entry name, Utf8Entry descriptor, Consumer<? super FieldBuilder> handler) Adds a field.ClassBuilder.withMethod
(Utf8Entry name, Utf8Entry descriptor, int methodFlags, Consumer<? super MethodBuilder> handler) Adds a method.default ClassBuilder
ClassBuilder.withMethodBody
(Utf8Entry name, Utf8Entry descriptor, int methodFlags, Consumer<? super CodeBuilder> handler) Adds a method, with only aCode
attribute.Method parameters in java.lang.classfile with type arguments of type Utf8EntryModifier and TypeMethodDescriptionClassFile.AttributeMapperOption.of
(Function<Utf8Entry, AttributeMapper<?>> attributeMapper) Returns an option describing attribute mappers for custom attributes. -
Uses of Utf8Entry in java.lang.classfile.attribute
Methods in java.lang.classfile.attribute that return Utf8EntryModifier 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.attribute that return types with arguments of type Utf8EntryModifier 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.attribute with parameters of type Utf8EntryModifier and TypeMethodDescriptionstatic CompilationIDAttribute
Returns aCompilationID
attribute.static ModuleAttribute
ModuleAttribute.of
(ModuleEntry moduleName, int moduleFlags, Utf8Entry moduleVersion, Collection<ModuleRequireInfo> requires, Collection<ModuleExportInfo> exports, Collection<ModuleOpenInfo> opens, Collection<ClassEntry> uses, Collection<ModuleProvideInfo> provides) Returns aModule
attribute.static ModuleHashesAttribute
ModuleHashesAttribute.of
(Utf8Entry algorithm, ModuleHashInfo... hashes) Returns aModuleHashes
attribute.static ModuleHashesAttribute
ModuleHashesAttribute.of
(Utf8Entry algorithm, List<ModuleHashInfo> hashes) Returns aModuleHashes
attribute.static ModuleRequireInfo
ModuleRequireInfo.of
(ModuleEntry requires, int requiresFlags, Utf8Entry requiresVersion) Returns a module requirement description.static ModuleRequireInfo
ModuleRequireInfo.of
(ModuleEntry requires, Collection<AccessFlag> requiresFlags, Utf8Entry requiresVersion) Returns a module requirement description.static ModuleTargetAttribute
Returns aModuleTarget
attribute.static RecordComponentInfo
Returns a record component description.static RecordComponentInfo
Returns a record component description.static SignatureAttribute
Returns aSignature
attribute.static SourceFileAttribute
Returns a source file attribute.static SourceIDAttribute
Returns aSourceID
attribute.Method parameters in java.lang.classfile.attribute with type arguments of type Utf8EntryModifier and TypeMethodDescriptionstatic MethodParameterInfo
Returns a method parameter description. -
Uses of Utf8Entry in java.lang.classfile.constantpool
Methods in java.lang.classfile.constantpool that return Utf8EntryModifier and TypeMethodDescriptionMethodTypeEntry.descriptor()
Returns the constant pool entry describing the method type.ClassEntry.name()
Returns the UTF8 constant pool entry for the class name.default Utf8Entry
DynamicConstantPoolEntry.name()
Returns the invocation name.default Utf8Entry
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.default Utf8Entry
DynamicConstantPoolEntry.type()
Returns the invocation type.default Utf8Entry
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.default Utf8Entry
default Utf8Entry
ConstantPoolBuilder.utf8Entry
(MethodTypeDesc desc) Returns AUtf8Entry
describing the method descriptor of the provided MethodTypeDesc.Methods in java.lang.classfile.constantpool with parameters of type Utf8EntryModifier and TypeMethodDescriptionConstantPoolBuilder.classEntry
(Utf8Entry ne) Returns AClassEntry
describing the class whose internal name is encoded in the provided Utf8Entry.ConstantPoolBuilder.methodTypeEntry
(Utf8Entry descriptor) Returns AMethodTypeEntry
describing a method type.ConstantPoolBuilder.moduleEntry
(Utf8Entry moduleName) Returns AModuleEntry
describing the module whose name is encoded in the provided Utf8Entry.ConstantPoolBuilder.nameAndTypeEntry
(Utf8Entry nameEntry, Utf8Entry typeEntry) Returns ANameAndTypeEntry
describing the provided name and type.ConstantPoolBuilder.packageEntry
(Utf8Entry nameEntry) Returns APackageEntry
describing the class whose internal name is encoded in the provided Utf8Entry.ConstantPoolBuilder.stringEntry
(Utf8Entry utf8) Returns AStringEntry
referencing the provided UTF8 entry. -
Uses of Utf8Entry in java.lang.classfile.instruction
Methods in java.lang.classfile.instruction that return Utf8EntryModifier and TypeMethodDescriptiondefault Utf8Entry
FieldInstruction.name()
Returns the name of the field.default Utf8Entry
InvokeDynamicInstruction.name()
Returns the invocation name of the call site.default Utf8Entry
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.default Utf8Entry
FieldInstruction.type()
Returns the field descriptor of the field.default Utf8Entry
InvokeDynamicInstruction.type()
Returns the invocation type of the call site.default Utf8Entry
InvokeInstruction.type()
Returns the method descriptor of the method.LocalVariable.type()
Returns the local variable field descriptor.Methods in java.lang.classfile.instruction with parameters of type Utf8EntryModifier and TypeMethodDescriptionstatic FieldInstruction
FieldInstruction.of
(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type) Returns a field access instruction.static InvokeInstruction
InvokeInstruction.of
(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type, boolean isInterface) Returns an invocation instruction.static LocalVariable
LocalVariable.of
(int slot, Utf8Entry nameEntry, Utf8Entry descriptorEntry, Label startScope, Label endScope) Returns a local variable pseudo-instruction.static LocalVariableType
LocalVariableType.of
(int slot, Utf8Entry nameEntry, Utf8Entry signatureEntry, Label startScope, Label endScope) Returns a local variable type pseudo-instruction.