Class CompositeFieldQuickFix

java.lang.Object
ghidra.features.base.quickfix.QuickFix
ghidra.features.base.replace.items.CompositeFieldQuickFix
Direct Known Subclasses:
RenameFieldQuickFix, UpdateFieldCommentQuickFix

public abstract class CompositeFieldQuickFix extends QuickFix
Base class for Composite field Quick Fixes. Primarily exists to host the logic for finding components in a composite even as it is changing.
  • Field Details

  • Constructor Details

    • CompositeFieldQuickFix

      public CompositeFieldQuickFix(Program program, Composite composite, int ordinal, String original, String newName)
      Constructor
      Parameters:
      program - the program containing the composite.
      composite - the composite being changed
      ordinal - the ordinal of the field within the composite
      original - the original name of the field
      newName - the new name for the field
  • Method Details

    • getAddress

      public Address getAddress()
      Description copied from class: QuickFix
      Returns the address of the affected program element if applicable or null otherwise.
      Specified by:
      getAddress in class QuickFix
      Returns:
      the address of the affected program element if applicable or null otherwise
    • getPath

      public String getPath()
      Description copied from class: QuickFix
      Returns a path (the meaning of the path varies with the item type) associated with the affected program element if applicable or null otherwise.
      Specified by:
      getPath in class QuickFix
      Returns:
      a path associated with the affected program if applicable or null otherwise
    • findComponent

      protected DataTypeComponent findComponent(String name)
    • getComponentByOrdinal

      protected DataTypeComponent getComponentByOrdinal()
    • getCustomToolTipData

      public Map<String,String> getCustomToolTipData()
      Overrides:
      getCustomToolTipData in class QuickFix
    • getFieldName

      protected abstract String getFieldName()
    • editComposite

      protected void editComposite(DataTypeManagerService dtmService)