Uses of Interface
java.lang.classfile.constantpool.NameAndTypeEntry
Package
Description
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 NameAndTypeEntry in java.lang.classfile.attribute
Modifier and TypeMethodDescriptionEnclosingMethodAttribute.enclosingMethod()
Returns the name and type of the enclosing method, if the class is immediately enclosed by a method or constructor.Modifier and TypeMethodDescriptionstatic EnclosingMethodAttribute
EnclosingMethodAttribute.of
(ClassEntry className, Optional<NameAndTypeEntry> method) Returns anEnclosingMethod
attribute. -
Uses of NameAndTypeEntry in java.lang.classfile.constantpool
Modifier and TypeMethodDescriptionDynamicConstantPoolEntry.nameAndType()
Returns the invocation name and type.MemberRefEntry.nameAndType()
Returns the name and type of the member.ConstantPoolBuilder.nameAndTypeEntry
(Utf8Entry nameEntry, Utf8Entry typeEntry) Returns ANameAndTypeEntry
describing the provided name and type.default NameAndTypeEntry
ConstantPoolBuilder.nameAndTypeEntry
(String name, ClassDesc type) Returns ANameAndTypeEntry
describing the provided name and type.default NameAndTypeEntry
ConstantPoolBuilder.nameAndTypeEntry
(String name, MethodTypeDesc type) Returns ANameAndTypeEntry
describing the provided name and type.Modifier and TypeMethodDescriptionConstantPoolBuilder.constantDynamicEntry
(BootstrapMethodEntry bootstrapMethodEntry, NameAndTypeEntry nameAndType) Returns AConstantDynamicEntry
describing a dynamic constant.ConstantPoolBuilder.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.invokeDynamicEntry
(BootstrapMethodEntry bootstrapMethodEntry, NameAndTypeEntry nameAndType) Returns AnInvokeDynamicEntry
describing a dynamic call site.ConstantPoolBuilder.methodRefEntry
(ClassEntry owner, NameAndTypeEntry nameAndType) Returns AMethodRefEntry
describing a method of a class. -
Uses of NameAndTypeEntry in java.lang.classfile.instruction
Modifier and TypeMethodDescriptionstatic FieldInstruction
FieldInstruction.of
(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType) Returns a field access instruction.static InvokeInstruction
InvokeInstruction.of
(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType, boolean isInterface) Returns an invocation instruction.