Package ghidra.app.util.viewer.field
Class MemoryBlockOffsetFieldFactory
java.lang.Object
ghidra.app.util.viewer.field.FieldFactory
ghidra.app.util.viewer.field.AbstractOffsetFieldFactory
ghidra.app.util.viewer.field.MemoryBlockOffsetFieldFactory
- All Implemented Interfaces:
ExtensionPoint
Generates
MemoryBlock
Offset fields-
Field Summary
Fields inherited from class ghidra.app.util.viewer.field.AbstractOffsetFieldFactory
COLOR, fieldName, groupTitle, showName, useHex
Fields inherited from class ghidra.app.util.viewer.field.FieldFactory
BASE_LISTING_FONT_ID, baseFont, colorOptionName, enabled, FONT_OPTION_NAME, hlProvider, model, name, startX, style, styleOptionName, width
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets theoffset type
Gets the offset valuenewInstance
(FieldFormatModel formatModel, ListingHighlightProvider highlightProvider, ToolOptions options, ToolOptions fieldOptions) Returns a new instance of this FieldFactory that can be used to generate fields instead of being used as a prototype.Methods inherited from class ghidra.app.util.viewer.field.AbstractOffsetFieldFactory
acceptsType, fieldOptionsChanged, getField, getFieldLocation, getProgramLocation
Methods inherited from class ghidra.app.util.viewer.field.FieldFactory
displayOptionsChanged, getFieldModel, getFieldName, getFieldText, getMetrics, getMetrics, getStartX, getWidth, hasSamePath, initDisplayOptions, initFieldOptions, isEnabled, servicesChanged, setEnabled, setStartX, setWidth, simplifyTemplates, supportsLocation
-
Constructor Details
-
MemoryBlockOffsetFieldFactory
public MemoryBlockOffsetFieldFactory()Creates a new defaultMemoryBlockOffsetFieldFactory
-
-
Method Details
-
newInstance
public FieldFactory newInstance(FieldFormatModel formatModel, ListingHighlightProvider highlightProvider, ToolOptions options, ToolOptions fieldOptions) Description copied from class:FieldFactory
Returns a new instance of this FieldFactory that can be used to generate fields instead of being used as a prototype.- Specified by:
newInstance
in classFieldFactory
- Parameters:
formatModel
- the model that the field belongs to.highlightProvider
- the HightLightProvider.options
- the Options for display properties.fieldOptions
- the Options for field specific properties.- Returns:
- the factory
-
getOffsetValue
Description copied from class:AbstractOffsetFieldFactory
Gets the offset value- Specified by:
getOffsetValue
in classAbstractOffsetFieldFactory
- Parameters:
cu
- TheCodeUnit
- Returns:
- The offset value
-
getOffsetFieldType
Description copied from class:AbstractOffsetFieldFactory
Gets theoffset type
- Specified by:
getOffsetFieldType
in classAbstractOffsetFieldFactory
- Returns:
- the
offset type
-