Class FieldMapping

    • Constructor Detail

      • FieldMapping

        public FieldMapping​(String owner,
                            String oldName,
                            String descriptor,
                            String newName)
        Creates a new field mapping.
        Parameters:
        owner - The internal name of the class owning the field (e.g., "com/example/MyClass")
        oldName - The old field name (e.g., "data")
        descriptor - The field descriptor (e.g., "Ljava/lang/String;")
        newName - The new field name (e.g., "content")
    • Method Detail

      • getOwner

        public String getOwner()
        Returns:
        the owner
      • getDescriptor

        public String getDescriptor()
        Returns:
        the descriptor
      • getFullyQualifiedName

        public String getFullyQualifiedName()
        Returns:
        the field identifier as owner.oldName:descriptor
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object