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.classfile
PREVIEW library.Provides interfaces describing classfile constant pool entries for the
java.lang.classfile
PREVIEW library.Provides interfaces describing code instructions for the
java.lang.classfile
PREVIEW library.-
Uses of Utf8EntryPREVIEW in java.lang.classfilePREVIEW
Modifier 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.Modifier and TypeMethodDescriptionClassFile.AttributeMapperOption.attributeMapper()
Returns the function mapping attribute names to attribute mappers.ClassReader.customAttributes()
Returns the table of custom attribute mappers.Modifier and TypeMethodDescriptiondefault CodeBuilderPREVIEW
CodeBuilder.localVariable
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable entrydefault CodeBuilderPREVIEW
CodeBuilder.localVariableType
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable type entrystatic AnnotationPREVIEW
Annotation.of
(Utf8EntryPREVIEW annotationClass, AnnotationElementPREVIEW... elements) Returns an annotation.static AnnotationPREVIEW
Returns an annotation.static AnnotationElementPREVIEW
AnnotationElement.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 ClassBuilderPREVIEW
Adds 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 ClassBuilderPREVIEW
ClassBuilder.withMethodBody
(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, int methodFlags, Consumer<? super CodeBuilderPREVIEW> handler) Adds a method, with only aCode
attribute. -
Uses of Utf8EntryPREVIEW in java.lang.classfile.attributePREVIEW
Modifier 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.Modifier 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.Modifier and TypeMethodDescriptionReturns aCompilationID
attribute.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) Returns aModule
attribute.static ModuleHashesAttributePREVIEW
ModuleHashesAttribute.of
(Utf8EntryPREVIEW algorithm, ModuleHashInfoPREVIEW... hashes) Returns aModuleHashes
attribute.static ModuleHashesAttributePREVIEW
Returns aModuleHashes
attribute.static ModuleRequireInfoPREVIEW
ModuleRequireInfo.of
(ModuleEntryPREVIEW requires, int requiresFlags, Utf8EntryPREVIEW requiresVersion) Returns a module requirement description.static ModuleRequireInfoPREVIEW
ModuleRequireInfo.of
(ModuleEntryPREVIEW requires, Collection<AccessFlag> requiresFlags, Utf8EntryPREVIEW requiresVersion) Returns a module requirement description.static ModuleTargetAttributePREVIEW
Returns aModuleTarget
attribute.static RecordComponentInfoPREVIEW
RecordComponentInfo.of
(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, AttributePREVIEW<?>... attributes) Returns a record component description.static RecordComponentInfoPREVIEW
RecordComponentInfo.of
(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, List<AttributePREVIEW<?>> attributes) Returns a record component description.static SignatureAttributePREVIEW
Returns aSignature
attribute.static SourceFileAttributePREVIEW
Returns a source file attribute.static SourceIDAttributePREVIEW
Returns aSourceID
attribute. -
Uses of Utf8EntryPREVIEW in java.lang.classfile.constantpoolPREVIEW
Modifier 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) Modifier and TypeMethodDescriptionConstantPoolBuilder.classEntry
(Utf8EntryPREVIEW ne) Returns AClassEntry
PREVIEW describing the class whose internal name is encoded in the provided Utf8Entry.ConstantPoolBuilder.methodTypeEntry
(Utf8EntryPREVIEW descriptor) Returns AMethodTypeEntry
PREVIEW describing a method type.ConstantPoolBuilder.moduleEntry
(Utf8EntryPREVIEW moduleName) ConstantPoolBuilder.nameAndTypeEntry
(Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW typeEntry) Returns ANameAndTypeEntry
PREVIEW describing the provided name and type.ConstantPoolBuilder.packageEntry
(Utf8EntryPREVIEW nameEntry) Returns APackageEntry
PREVIEW describing the class whose internal name is encoded in the provided Utf8Entry.ConstantPoolBuilder.stringEntry
(Utf8EntryPREVIEW utf8) Returns AStringEntry
PREVIEW referencing the provided UTF8 entry. -
Uses of Utf8EntryPREVIEW in java.lang.classfile.instructionPREVIEW
Modifier 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.Modifier and TypeMethodDescriptionstatic FieldInstructionPREVIEW
FieldInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type) Returns a field access instruction.static InvokeInstructionPREVIEW
InvokeInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type, boolean isInterface) Returns an invocation instruction.static LocalVariablePREVIEW
LocalVariable.of
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable pseudo-instruction.static LocalVariableTypePREVIEW
LocalVariableType.of
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable type pseudo-instruction.