Uses of Interface
java.lang.classfile.constantpool.ClassEntry
Packages that use ClassEntry
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing
class file attributes for the java.lang.classfile library.Provides interfaces describing 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, may be empty.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 CodeBuilderCodeBuilder.anewarray(ClassEntry classEntry) Generates an instruction to create a new array ofreference.byte[]ClassFile.build(ClassEntry thisClassEntry, ConstantPoolBuilder constantPool, Consumer<? super ClassBuilder> handler) Builds aclassfile into a byte array using the provided constant pool builder.default voidClassFile.buildTo(Path path, ClassEntry thisClassEntry, ConstantPoolBuilder constantPool, Consumer<? super ClassBuilder> handler) Builds aclassfile into a file in a file system using the provided constant pool builder.default CodeBuilderCodeBuilder.checkcast(ClassEntry type) Generates an instruction to check whether an object is of the given type, throwing aClassCastExceptionif the check fails.default CodeBuilderCodeBuilder.exceptionCatch(Label start, Label end, Label handler, ClassEntry catchType) Declares an exception table entry.default CodeBuilderCodeBuilder.instanceOf(ClassEntry target) Generates an instruction to determine if an object is of the given type, producing abooleanresult on the operand stack.default CodeBuilderCodeBuilder.multianewarray(ClassEntry array, int dims) Generates an instruction to create a new multidimensional array.default CodeBuilderCodeBuilder.new_(ClassEntry clazz) Generates an instruction to create a new object.static InterfacesInterfaces.of(ClassEntry... interfaces) Returns an Interfaces element.static SuperclassSuperclass.of(ClassEntry superclassEntry) Returns a Superclass element.byte[]ClassFile.transformClass(ClassModel model, ClassEntry newClassName, ClassTransform transform) default ClassBuilderClassBuilder.withInterfaces(ClassEntry... interfaces) Sets the interfaces of this class.default ClassBuilderClassBuilder.withSuperclass(ClassEntry superclassEntry) Sets the superclass of this class.Method parameters in java.lang.classfile with type arguments of type ClassEntryModifier and TypeMethodDescriptiondefault CodeBuilderCodeBuilder.exceptionCatch(Label start, Label end, Label handler, Optional<ClassEntry> catchType) Declares an exception table entry.static InterfacesInterfaces.of(List<ClassEntry> interfaces) Returns an Interfaces element.default ClassBuilderClassBuilder.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 class that encloses the declaration of the current class.InnerClassInfo.innerClass()Returns the nested class described by this entry.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 or subinterfaces.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 EnclosingMethodAttributeEnclosingMethodAttribute.of(ClassEntry className, Optional<NameAndTypeEntry> method) Returns anEnclosingMethodattribute.static ExceptionsAttributeExceptionsAttribute.of(ClassEntry... exceptions) Returns anExceptionsattribute.static InnerClassInfoInnerClassInfo.of(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flags) Returns a nested class description.static ModuleMainClassAttributeModuleMainClassAttribute.of(ClassEntry mainClass) Returns aModuleMainClassattribute.static ModuleProvideInfoModuleProvideInfo.of(ClassEntry provides, ClassEntry... providesWith) Returns a service provision description.static ModuleProvideInfoModuleProvideInfo.of(ClassEntry provides, List<ClassEntry> providesWith) Returns a service provision description.static NestHostAttributeNestHostAttribute.of(ClassEntry nestHost) Returns aNestHostattribute.static NestMembersAttributeNestMembersAttribute.of(ClassEntry... nestMembers) Returns aNestMembersattribute.static PermittedSubclassesAttributePermittedSubclassesAttribute.of(ClassEntry... permittedSubclasses) Returns aPermittedSubclassesattribute.StackMapFrameInfo.ObjectVerificationTypeInfo.of(ClassEntry className) Returns a new object verification type info.ModuleAttribute.ModuleAttributeBuilder.uses(ClassEntry uses) Declares use of a service.Method parameters in java.lang.classfile.attribute with type arguments of type ClassEntryModifier and TypeMethodDescriptionstatic ExceptionsAttributeExceptionsAttribute.of(List<ClassEntry> exceptions) Returns anExceptionsattribute.static InnerClassInfoInnerClassInfo.of(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flags) Returns a nested class description.static ModuleProvideInfoModuleProvideInfo.of(ClassEntry provides, List<ClassEntry> providesWith) Returns a service provision description.static NestMembersAttributeNestMembersAttribute.of(List<ClassEntry> nestMembers) Returns aNestMembersattribute.static PermittedSubclassesAttributePermittedSubclassesAttribute.of(List<ClassEntry> permittedSubclasses) Returns aPermittedSubclassesattribute. -
Uses of ClassEntry in java.lang.classfile.constantpool
Methods in java.lang.classfile.constantpool that return ClassEntryModifier and TypeMethodDescriptionConstantPoolBuilder.classEntry(Utf8Entry ne) Returns aClassEntryreferring to the providedUtf8Entry.default ClassEntryConstantPoolBuilder.classEntry(ClassDesc classDesc) Returns aClassEntrydescribing the same reference type as the providedClassDesc.MemberRefEntry.owner()Returns the class or interface which this member belongs to.Methods in java.lang.classfile.constantpool with parameters of type ClassEntryModifier and TypeMethodDescriptionConstantPoolBuilder.fieldRefEntry(ClassEntry owner, NameAndTypeEntry nameAndType) ConstantPoolBuilder.interfaceMethodRefEntry(ClassEntry owner, NameAndTypeEntry nameAndType) ConstantPoolBuilder.methodRefEntry(ClassEntry owner, NameAndTypeEntry nameAndType) -
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 ClassEntryFieldInstruction.owner()Returns the class holding the field.default ClassEntryInvokeInstruction.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 FieldInstructionFieldInstruction.of(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType) Returns a field access instruction.static FieldInstructionFieldInstruction.of(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type) Returns a field access instruction.static InvokeInstructionInvokeInstruction.of(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType, boolean isInterface) Returns an invocation instruction.static InvokeInstructionInvokeInstruction.of(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type, boolean isInterface) Returns an invocation instruction.static NewMultiArrayInstructionNewMultiArrayInstruction.of(ClassEntry arrayTypeEntry, int dimensions) Returns a new multi-dimensional array instruction.static NewObjectInstructionNewObjectInstruction.of(ClassEntry className) Returns a new object instruction.static NewReferenceArrayInstructionNewReferenceArrayInstruction.of(ClassEntry componentType) Returns a new reference array instruction.static TypeCheckInstructionTypeCheckInstruction.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 ExceptionCatchReturns an exception table pseudo-instruction.