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 AbstractOffsetFieldFactory
COLOR, fieldName, groupTitle, showName, useHexFields inherited from class FieldFactory
BASE_LISTING_FONT_ID, baseFont, colorOptionName, enabled, FONT_OPTION_NAME, hlProvider, model, name, startX, style, styleOptionName, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theoffset typeGets 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 AbstractOffsetFieldFactory
acceptsType, fieldOptionsChanged, getField, getFieldLocation, getProgramLocationMethods inherited from class 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:FieldFactoryReturns a new instance of this FieldFactory that can be used to generate fields instead of being used as a prototype.- Specified by:
newInstancein 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:AbstractOffsetFieldFactoryGets the offset value- Specified by:
getOffsetValuein classAbstractOffsetFieldFactory- Parameters:
cu- TheCodeUnit- Returns:
- The offset value
-
getOffsetFieldType
Description copied from class:AbstractOffsetFieldFactoryGets theoffset type- Specified by:
getOffsetFieldTypein classAbstractOffsetFieldFactory- Returns:
- the
offset type
-