net.sf.transjvm
Class MemberID

java.lang.Object
  extended by net.sf.transjvm.MemberID
Direct Known Subclasses:
ConstructorID, FieldID, MethodID

public abstract class MemberID
extends java.lang.Object

A class representing an identifier.


Method Summary
abstract  boolean equals(java.lang.Object o)
           
 net.sf.transjvm.ClassID getOwningClass()
          Returns the TypeID of the class enclosing this ID.
 int getRef(ConstantPool pool)
          Returns the (16 bit unsigned) reference integer for this ID in the ConstantPool pool.
abstract  int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOwningClass

public net.sf.transjvm.ClassID getOwningClass()
Returns the TypeID of the class enclosing this ID.

Returns:
The owningClass value

equals

public abstract boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public abstract int hashCode()
Overrides:
hashCode in class java.lang.Object

getRef

public final int getRef(ConstantPool pool)
Returns the (16 bit unsigned) reference integer for this ID in the ConstantPool pool.

Parameters:
pool - The ConstantPool to get the reference from.
Returns:
The reference


Copyright 2004-5, Mark Shannon