com.ibm.wala.types
Class FieldReference
java.lang.Object
com.ibm.wala.types.MemberReference
com.ibm.wala.types.FieldReference
public final class FieldReference
- extends MemberReference
A class to represent the reference in a class file to a field.
|
Nested Class Summary |
protected static class |
FieldReference.Key
An identifier/selector for fields. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
getSignature
public java.lang.String getSignature()
- Specified by:
getSignature in class MemberReference
findOrCreate
public static FieldReference findOrCreate(TypeReference tref,
Atom mn,
TypeReference fieldType)
- Find or create the canonical MemberReference instance for the given tuple.
- Parameters:
mn - the name of the member
findOrCreate
public static FieldReference findOrCreate(ClassLoaderReference loader,
java.lang.String classType,
java.lang.String fieldName,
java.lang.String fieldType)
throws java.lang.IllegalArgumentException
- Find or create the canonical MemberReference instance for the given tuple.
- Throws:
java.lang.IllegalArgumentException
getFieldType
public final TypeReference getFieldType()
- Returns:
- the descriptor component of this member reference
toString
public final java.lang.String toString()
- Overrides:
toString in class java.lang.Object