|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.classloader.AnnotatedElement org.jikesrvm.classloader.RVMMember
public abstract class RVMMember
A field or method of a java class.
Field Summary | |
---|---|
private TypeReference |
declaringClass
The class that declared this member, available by calling getDeclaringClass once the class is loaded. |
protected MemberReference |
memRef
The canonical MemberReference for this member |
protected short |
modifiers
The modifiers associated with this member. |
private static int |
NO_OFFSET
Initial value for a field offset - indicates field not laid out. |
protected int |
offset
The member's jtoc/obj/tib offset in bytes. |
private Atom |
signature
The signature is a string representing the generic type for this field or method declaration, may be null |
Fields inherited from class org.jikesrvm.classloader.AnnotatedElement |
---|
declaredAnnotationDatas |
Fields inherited from interface org.jikesrvm.Constants |
---|
NOT_REACHED, REFLECTION_FPRS_BITS, REFLECTION_FPRS_MASK, REFLECTION_GPRS_BITS, REFLECTION_GPRS_MASK |
Fields inherited from interface org.jikesrvm.objectmodel.ThinLockConstants |
---|
TL_DEDICATED_U16_OFFSET, TL_DEDICATED_U16_SHIFT, TL_LOCK_COUNT_MASK, TL_LOCK_COUNT_SHIFT, TL_LOCK_COUNT_UNIT, TL_LOCK_ID_MASK, TL_LOCK_ID_SHIFT, TL_NUM_BITS_RC, TL_NUM_BITS_STAT, TL_NUM_BITS_TID, TL_STAT_BIASABLE, TL_STAT_FAT, TL_STAT_MASK, TL_STAT_SHIFT, TL_STAT_THIN, TL_THREAD_ID_MASK, TL_THREAD_ID_SHIFT, TL_UNLOCK_MASK |
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 |
Fields inherited from interface org.jikesrvm.HeapLayoutConstants |
---|
BAD_MAP_COMPRESSION, BOOT_IMAGE_CODE_END, BOOT_IMAGE_CODE_SIZE, BOOT_IMAGE_CODE_START, BOOT_IMAGE_DATA_END, BOOT_IMAGE_DATA_SIZE, BOOT_IMAGE_DATA_START, BOOT_IMAGE_END, BOOT_IMAGE_RMAP_END, BOOT_IMAGE_RMAP_START, MAX_BOOT_IMAGE_RMAP_SIZE, MAXIMUM_MAPPABLE |
Constructor Summary | |
---|---|
protected |
RVMMember(TypeReference declaringClass,
MemberReference memRef,
short modifiers,
Atom signature,
RVMAnnotation[] annotations)
NOTE: Only RVMClass is allowed to create an instance of a RVMMember. |
Method Summary | |
---|---|
RVMClass |
getDeclaringClass()
Class that declared this field or method. |
Atom |
getDescriptor()
Descriptor for this member. |
int |
getId()
Get a unique id for this member. |
MemberReference |
getMemberRef()
Canonical member reference for this member. |
int |
getModifiers()
Get the member's modifiers. |
Atom |
getName()
Name of this member. |
Offset |
getOffset()
Offset of this field or method, in bytes. |
Atom |
getSignature()
Generic type for member |
int |
hashCode()
|
boolean |
hasOffset()
Has the field been laid out in the object yet ? |
boolean |
isPrivate()
Usable only from this class? |
boolean |
isProtected()
Usable from subclasses? |
boolean |
isPublic()
Usable from classes outside its package? |
void |
setOffset(Offset off)
Only meant to be used by ObjectModel.layoutInstanceFields. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final int NO_OFFSET
private final TypeReference declaringClass
protected final MemberReference memRef
protected final short modifiers
private final Atom signature
protected int offset
RVMClass.resolve()
Constructor Detail |
---|
protected RVMMember(TypeReference declaringClass, MemberReference memRef, short modifiers, Atom signature, RVMAnnotation[] annotations)
RVMClass
is allowed to create an instance of a RVMMember.
declaringClass
- the TypeReference object of the class that declared this membermemRef
- the canonical memberReference for this member.modifiers
- modifiers associated with this member.signature
- generic type of this memberannotations
- array of runtime visible annotationsMethod Detail |
---|
public final RVMClass getDeclaringClass()
public final MemberReference getMemberRef()
public final Atom getName()
public final Atom getDescriptor()
public final Atom getSignature()
public final int getId()
public int hashCode()
hashCode
in class Object
public final String toString()
toString
in class Object
public final boolean isPublic()
public final boolean isPrivate()
public final boolean isProtected()
public final int getModifiers()
public final boolean hasOffset()
true
if the field has been assigned an offset, false
if notpublic final Offset getOffset()
public final void setOffset(Offset off)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |