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 CodeBuilderCodeBuilder.localVariable(int slot, Utf8Entry nameEntry, Utf8Entry descriptorEntry, Label startScope, Label endScope) Declares a local variable entry.default CodeBuilderCodeBuilder.localVariableType(int slot, Utf8Entry nameEntry, Utf8Entry signatureEntry, Label startScope, Label endScope) Declares a local variable type entry.static AnnotationAnnotation.of(Utf8Entry annotationClass, AnnotationElement... elements) Returns an annotation.static AnnotationAnnotation.of(Utf8Entry annotationClass, List<AnnotationElement> elements) Returns an annotation.static AnnotationElementAnnotationElement.of(Utf8Entry name, AnnotationValue value) Returns an element-value pair.static AnnotationValue.OfClassReturns a class value for an element-value pair.static AnnotationValue.OfEnumReturns an enum value for an element-value pair.static AnnotationValue.OfStringReturns a string value for an element-value pair.default ClassBuilderAdds 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 ClassBuilderClassBuilder.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 CompilationIDAttributeReturns aCompilationIDattribute.static ModuleAttributeModuleAttribute.of(ModuleEntry moduleName, int moduleFlags, Utf8Entry moduleVersion, Collection<ModuleRequireInfo> requires, Collection<ModuleExportInfo> exports, Collection<ModuleOpenInfo> opens, Collection<ClassEntry> uses, Collection<ModuleProvideInfo> provides) Returns aModuleattribute.static ModuleHashesAttributeModuleHashesAttribute.of(Utf8Entry algorithm, ModuleHashInfo... hashes) Returns aModuleHashesattribute.static ModuleHashesAttributeModuleHashesAttribute.of(Utf8Entry algorithm, List<ModuleHashInfo> hashes) Returns aModuleHashesattribute.static ModuleRequireInfoModuleRequireInfo.of(ModuleEntry requires, int requiresFlags, Utf8Entry requiresVersion) Returns a module requirement description.static ModuleRequireInfoModuleRequireInfo.of(ModuleEntry requires, Collection<AccessFlag> requiresFlags, Utf8Entry requiresVersion) Returns a module requirement description.static ModuleTargetAttributeReturns aModuleTargetattribute.static RecordComponentInfoReturns a record component description.static RecordComponentInfoReturns a record component description.static SignatureAttributeReturns aSignatureattribute.static SourceFileAttributeReturns a source file attribute.static SourceIDAttributeReturns aSourceIDattribute.Method parameters in java.lang.classfile.attribute with type arguments of type Utf8EntryModifier and TypeMethodDescriptionstatic MethodParameterInfoReturns 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 theUtf8Entryreferred by this structure.default Utf8EntryDynamicConstantPoolEntry.name()Returns the name indicated by this symbolic reference.default Utf8EntryMemberRefEntry.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 Utf8EntryDynamicConstantPoolEntry.type()Returns the descriptor string indicated by this symbolic reference.default Utf8EntryMemberRefEntry.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 Utf8Entrydefault Utf8EntryConstantPoolBuilder.utf8Entry(MethodTypeDesc desc) Methods in java.lang.classfile.constantpool with parameters of type Utf8EntryModifier and TypeMethodDescriptionConstantPoolBuilder.classEntry(Utf8Entry ne) Returns aClassEntryreferring to the providedUtf8Entry.ConstantPoolBuilder.methodTypeEntry(Utf8Entry descriptor) Returns aMethodTypeEntryreferring to aUtf8Entry.ConstantPoolBuilder.moduleEntry(Utf8Entry moduleName) Returns aModuleEntryreferring to the providedUtf8Entry.ConstantPoolBuilder.nameAndTypeEntry(Utf8Entry nameEntry, Utf8Entry typeEntry) Returns aNameAndTypeEntryreferring to the provided name and typeUtf8Entry.ConstantPoolBuilder.packageEntry(Utf8Entry nameEntry) Returns aPackageEntryreferring to the providedUtf8Entry.ConstantPoolBuilder.stringEntry(Utf8Entry utf8) Returns aStringEntryreferring to aUtf8Entry. -
Uses of Utf8Entry in java.lang.classfile.instruction
Methods in java.lang.classfile.instruction that return Utf8EntryModifier and TypeMethodDescriptiondefault Utf8EntryFieldInstruction.name()Returns the name of the field.default Utf8EntryInvokeDynamicInstruction.name()Returns the invocation name of the call site.default Utf8EntryInvokeInstruction.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 Utf8EntryFieldInstruction.type()Returns the field descriptor string of the field.default Utf8EntryInvokeDynamicInstruction.type()Returns the invocation type of the call site.default Utf8EntryInvokeInstruction.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 FieldInstructionFieldInstruction.of(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type) Returns a field access instruction.static InvokeInstructionInvokeInstruction.of(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type, boolean isInterface) Returns an invocation instruction.static LocalVariableLocalVariable.of(int slot, Utf8Entry nameEntry, Utf8Entry descriptorEntry, Label startScope, Label endScope) Returns a local variable pseudo-instruction.static LocalVariableTypeLocalVariableType.of(int slot, Utf8Entry nameEntry, Utf8Entry signatureEntry, Label startScope, Label endScope) Returns a local variable type pseudo-instruction.