Class LabelCodeUnitFormat
java.lang.Object
ghidra.program.model.listing.CodeUnitFormat
ghidra.app.util.viewer.field.BrowserCodeUnitFormat
ghidra.app.util.viewer.field.LabelCodeUnitFormat
A version of
BrowserCodeUnitFormat that changes how labels are rendered in offcut
situations.-
Field Summary
Fields inherited from class CodeUnitFormat
DEFAULT, EXTENDED_INDIRECT_REFERENCE_DELIMITER, EXTENDED_REFERENCE_DELIMITER, options, PLUS, UNDERSCORE -
Constructor Summary
Constructors -
Method Summary
ChangeModifier and TypeMethodDescriptionprotected StringgetOffcutDataString(Address offcutAddress, Data data) protected StringgetOffcutLabelStringForInstruction(Address offcutAddress, Instruction instruction, Address markupAddress, Symbol symbol) Generate label string.REMOVEDStringgetOffcutLabelStringForInstruction(Address offcutAddress, Instruction instruction, Address markupAddress) RemovedMethods inherited from class BrowserCodeUnitFormat
addChangeListener, removeChangeListenerMethods inherited from class CodeUnitFormat
addOffcutInformation, getDataValueRepresentation, getDataValueRepresentationString, getDefaultOffcutString, getMnemonicRepresentation, getOffcutLabelString, getOperandRepresentationList, getOperandRepresentationString, getPrefixForStringData, getReferenceRepresentationString, getRepresentationString, getRepresentationString, getShowBlockName
-
Constructor Details
-
LabelCodeUnitFormat
-
-
Method Details
-
getOffcutLabelStringForInstruction NEW
protected String getOffcutLabelStringForInstruction(Address offcutAddress, Instruction instruction, Address markupAddress, Symbol symbol) Description copied from class:CodeUnitFormatGenerate label string. This may serve two use cases:- Generating operand label at markupAddress for referenced instruction and offcutAddress
- Generating offcut label for an offcutAddress with instruction (markupAddress=null)
-
getOffcutLabelStringForInstruction REMOVED
String getOffcutLabelStringForInstruction(Address offcutAddress, Instruction instruction, Address markupAddress)
- Overrides:
getOffcutLabelStringForInstructionin classCodeUnitFormat- Parameters:
offcutAddress- address for which generated label representsinstruction- instruction containing offcut addressmarkupAddress- address where a label will be referenced from (may be null)symbol- an optional symbol that is used to generate the symbol name- Returns:
- generated offcut label
-
getOffcutDataString
- Overrides:
getOffcutDataStringin classCodeUnitFormat
-