Class FieldKey


  • public final class FieldKey
    extends Object
    Identifies a specific field for field-sensitive tracking.
    • 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 class
        name - the field name
        descriptor - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object