Package ghidra.app.util.viewer.field
Class FunctionOffsetFieldFactory
java.lang.Object
ghidra.app.util.viewer.field.FieldFactory
ghidra.app.util.viewer.field.AbstractOffsetFieldFactory
ghidra.app.util.viewer.field.FunctionOffsetFieldFactory
- All Implemented Interfaces:
ExtensionPoint
Generates Function Offset fields
-
Field Summary
Fields inherited from class ghidra.app.util.viewer.field.AbstractOffsetFieldFactory
COLOR, fieldName, groupTitle, showName, useHexFields 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
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 ghidra.app.util.viewer.field.AbstractOffsetFieldFactory
acceptsType, fieldOptionsChanged, getField, getFieldLocation, getProgramLocationMethods 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
-
FunctionOffsetFieldFactory
public FunctionOffsetFieldFactory()Creates a new defaultFunctionOffsetFieldFactory
-
-
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
-