Uses of Interface
java.lang.classfile.constantpool.Utf8Entry
Packages that use Utf8Entry
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing
class
file attributes for the java.lang.classfile
library.Provides interfaces describing 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()
Returns the name of the attribute.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 string of this field.MethodModel.methodName()
Returns the name of this method.MethodModel.methodType()
Returns the method descriptor string 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) Declares a local variable entry.default CodeBuilder
CodeBuilder.localVariableType
(int slot, Utf8Entry nameEntry, Utf8Entry signatureEntry, Label startScope, Label endScope) Declares a local variable type entry.static 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, with only access flags.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 access flags and aCodeModel
.Method parameters in java.lang.classfile with type arguments of type Utf8EntryModifier and TypeMethodDescriptionClassFile.AttributeMapperOption.of
(Function<Utf8Entry, AttributeMapper<?>> attributeMapper) Returns an option describing user-defined attributes for parsing. -
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 string 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 string of the local variable.SignatureAttribute.signature()
Returns the signature string for the class, method, field, or record component.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 string 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 exactly one method or constructor.EnclosingMethodAttribute.enclosingMethodType()
Returns the name of the enclosing method, if the class is immediately enclosed by exactly one 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()
Returns the parameter name, if it has 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 method descriptor string.ClassEntry.name()
Returns theUtf8Entry
referred by this structure.default Utf8Entry
DynamicConstantPoolEntry.name()
Returns the name indicated by this symbolic reference.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 internal form of the package name.default Utf8Entry
DynamicConstantPoolEntry.type()
Returns the descriptor string indicated by this symbolic reference.default Utf8Entry
MemberRefEntry.type()
Returns the descriptor string of the member.NameAndTypeEntry.type()
Returns the field or method descriptor string.StringEntry.utf8()
Returns the UTF constant pool entry describing the string contents.default Utf8Entry
default Utf8Entry
ConstantPoolBuilder.utf8Entry
(MethodTypeDesc desc) Methods in java.lang.classfile.constantpool with parameters of type Utf8EntryModifier and TypeMethodDescriptionConstantPoolBuilder.classEntry
(Utf8Entry ne) Returns aClassEntry
referring to the providedUtf8Entry
.ConstantPoolBuilder.methodTypeEntry
(Utf8Entry descriptor) Returns aMethodTypeEntry
referring to aUtf8Entry
.ConstantPoolBuilder.moduleEntry
(Utf8Entry moduleName) Returns aModuleEntry
referring to the providedUtf8Entry
.ConstantPoolBuilder.nameAndTypeEntry
(Utf8Entry nameEntry, Utf8Entry typeEntry) Returns aNameAndTypeEntry
referring to the provided name and typeUtf8Entry
.ConstantPoolBuilder.packageEntry
(Utf8Entry nameEntry) Returns aPackageEntry
referring to the providedUtf8Entry
.ConstantPoolBuilder.stringEntry
(Utf8Entry utf8) Returns aStringEntry
referring to aUtf8Entry
. -
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 generic signature string.default Utf8Entry
FieldInstruction.type()
Returns the field descriptor string of the field.default Utf8Entry
InvokeDynamicInstruction.type()
Returns the invocation type of the call site.default Utf8Entry
InvokeInstruction.type()
Returns the method descriptor string of the method.LocalVariable.type()
Returns the local variable field descriptor string.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.