# Uses of Interface
java.lang.classfile.constantpool.NameAndTypeEntry

Packages that use NameAndTypeEntryPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the `java.lang.classfile`PREVIEW library.
java.lang.classfile.constantpool
Provides interfaces describing classfile constant pool entries for the `java.lang.classfile`PREVIEW library.
java.lang.classfile.instruction
Provides interfaces describing code instructions for the `java.lang.classfile`PREVIEW library.

- ## Uses of NameAndTypeEntryPREVIEW in java.lang.classfilePREVIEW

  Methods in java.lang.classfilePREVIEW that return NameAndTypeEntryPREVIEW
  Modifier and Type
  Method
  Description
  `NameAndTypeEntryPREVIEW`
  ClassReader.`readNameAndTypeEntry(int offset)`
  Returns the name-and-type entry whose index is given at the specified offset within the classfile.

- ## Uses of NameAndTypeEntryPREVIEW in java.lang.classfile.attributePREVIEW

  Methods in java.lang.classfile.attributePREVIEW that return types with arguments of type NameAndTypeEntryPREVIEW
  Modifier and Type
  Method
  Description
  `Optional<NameAndTypeEntryPREVIEW>`
  EnclosingMethodAttribute.`enclosingMethod()`
  Returns the name and type of the enclosing method, if the class is immediately enclosed by a method or constructor.
  Method parameters in java.lang.classfile.attributePREVIEW with type arguments of type NameAndTypeEntryPREVIEW
  Modifier and Type
  Method
  Description
  `static EnclosingMethodAttributePREVIEW`
  EnclosingMethodAttribute.`of(ClassEntryPREVIEW className, Optional<NameAndTypeEntryPREVIEW> method)`
  Returns an `EnclosingMethod` attribute.

- ## Uses of NameAndTypeEntryPREVIEW in java.lang.classfile.constantpoolPREVIEW

  Methods in java.lang.classfile.constantpoolPREVIEW that return NameAndTypeEntryPREVIEW
  Modifier and Type
  Method
  Description
  `NameAndTypeEntryPREVIEW`
  DynamicConstantPoolEntry.`nameAndType()`
  Returns the invocation name and type.
  `NameAndTypeEntryPREVIEW`
  MemberRefEntry.`nameAndType()`
  Returns the name and type of the member.
  `NameAndTypeEntryPREVIEW`
  ConstantPoolBuilder.`nameAndTypeEntry(Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW typeEntry)`
  Returns A `NameAndTypeEntry`PREVIEW describing the provided name and type.
  `default NameAndTypeEntryPREVIEW`
  ConstantPoolBuilder.`nameAndTypeEntry(String name, ClassDesc type)`
  Returns A `NameAndTypeEntry`PREVIEW describing the provided name and type.
  `default NameAndTypeEntryPREVIEW`
  ConstantPoolBuilder.`nameAndTypeEntry(String name, MethodTypeDesc type)`
  Returns A `NameAndTypeEntry`PREVIEW describing the provided name and type.
  Methods in java.lang.classfile.constantpoolPREVIEW with parameters of type NameAndTypeEntryPREVIEW
  Modifier and Type
  Method
  Description
  `ConstantDynamicEntryPREVIEW`
  ConstantPoolBuilder.`constantDynamicEntry(BootstrapMethodEntryPREVIEW bootstrapMethodEntry, NameAndTypeEntryPREVIEW nameAndType)`
  Returns A `ConstantDynamicEntry`PREVIEW describing a dynamic constant.
  `FieldRefEntryPREVIEW`
  ConstantPoolBuilder.`fieldRefEntry(ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType)`
  Returns A `FieldRefEntry`PREVIEW describing a field of a class.
  `InterfaceMethodRefEntryPREVIEW`
  ConstantPoolBuilder.`interfaceMethodRefEntry(ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType)`
  Returns A `InterfaceMethodRefEntry`PREVIEW describing a method of a class.
  `InvokeDynamicEntryPREVIEW`
  ConstantPoolBuilder.`invokeDynamicEntry(BootstrapMethodEntryPREVIEW bootstrapMethodEntry, NameAndTypeEntryPREVIEW nameAndType)`
  Returns An `InvokeDynamicEntry`PREVIEW describing a dynamic call site.
  `MethodRefEntryPREVIEW`
  ConstantPoolBuilder.`methodRefEntry(ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType)`
  Returns A `MethodRefEntry`PREVIEW describing a method of a class.

- ## Uses of NameAndTypeEntryPREVIEW in java.lang.classfile.instructionPREVIEW

  Methods in java.lang.classfile.instructionPREVIEW with parameters of type NameAndTypeEntryPREVIEW
  Modifier and Type
  Method
  Description
  `static FieldInstructionPREVIEW`
  FieldInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType)`
  Returns a field access instruction.
  `static InvokeInstructionPREVIEW`
  InvokeInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType, boolean isInterface)`
  Returns an invocation instruction.