- All Superinterfaces:
ClassFileElement,PoolEntry,WritableElement<PoolEntry>
- All Known Subinterfaces:
FieldRefEntry,InterfaceMethodRefEntry,MethodRefEntry
- All Known Implementing Classes:
AbstractPoolEntry.AbstractMemberRefEntry,AbstractPoolEntry.FieldRefEntryImpl,AbstractPoolEntry.InterfaceMethodRefEntryImpl,AbstractPoolEntry.MethodRefEntryImpl
public sealed interface MemberRefEntry
extends PoolEntry
permits FieldRefEntry, InterfaceMethodRefEntry, MethodRefEntry, AbstractPoolEntry.AbstractMemberRefEntry
Models a member reference constant in the constant pool of a classfile,
which includes references to fields, methods, and interface methods.
- Since:
- 22
-
Method Summary
Methods inherited from interface org.glavo.classfile.constantpool.PoolEntry
constantPool, index, tag, widthMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
owner
ClassEntry owner()Returns the class in which this member ref lives.- Returns:
- the class in which this member ref lives
-
nameAndType
NameAndTypeEntry nameAndType()Returns the name and type of the member.- Returns:
- the name and type of the member
-
name
Returns the name of the member.- Returns:
- the name of the member
-
type
Returns the type of the member.- Returns:
- the type of the member
-