|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.classloader.MemberReference org.jikesrvm.classloader.FieldReference
public final class FieldReference
A class to represent the reference in a class file to a field.
Field Summary | |
---|---|
private TypeReference |
fieldContentsType
The field's type |
private RVMField |
resolvedMember
The RVMField that this field reference resolved to ( null if not yet resolved). |
Fields inherited from class org.jikesrvm.classloader.MemberReference |
---|
descriptor, id, name, type |
Constructor Summary | |
---|---|
FieldReference(TypeReference tr,
Atom mn,
Atom d,
int id)
|
Method Summary | |
---|---|
boolean |
definitelyDifferent(FieldReference that)
Do this and that definitely refer to the different fields? |
boolean |
definitelySame(FieldReference that)
Do this and that definitely refer to the same field? |
TypeReference |
getFieldContentsType()
|
int |
getNumberOfStackSlots()
How many stackslots do value of this type take? |
int |
getSize()
Get size of the field's value, in bytes. |
boolean |
isResolved()
Has the field reference already been resolved into a target method? |
RVMField |
peekResolvedField()
Find the RVMField that this field reference refers to using the search order specified in JVM spec 5.4.3.2. |
RVMField |
resolve()
Find the RVMField that this field reference refers to using the search order specified in JVM spec 5.4.3.2. |
private RVMField |
resolveInternal(RVMClass declaringClass)
|
private RVMField |
searchInterfaceFields(RVMClass c)
|
(package private) void |
setResolvedMember(RVMField it)
For use by RVMField constructor |
Methods inherited from class org.jikesrvm.classloader.MemberReference |
---|
asFieldReference, asMethodReference, equals, findOrCreate, getDescriptor, getId, getMemberRef, getName, getNextId, getType, hashCode, isFieldReference, isMethodReference, needsDynamicLink, parse, parse, peekResolvedMember, resolveMember, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final TypeReference fieldContentsType
private RVMField resolvedMember
null
if not yet resolved).
Constructor Detail |
---|
FieldReference(TypeReference tr, Atom mn, Atom d, int id)
tr
- a type referencemn
- the field or method named
- the field or method descriptorid
- the new ID of the member were a new member requiredMethod Detail |
---|
public TypeReference getFieldContentsType()
public int getNumberOfStackSlots()
public int getSize()
public boolean definitelyDifferent(FieldReference that)
public boolean definitelySame(FieldReference that)
public boolean isResolved()
void setResolvedMember(RVMField it)
public RVMField peekResolvedField()
public RVMField resolve()
private RVMField resolveInternal(RVMClass declaringClass)
private RVMField searchInterfaceFields(RVMClass c)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |