|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.classloader.InterfaceMethodSignature
public final class InterfaceMethodSignature
An interface method signature is a pair of atoms: interfaceMethodName + interfaceMethodDescriptor.
Field Summary | |
---|---|
private Atom |
descriptor
Descriptor of the interface method |
private static ImmutableEntryHashSetRVM<InterfaceMethodSignature> |
dictionary
Used to canonicalize InterfaceMethodSignatures |
private int |
id
Id of this interface method signature (not used in hashCode or equals). |
private Atom |
name
Name of the interface method |
private static int |
nextId
Used to assign ids. |
Fields inherited from interface org.jikesrvm.objectmodel.TIBLayoutConstants |
---|
IMT_METHOD_SLOTS, NEEDS_DYNAMIC_LINK, TIB_ARRAY_ELEMENT_TIB_INDEX, TIB_DOES_IMPLEMENT_INDEX, TIB_FIRST_SPECIALIZED_METHOD_INDEX, TIB_FIRST_VIRTUAL_METHOD_INDEX, TIB_INTERFACE_DISPATCH_TABLE_INDEX, TIB_SUPERCLASS_IDS_INDEX, TIB_TYPE_INDEX |
Constructor Summary | |
---|---|
private |
InterfaceMethodSignature(Atom name,
Atom descriptor,
int id)
|
Method Summary | |
---|---|
boolean |
equals(Object other)
|
static InterfaceMethodSignature |
findOrCreate(MemberReference ref)
Find or create an interface method signature for the given method reference. |
Atom |
getDescriptor()
|
int |
getId()
|
Offset |
getIMTOffset()
If using embedded IMTs, Get offset of interface method slot in TIB. |
Atom |
getName()
|
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final ImmutableEntryHashSetRVM<InterfaceMethodSignature> dictionary
private static int nextId
private final Atom name
private final Atom descriptor
private final int id
Constructor Detail |
---|
private InterfaceMethodSignature(Atom name, Atom descriptor, int id)
Method Detail |
---|
public static InterfaceMethodSignature findOrCreate(MemberReference ref)
ref
- A reference to a supposed interface method
public Atom getName()
public Atom getDescriptor()
public int getId()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public Offset getIMTOffset()
TODO!! replace this stupid offset assignment algorithm with something more reasonable.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |