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

Packages that use ClassEntryPREVIEW
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 ClassEntryPREVIEW in java.lang.classfilePREVIEW

  Methods in java.lang.classfilePREVIEW that return ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `ClassEntryPREVIEW`
  ClassReader.`readClassEntry(int offset)`
  Returns the class entry whose index is given at the specified offset within the classfile.
  `ClassEntryPREVIEW`
  Superclass.`superclassEntry()`
  Returns the superclass.
  `ClassEntryPREVIEW`
  ClassModel.`thisClass()`
  Returns the constant pool entry describing the name of this class.
  `ClassEntryPREVIEW`
  ClassReader.`thisClassEntry()`
  Returns the constant pool entry describing the name of class.
  Methods in java.lang.classfilePREVIEW that return types with arguments of type ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `List<ClassEntryPREVIEW>`
  ClassModel.`interfaces()`
  Returns the interfaces implemented by this class.
  `List<ClassEntryPREVIEW>`
  Interfaces.`interfaces()`
  Returns the interfaces of this class.
  `Optional<ClassEntryPREVIEW>`
  ClassModel.`superclass()`
  Returns the superclass of this class, if there is one.
  `Optional<ClassEntryPREVIEW>`
  ClassReader.`superclassEntry()`
  Returns the constant pool entry describing the name of the superclass, if any.
  Methods in java.lang.classfilePREVIEW with parameters of type ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `default CodeBuilderPREVIEW`
  CodeBuilder.`anewarray(ClassEntryPREVIEW classEntry)`
  Generate an instruction to create a new array of reference
  `byte[]`
  ClassFile.`build(ClassEntryPREVIEW thisClassEntry, ConstantPoolBuilderPREVIEW constantPool, Consumer<? super ClassBuilderPREVIEW> handler)`
  Build a classfile into a byte array using the provided constant pool builder.
  `default void`
  ClassFile.`buildTo(Path path, ClassEntryPREVIEW thisClassEntry, ConstantPoolBuilderPREVIEW constantPool, Consumer<? super ClassBuilderPREVIEW> handler)`
  Build a classfile into a file using the provided constant pool builder.
  `default CodeBuilderPREVIEW`
  CodeBuilder.`checkcast(ClassEntryPREVIEW type)`
  Generate an instruction to check whether an object is of the given type
  `default CodeBuilderPREVIEW`
  CodeBuilder.`exceptionCatch(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassEntryPREVIEW catchType)`
  Declare an exception table entry
  `default CodeBuilderPREVIEW`
  CodeBuilder.`instanceof_(ClassEntryPREVIEW target)`
  Generate an instruction to determine if an object is of the given type
  `default CodeBuilderPREVIEW`
  CodeBuilder.`multianewarray(ClassEntryPREVIEW array, int dims)`
  Generate an instruction to create a new multidimensional array
  `default CodeBuilderPREVIEW`
  CodeBuilder.`new_(ClassEntryPREVIEW clazz)`
  Generate an instruction to create a new object
  `default CodeBuilderPREVIEW`
  CodeBuilder.`newMultidimensionalArrayInstruction(int dimensions, ClassEntryPREVIEW type)`
  Generate an instruction to create a new multidimensional array
  `default CodeBuilderPREVIEW`
  CodeBuilder.`newObjectInstruction(ClassEntryPREVIEW type)`
  Generate an instruction to create a new object
  `default CodeBuilderPREVIEW`
  CodeBuilder.`newReferenceArrayInstruction(ClassEntryPREVIEW type)`
  Generate an instruction to create a new array of reference
  `static InterfacesPREVIEW`
  Interfaces.`of(ClassEntryPREVIEW... interfaces)`
  Returns an InterfacesPREVIEW element.
  `static SuperclassPREVIEW`
  Superclass.`of(ClassEntryPREVIEW superclassEntry)`
  Returns a SuperclassPREVIEW element.
  `byte[]`
  ClassFile.`transform(ClassModelPREVIEW model, ClassEntryPREVIEW newClassName, ClassTransformPREVIEW transform)`
  Transform one classfile into a new classfile with the aid of a `ClassTransform`PREVIEW.
  `default CodeBuilderPREVIEW`
  CodeBuilder.`typeCheckInstruction(OpcodePREVIEW opcode, ClassEntryPREVIEW type)`
  Generate a type checking instruction
  `default ClassBuilderPREVIEW`
  ClassBuilder.`withInterfaces(ClassEntryPREVIEW... interfaces)`
  Sets the interfaces of this class.
  `default ClassBuilderPREVIEW`
  ClassBuilder.`withSuperclass(ClassEntryPREVIEW superclassEntry)`
  Sets the superclass of this class.
  Method parameters in java.lang.classfilePREVIEW with type arguments of type ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `default CodeBuilderPREVIEW`
  CodeBuilder.`exceptionCatch(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, Optional<ClassEntryPREVIEW> catchType)`
  Declare an exception table entry
  `static InterfacesPREVIEW`
  Interfaces.`of(List<ClassEntryPREVIEW> interfaces)`
  Returns an InterfacesPREVIEW element.
  `default ClassBuilderPREVIEW`
  ClassBuilder.`withInterfaces(List<ClassEntryPREVIEW> interfaces)`
  Sets the interfaces of this class.

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

  Methods in java.lang.classfile.attributePREVIEW that return ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `ClassEntryPREVIEW`
  StackMapFrameInfo.ObjectVerificationTypeInfo.`className()`
  Returns the class of the object.
  `ClassEntryPREVIEW`
  EnclosingMethodAttribute.`enclosingClass()`
  Returns the innermost class that encloses the declaration of the current class.
  `ClassEntryPREVIEW`
  InnerClassInfo.`innerClass()`
  Returns the class described by this inner class description.
  `ClassEntryPREVIEW`
  ModuleMainClassAttribute.`mainClass()`
  Returns main class for this module.
  `ClassEntryPREVIEW`
  NestHostAttribute.`nestHost()`
  Returns the host class of the nest to which this class belongs.
  `ClassEntryPREVIEW`
  ModuleProvideInfo.`provides()`
  Returns the service interface representing the provided service.
  Methods in java.lang.classfile.attributePREVIEW that return types with arguments of type ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `List<ClassEntryPREVIEW>`
  ExceptionsAttribute.`exceptions()`
  Returns the exceptions declared to be thrown by this method.
  `List<ClassEntryPREVIEW>`
  NestMembersAttribute.`nestMembers()`
  Returns the classes belonging to the nest hosted by this class.
  `Optional<ClassEntryPREVIEW>`
  InnerClassInfo.`outerClass()`
  Returns the class or interface of which this class is a member, if it is a member of a class or interface.
  `List<ClassEntryPREVIEW>`
  PermittedSubclassesAttribute.`permittedSubclasses()`
  Returns the list of permitted subclasses.
  `List<ClassEntryPREVIEW>`
  ModuleProvideInfo.`providesWith()`
  Returns the classes providing the service implementation.
  `List<ClassEntryPREVIEW>`
  ModuleAttribute.`uses()`
  Returns the services used by this module.
  Methods in java.lang.classfile.attributePREVIEW with parameters of type ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `static EnclosingMethodAttributePREVIEW`
  EnclosingMethodAttribute.`of(ClassEntryPREVIEW className, Optional<NameAndTypeEntryPREVIEW> method)`
  Returns an `EnclosingMethod` attribute.
  `static ExceptionsAttributePREVIEW`
  ExceptionsAttribute.`of(ClassEntryPREVIEW... exceptions)`
  Returns an `Exceptions` attribute.
  `static InnerClassInfoPREVIEW`
  InnerClassInfo.`of(ClassEntryPREVIEW innerClass, Optional<ClassEntryPREVIEW> outerClass, Optional<Utf8EntryPREVIEW> innerName, int flags)`
  Returns an inner class description.
  `static ModuleMainClassAttributePREVIEW`
  ModuleMainClassAttribute.`of(ClassEntryPREVIEW mainClass)`
  Returns a `ModuleMainClass` attribute.
  `static ModuleProvideInfoPREVIEW`
  ModuleProvideInfo.`of(ClassEntryPREVIEW provides, ClassEntryPREVIEW... providesWith)`
  Returns a service provision description.
  `static ModuleProvideInfoPREVIEW`
  ModuleProvideInfo.`of(ClassEntryPREVIEW provides, List<ClassEntryPREVIEW> providesWith)`
  Returns a service provision description.
  `static NestHostAttributePREVIEW`
  NestHostAttribute.`of(ClassEntryPREVIEW nestHost)`
  Returns a `NestHost` attribute.
  `static NestMembersAttributePREVIEW`
  NestMembersAttribute.`of(ClassEntryPREVIEW... nestMembers)`
  Returns a `NestMembers` attribute.
  `static PermittedSubclassesAttributePREVIEW`
  PermittedSubclassesAttribute.`of(ClassEntryPREVIEW... permittedSubclasses)`
  Returns a `PermittedSubclasses` attribute.
  `static StackMapFrameInfo.ObjectVerificationTypeInfoPREVIEW`
  StackMapFrameInfo.ObjectVerificationTypeInfo.`of(ClassEntryPREVIEW className)`
  Returns a new object verification type info.
  `ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`uses(ClassEntryPREVIEW uses)`
  Declares use of a service
  Method parameters in java.lang.classfile.attributePREVIEW with type arguments of type ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `static ExceptionsAttributePREVIEW`
  ExceptionsAttribute.`of(List<ClassEntryPREVIEW> exceptions)`
  Returns an `Exceptions` attribute.
  `static InnerClassInfoPREVIEW`
  InnerClassInfo.`of(ClassEntryPREVIEW innerClass, Optional<ClassEntryPREVIEW> outerClass, Optional<Utf8EntryPREVIEW> innerName, int flags)`
  Returns an inner class description.
  `static ModuleProvideInfoPREVIEW`
  ModuleProvideInfo.`of(ClassEntryPREVIEW provides, List<ClassEntryPREVIEW> providesWith)`
  Returns a service provision description.
  `static NestMembersAttributePREVIEW`
  NestMembersAttribute.`of(List<ClassEntryPREVIEW> nestMembers)`
  Returns a `NestMembers` attribute.
  `static PermittedSubclassesAttributePREVIEW`
  PermittedSubclassesAttribute.`of(List<ClassEntryPREVIEW> permittedSubclasses)`
  Returns a `PermittedSubclasses` attribute.

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

  Methods in java.lang.classfile.constantpoolPREVIEW that return ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `ClassEntryPREVIEW`
  ConstantPoolBuilder.`classEntry(Utf8EntryPREVIEW ne)`
  Returns A `ClassEntry`PREVIEW describing the class whose internal name is encoded in the provided Utf8EntryPREVIEW.
  `default ClassEntryPREVIEW`
  ConstantPoolBuilder.`classEntry(ClassDesc classDesc)`
  Returns A `ClassEntry`PREVIEW describing the class described by provided ClassDesc.
  `ClassEntryPREVIEW`
  MemberRefEntry.`owner()`
  Returns the class in which this member ref lives.
  Methods in java.lang.classfile.constantpoolPREVIEW with parameters of type ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `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.
  `MethodRefEntryPREVIEW`
  ConstantPoolBuilder.`methodRefEntry(ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType)`
  Returns A `MethodRefEntry`PREVIEW describing a method of a class.

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

  Methods in java.lang.classfile.instructionPREVIEW that return ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `ClassEntryPREVIEW`
  NewMultiArrayInstruction.`arrayType()`
  Returns the type of the array, as a symbolic descriptor.
  `ClassEntryPREVIEW`
  NewObjectInstruction.`className()`
  Returns the type of object to create.
  `ClassEntryPREVIEW`
  NewReferenceArrayInstruction.`componentType()`
  Returns the component type of the array.
  `default ClassEntryPREVIEW`
  FieldInstruction.`owner()`
  Returns the class holding the field.
  `default ClassEntryPREVIEW`
  InvokeInstruction.`owner()`
  Returns the class holding the method.
  `ClassEntryPREVIEW`
  TypeCheckInstruction.`type()`
  Returns the type against which the instruction checks or casts.
  Methods in java.lang.classfile.instructionPREVIEW that return types with arguments of type ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `Optional<ClassEntryPREVIEW>`
  ExceptionCatch.`catchType()`
  Returns the type of the exception to catch, or empty if this handler is unconditional.
  Methods in java.lang.classfile.instructionPREVIEW with parameters of type ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `static FieldInstructionPREVIEW`
  FieldInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType)`
  Returns a field access instruction.
  `static FieldInstructionPREVIEW`
  FieldInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type)`
  Returns a field access instruction.
  `static InvokeInstructionPREVIEW`
  InvokeInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType, boolean isInterface)`
  Returns an invocation instruction.
  `static InvokeInstructionPREVIEW`
  InvokeInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type, boolean isInterface)`
  Returns an invocation instruction.
  `static NewMultiArrayInstructionPREVIEW`
  NewMultiArrayInstruction.`of(ClassEntryPREVIEW arrayTypeEntry, int dimensions)`
  Returns a new multi-dimensional array instruction.
  `static NewObjectInstructionPREVIEW`
  NewObjectInstruction.`of(ClassEntryPREVIEW className)`
  Returns a new object instruction.
  `static NewReferenceArrayInstructionPREVIEW`
  NewReferenceArrayInstruction.`of(ClassEntryPREVIEW componentType)`
  Returns a new reference array instruction.
  `static TypeCheckInstructionPREVIEW`
  TypeCheckInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW type)`
  Returns a type check instruction.
  Method parameters in java.lang.classfile.instructionPREVIEW with type arguments of type ClassEntryPREVIEW
  Modifier and Type
  Method
  Description
  `static ExceptionCatchPREVIEW`
  ExceptionCatch.`of(LabelPREVIEW handler, LabelPREVIEW tryStart, LabelPREVIEW tryEnd, Optional<ClassEntryPREVIEW> catchTypeEntry)`
  Returns an exception table pseudo-instruction.