Uses of Interface
java.lang.classfile.constantpool.ClassEntry
Packages that use ClassEntry
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing classfile attributes for the
java.lang.classfile
library.Provides interfaces describing classfile constant pool entries for the
java.lang.classfile
library.Provides interfaces describing code instructions for the
java.lang.classfile
library.-
Uses of ClassEntry in java.lang.classfile
Methods in java.lang.classfile that return ClassEntryModifier 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.Methods in java.lang.classfile that return types with arguments of type ClassEntryModifier 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.Methods in java.lang.classfile with parameters of type ClassEntryModifier and TypeMethodDescriptiondefault CodeBuilder
CodeBuilder.anewarray
(ClassEntry classEntry) Generate an instruction to create a new array of referencebyte[]
ClassFile.build
(ClassEntry thisClassEntry, ConstantPoolBuilder constantPool, Consumer<? super ClassBuilder> handler) Build a classfile into a byte array using the provided constant pool builder.default void
ClassFile.buildTo
(Path path, ClassEntry thisClassEntry, ConstantPoolBuilder constantPool, Consumer<? super ClassBuilder> handler) Build a classfile into a file using the provided constant pool builder.default CodeBuilder
CodeBuilder.checkcast
(ClassEntry type) Generate an instruction to check whether an object is of the given typedefault CodeBuilder
CodeBuilder.exceptionCatch
(Label start, Label end, Label handler, ClassEntry catchType) Declare an exception table entrydefault CodeBuilder
CodeBuilder.instanceOf
(ClassEntry target) Generate an instruction to determine if an object is of the given typedefault CodeBuilder
CodeBuilder.multianewarray
(ClassEntry array, int dims) Generate an instruction to create a new multidimensional arraydefault CodeBuilder
CodeBuilder.new_
(ClassEntry clazz) Generate an instruction to create a new objectstatic Interfaces
Interfaces.of
(ClassEntry... interfaces) Returns an Interfaces element.static Superclass
Superclass.of
(ClassEntry superclassEntry) Returns a Superclass element.byte[]
ClassFile.transformClass
(ClassModel model, ClassEntry newClassName, ClassTransform transform) Transform one classfile into a new classfile with the aid of aClassTransform
.default ClassBuilder
ClassBuilder.withInterfaces
(ClassEntry... interfaces) Sets the interfaces of this class.default ClassBuilder
ClassBuilder.withSuperclass
(ClassEntry superclassEntry) Sets the superclass of this class.Method parameters in java.lang.classfile with type arguments of type ClassEntryModifier and TypeMethodDescriptiondefault CodeBuilder
CodeBuilder.exceptionCatch
(Label start, Label end, Label handler, Optional<ClassEntry> catchType) Declare an exception table entrystatic Interfaces
Interfaces.of
(List<ClassEntry> interfaces) Returns an Interfaces element.default ClassBuilder
ClassBuilder.withInterfaces
(List<ClassEntry> interfaces) Sets the interfaces of this class. -
Uses of ClassEntry in java.lang.classfile.attribute
Methods in java.lang.classfile.attribute that return ClassEntryModifier 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.Methods in java.lang.classfile.attribute that return types with arguments of type ClassEntryModifier 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.Methods in java.lang.classfile.attribute with parameters of type ClassEntryModifier and TypeMethodDescriptionstatic EnclosingMethodAttribute
EnclosingMethodAttribute.of
(ClassEntry className, Optional<NameAndTypeEntry> method) Returns anEnclosingMethod
attribute.static ExceptionsAttribute
ExceptionsAttribute.of
(ClassEntry... exceptions) Returns anExceptions
attribute.static InnerClassInfo
InnerClassInfo.of
(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flags) Returns an inner class description.static ModuleMainClassAttribute
ModuleMainClassAttribute.of
(ClassEntry mainClass) Returns aModuleMainClass
attribute.static ModuleProvideInfo
ModuleProvideInfo.of
(ClassEntry provides, ClassEntry... providesWith) Returns a service provision description.static ModuleProvideInfo
ModuleProvideInfo.of
(ClassEntry provides, List<ClassEntry> providesWith) Returns a service provision description.static NestHostAttribute
NestHostAttribute.of
(ClassEntry nestHost) Returns aNestHost
attribute.static NestMembersAttribute
NestMembersAttribute.of
(ClassEntry... nestMembers) Returns aNestMembers
attribute.static PermittedSubclassesAttribute
PermittedSubclassesAttribute.of
(ClassEntry... permittedSubclasses) Returns aPermittedSubclasses
attribute.StackMapFrameInfo.ObjectVerificationTypeInfo.of
(ClassEntry className) Returns a new object verification type info.ModuleAttribute.ModuleAttributeBuilder.uses
(ClassEntry uses) Declares use of a serviceMethod parameters in java.lang.classfile.attribute with type arguments of type ClassEntryModifier and TypeMethodDescriptionstatic ExceptionsAttribute
ExceptionsAttribute.of
(List<ClassEntry> exceptions) Returns anExceptions
attribute.static InnerClassInfo
InnerClassInfo.of
(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flags) Returns an inner class description.static ModuleProvideInfo
ModuleProvideInfo.of
(ClassEntry provides, List<ClassEntry> providesWith) Returns a service provision description.static NestMembersAttribute
NestMembersAttribute.of
(List<ClassEntry> nestMembers) Returns aNestMembers
attribute.static PermittedSubclassesAttribute
PermittedSubclassesAttribute.of
(List<ClassEntry> permittedSubclasses) Returns aPermittedSubclasses
attribute. -
Uses of ClassEntry in java.lang.classfile.constantpool
Methods in java.lang.classfile.constantpool that return ClassEntryModifier and TypeMethodDescriptionConstantPoolBuilder.classEntry
(Utf8Entry ne) Returns AClassEntry
describing the class whose internal name is encoded in the provided Utf8Entry.default ClassEntry
ConstantPoolBuilder.classEntry
(ClassDesc classDesc) Returns AClassEntry
describing the class described by provided ClassDesc.MemberRefEntry.owner()
Returns the class in which this member ref lives.Methods in java.lang.classfile.constantpool with parameters of type ClassEntryModifier and TypeMethodDescriptionConstantPoolBuilder.fieldRefEntry
(ClassEntry owner, NameAndTypeEntry nameAndType) Returns AFieldRefEntry
describing a field of a class.ConstantPoolBuilder.interfaceMethodRefEntry
(ClassEntry owner, NameAndTypeEntry nameAndType) Returns AInterfaceMethodRefEntry
describing a method of a class.ConstantPoolBuilder.methodRefEntry
(ClassEntry owner, NameAndTypeEntry nameAndType) Returns AMethodRefEntry
describing a method of a class. -
Uses of ClassEntry in java.lang.classfile.instruction
Methods in java.lang.classfile.instruction that return ClassEntryModifier and TypeMethodDescriptionNewMultiArrayInstruction.arrayType()
Returns the type of the array.NewObjectInstruction.className()
Returns the type of object to create.NewReferenceArrayInstruction.componentType()
Returns the component type of the array.default ClassEntry
FieldInstruction.owner()
Returns the class holding the field.default ClassEntry
InvokeInstruction.owner()
Returns the class or interface holding the method.TypeCheckInstruction.type()
Returns the type against which the instruction checks.Methods in java.lang.classfile.instruction that return types with arguments of type ClassEntryModifier and TypeMethodDescriptionExceptionCatch.catchType()
Returns the type of the exception to catch, or empty if this handler catches everything.Methods in java.lang.classfile.instruction with parameters of type ClassEntryModifier and TypeMethodDescriptionstatic FieldInstruction
FieldInstruction.of
(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType) Returns a field access instruction.static FieldInstruction
FieldInstruction.of
(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type) Returns a field access instruction.static InvokeInstruction
InvokeInstruction.of
(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType, boolean isInterface) Returns an invocation instruction.static InvokeInstruction
InvokeInstruction.of
(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type, boolean isInterface) Returns an invocation instruction.static NewMultiArrayInstruction
NewMultiArrayInstruction.of
(ClassEntry arrayTypeEntry, int dimensions) Returns a new multi-dimensional array instruction.static NewObjectInstruction
NewObjectInstruction.of
(ClassEntry className) Returns a new object instruction.static NewReferenceArrayInstruction
NewReferenceArrayInstruction.of
(ClassEntry componentType) Returns a new reference array instruction.static TypeCheckInstruction
TypeCheckInstruction.of
(Opcode op, ClassEntry type) Returns a type check instruction.Method parameters in java.lang.classfile.instruction with type arguments of type ClassEntryModifier and TypeMethodDescriptionstatic ExceptionCatch
Returns an exception table pseudo-instruction.