Class FieldKey
- java.lang.Object
-
- com.tonic.analysis.simulation.heap.FieldKey
-
public final class FieldKey extends Object
Identifies a specific field for field-sensitive tracking.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDescriptor()StringgetName()StringgetOwner()inthashCode()booleanisPrimitiveType()booleanisReferenceType()static FieldKeyof(String owner, String name, String descriptor)Creates a key for one field.StringtoString()
-
-
-
Method Detail
-
of
public static FieldKey of(String owner, String name, String descriptor)
Creates a key for one field.- Parameters:
owner- the internal name of the declaring classname- the field namedescriptor- the field descriptor- Returns:
- the key
- Throws:
NullPointerException- if any argument is null
-
getOwner
public String getOwner()
- Returns:
- the owner
-
getName
public String getName()
- Returns:
- the name
-
getDescriptor
public String getDescriptor()
- Returns:
- the descriptor
-
isReferenceType
public boolean isReferenceType()
- Returns:
- true if the descriptor names an object or array type
-
isPrimitiveType
public boolean isPrimitiveType()
- Returns:
- true if the descriptor names a primitive type
-
-