Package 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
Nested Classes Modifier and Type Class Description protected static classFieldReference.KeyAn identifier/selector for fields.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldReferencefindOrCreate(ClassLoaderReference loader, String classType, String fieldName, String fieldType)Find or create the canonical MemberReference instance for the given tuple.static FieldReferencefindOrCreate(TypeReference tref, Atom mn, TypeReference fieldType)Find or create the canonical MemberReference instance for the given tuple.TypeReferencegetFieldType()StringgetSignature()StringtoString()-
Methods inherited from class com.ibm.wala.types.MemberReference
equals, getDeclaringClass, getName, hashCode
-
-
-
-
Method Detail
-
getSignature
public String getSignature()
- Specified by:
getSignaturein classMemberReference
-
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, String classType, String fieldName, String fieldType) throws IllegalArgumentException
Find or create the canonical MemberReference instance for the given tuple.- Throws:
IllegalArgumentException
-
getFieldType
public final TypeReference getFieldType()
- Returns:
- the descriptor component of this member reference
-
-