Uses of Interface
java.lang.classfile.constantpool.ClassEntry
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 ClassEntryPREVIEW in java.lang.classfilePREVIEW
Modifier and TypeMethodDescriptionSuperclass.superclassEntry()
Returns the superclass.ClassModel.thisClass()
Returns the constant pool entry describing the name of this class.ClassReader.thisClassEntry()
Returns the constant pool entry describing the name of class.Modifier and TypeMethodDescriptionClassModel.interfaces()
Returns the interfaces implemented by this class.Interfaces.interfaces()
Returns the interfaces of this class.ClassModel.superclass()
Returns the superclass of this class, if there is one.ClassReader.superclassEntry()
Returns the constant pool entry describing the name of the superclass, if any.Modifier and TypeMethodDescriptiondefault CodeBuilderPREVIEW
CodeBuilder.anewarray
(ClassEntryPREVIEW classEntry) Generate an instruction to create a new array of referencebyte[]
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 typedefault CodeBuilderPREVIEW
CodeBuilder.exceptionCatch
(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassEntryPREVIEW catchType) Declare an exception table entrydefault CodeBuilderPREVIEW
CodeBuilder.instanceOf
(ClassEntryPREVIEW target) Generate an instruction to determine if an object is of the given typedefault CodeBuilderPREVIEW
CodeBuilder.multianewarray
(ClassEntryPREVIEW array, int dims) Generate an instruction to create a new multidimensional arraydefault CodeBuilderPREVIEW
CodeBuilder.new_
(ClassEntryPREVIEW clazz) Generate an instruction to create a new objectstatic InterfacesPREVIEW
Interfaces.of
(ClassEntryPREVIEW... interfaces) Returns an Interfaces element.static SuperclassPREVIEW
Superclass.of
(ClassEntryPREVIEW superclassEntry) Returns a Superclass element.byte[]
ClassFile.transformClass
(ClassModelPREVIEW model, ClassEntryPREVIEW newClassName, ClassTransformPREVIEW transform) Transform one classfile into a new classfile with the aid of aClassTransform
PREVIEW.default ClassBuilderPREVIEW
ClassBuilder.withInterfaces
(ClassEntryPREVIEW... interfaces) Sets the interfaces of this class.default ClassBuilderPREVIEW
ClassBuilder.withSuperclass
(ClassEntryPREVIEW superclassEntry) Sets the superclass of this class.Modifier and TypeMethodDescriptiondefault CodeBuilderPREVIEW
CodeBuilder.exceptionCatch
(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, Optional<ClassEntryPREVIEW> catchType) Declare an exception table entrystatic InterfacesPREVIEW
Interfaces.of
(List<ClassEntryPREVIEW> interfaces) Returns an Interfaces element.default ClassBuilderPREVIEW
ClassBuilder.withInterfaces
(List<ClassEntryPREVIEW> interfaces) Sets the interfaces of this class. -
Uses of ClassEntryPREVIEW in java.lang.classfile.attributePREVIEW
Modifier and TypeMethodDescriptionStackMapFrameInfo.ObjectVerificationTypeInfo.className()
Returns the class of the object.EnclosingMethodAttribute.enclosingClass()
Returns the innermost class that encloses the declaration of the current class.InnerClassInfo.innerClass()
Returns the class described by this inner class description.ModuleMainClassAttribute.mainClass()
Returns main class for this module.NestHostAttribute.nestHost()
Returns the host class of the nest to which this class belongs.ModuleProvideInfo.provides()
Returns the service interface representing the provided service.Modifier and TypeMethodDescriptionExceptionsAttribute.exceptions()
Returns the exceptions declared to be thrown by this method.NestMembersAttribute.nestMembers()
Returns the classes belonging to the nest hosted by this class.InnerClassInfo.outerClass()
Returns the class or interface of which this class is a member, if it is a member of a class or interface.PermittedSubclassesAttribute.permittedSubclasses()
Returns the list of permitted subclasses.ModuleProvideInfo.providesWith()
Returns the classes providing the service implementation.ModuleAttribute.uses()
Returns the services used by this module.Modifier and TypeMethodDescriptionEnclosingMethodAttribute.of
(ClassEntryPREVIEW className, Optional<NameAndTypeEntryPREVIEW> method) Returns anEnclosingMethod
attribute.static ExceptionsAttributePREVIEW
ExceptionsAttribute.of
(ClassEntryPREVIEW... exceptions) Returns anExceptions
attribute.static InnerClassInfoPREVIEW
InnerClassInfo.of
(ClassEntryPREVIEW innerClass, Optional<ClassEntryPREVIEW> outerClass, Optional<Utf8EntryPREVIEW> innerName, int flags) Returns an inner class description.ModuleMainClassAttribute.of
(ClassEntryPREVIEW mainClass) Returns aModuleMainClass
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 aNestHost
attribute.static NestMembersAttributePREVIEW
NestMembersAttribute.of
(ClassEntryPREVIEW... nestMembers) Returns aNestMembers
attribute.PermittedSubclassesAttribute.of
(ClassEntryPREVIEW... permittedSubclasses) Returns aPermittedSubclasses
attribute.StackMapFrameInfo.ObjectVerificationTypeInfo.of
(ClassEntryPREVIEW className) Returns a new object verification type info.ModuleAttribute.ModuleAttributeBuilder.uses
(ClassEntryPREVIEW uses) Declares use of a serviceModifier and TypeMethodDescriptionstatic ExceptionsAttributePREVIEW
ExceptionsAttribute.of
(List<ClassEntryPREVIEW> exceptions) Returns anExceptions
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 aNestMembers
attribute.PermittedSubclassesAttribute.of
(List<ClassEntryPREVIEW> permittedSubclasses) Returns aPermittedSubclasses
attribute. -
Uses of ClassEntryPREVIEW in java.lang.classfile.constantpoolPREVIEW
Modifier and TypeMethodDescriptionConstantPoolBuilder.classEntry
(Utf8EntryPREVIEW ne) Returns AClassEntry
PREVIEW describing the class whose internal name is encoded in the provided Utf8Entry.default ClassEntryPREVIEW
ConstantPoolBuilder.classEntry
(ClassDesc classDesc) MemberRefEntry.owner()
Returns the class in which this member ref lives.Modifier and TypeMethodDescriptionConstantPoolBuilder.fieldRefEntry
(ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) Returns AFieldRefEntry
PREVIEW describing a field of a class.ConstantPoolBuilder.interfaceMethodRefEntry
(ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) Returns AInterfaceMethodRefEntry
PREVIEW describing a method of a class.ConstantPoolBuilder.methodRefEntry
(ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) Returns AMethodRefEntry
PREVIEW describing a method of a class. -
Uses of ClassEntryPREVIEW in java.lang.classfile.instructionPREVIEW
Modifier and TypeMethodDescriptionNewMultiArrayInstruction.arrayType()
Returns the type of the array, as a symbolic descriptor.NewObjectInstruction.className()
Returns the type of object to create.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.TypeCheckInstruction.type()
Returns the type against which the instruction checks or casts.Modifier and TypeMethodDescriptionExceptionCatch.catchType()
Returns the type of the exception to catch, or empty if this handler is unconditional.Modifier and TypeMethodDescriptionstatic 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.NewMultiArrayInstruction.of
(ClassEntryPREVIEW arrayTypeEntry, int dimensions) Returns a new multi-dimensional array instruction.static NewObjectInstructionPREVIEW
NewObjectInstruction.of
(ClassEntryPREVIEW className) Returns a new object instruction.NewReferenceArrayInstruction.of
(ClassEntryPREVIEW componentType) Returns a new reference array instruction.static TypeCheckInstructionPREVIEW
TypeCheckInstruction.of
(OpcodePREVIEW op, ClassEntryPREVIEW type) Returns a type check instruction.