Package ghidra.program.model.listing
Class CodeUnitFormatOptions
- java.lang.Object
-
- ghidra.program.model.listing.CodeUnitFormatOptions
-
- Direct Known Subclasses:
BrowserCodeUnitFormatOptions
public class CodeUnitFormatOptions extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Change Modifier and Type Class Description static classCodeUnitFormatOptions.ShowBlockNameShowBlockNamedefines the valid options for controlling the display of block names on labels.static classCodeUnitFormatOptions.ShowNamespaceShowNamespacedefines the valid options for controlling the display of name-spaces on labels.
-
Field Summary
Fields Change Modifier and Type Field Description NEW protected booleanalwaysShowPrimaryReferenceNEW protected DataTypeDisplayOptionsdisplayOptionsNEW protected booleandoRegVariableMarkupNEW protected booleandoStackVariableMarkupNEW protected booleanfollowReferencedPointersNEW protected booleanincludeInferredVariableMarkupNEW protected booleanincludeScalarReferenceAdjustmentNEW protected java.lang.StringlocalPrefixOverrideNEW protected CodeUnitFormatOptions.ShowBlockNameshowBlockNameNEW protected booleanshowDataMutabilityNEW protected booleanshowLibraryInNamespaceNEW protected CodeUnitFormatOptions.ShowNamespaceshowNamespaceNEW protected booleanshowOffcutInfo
-
Constructor Summary
Constructors Change Constructor Description CodeUnitFormatOptions()CodeUnitFormatOptions(CodeUnitFormatOptions.ShowBlockName showBlockName, CodeUnitFormatOptions.ShowNamespace showNamespace)Format options constructor using primarily default format options.CodeUnitFormatOptions(CodeUnitFormatOptions.ShowBlockName showBlockName, CodeUnitFormatOptions.ShowNamespace showNamespace, java.lang.String localPrefixOverride, boolean doRegVariableMarkup, boolean doStackVariableMarkup, boolean includeInferredVariableMarkup, boolean alwaysShowPrimaryReference, boolean includeScalarReferenceAdjustment, boolean showLibraryInNamespace, boolean followReferencedPointers)Format options constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description CodeUnitFormatOptions.ShowBlockNamegetShowBlockNameOption()Get current ShowBlockName option
-
-
-
Field Detail
-
showBlockName NEW
protected volatile CodeUnitFormatOptions.ShowBlockName showBlockName
-
showNamespace NEW
protected volatile CodeUnitFormatOptions.ShowNamespace showNamespace
Constructor Detail
-
CodeUnitFormatOptions
public CodeUnitFormatOptions()
-
CodeUnitFormatOptions
public CodeUnitFormatOptions(CodeUnitFormatOptions.ShowBlockName showBlockName, CodeUnitFormatOptions.ShowNamespace showNamespace)
Format options constructor using primarily default format options.- Parameters:
showBlockName- controls display of block name in address representations.showNamespace- controls display of namespace path with label references.
-
CodeUnitFormatOptions
public CodeUnitFormatOptions(CodeUnitFormatOptions.ShowBlockName showBlockName, CodeUnitFormatOptions.ShowNamespace showNamespace, java.lang.String localPrefixOverride, boolean doRegVariableMarkup, boolean doStackVariableMarkup, boolean includeInferredVariableMarkup, boolean alwaysShowPrimaryReference, boolean includeScalarReferenceAdjustment, boolean showLibraryInNamespace, boolean followReferencedPointers)
Format options constructor. Extended reference mark-up is enabled.- Parameters:
showBlockName- controls display of block name in address representations.showNamespace- controls display of namespace path with label references.localPrefixOverride- optional override for local name-space when showNamespace is ShowNamespace.LOCAL or ShowNamespace.ALWAYS. Specifying a null value will cause the actual name-space to be used.doRegVariableMarkup- perform register variable/reference mark-up if truedoStackVariableMarkup- perform stack variable/reference mark-up if trueincludeInferredVariableMarkup- if true and doRegVariableMarkup is also true, an attempt will be made to mark-up inferred register variable usage.alwaysShowPrimaryReference- if true forces the primary reference to be rendered with the operand using the => separator if necessaryincludeScalarReferenceAdjustment- if true scalar adjustment of certain reference offsets will be included to maintain replaced scalar valueshowLibraryInNamespace- if true any referenced external symbols will include library namefollowReferencedPointers- if true referenced pointers (read or indirect) will follow the pointer and display the indirect symbol with -> instead of pointer label.
-
-
Method Detail
-
getShowBlockNameOption
public CodeUnitFormatOptions.ShowBlockName getShowBlockNameOption()
Get current ShowBlockName option- Returns:
- ShowBlockName option
-
-