Package ghidra.docking.settings
Interface SettingsDefinition
-
- All Known Subinterfaces:
BooleanSettingsDefinition
,EnumSettingsDefinition
- All Known Implementing Classes:
ByteCountSettingsDefinition
,CharsetSettingsDefinition
,CodeUnitCountSettingsDefinition
,CodeUnitOffsetSettingsDefinition
,DataTypeMnemonicSettingsDefinition
,EndianSettingsDefinition
,FloatingPointPrecisionSettingsDefinition
,FormatSettingsDefinition
,FunctionInlineSettingsDefinition
,FunctionNoReturnSettingsDefinition
,FunctionThunkSettingsDefinition
,IntegerSignednessFormattingModeSettingsDefinition
,JavaEnumSettingsDefinition
,MemoryOffsetSettingsDefinition
,MutabilitySettingsDefinition
,PaddingSettingsDefinition
,RenderUnicodeSettingsDefinition
,TerminatedSettingsDefinition
,TranslationSettingsDefinition
public interface SettingsDefinition
Generic interface for defining display options on data and dataTypes. Uses Settings objects to store values which are interpreted by SettingsDefinition objects.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear(Settings settings)
Removes any values in the given settings object assocated with this settings definitionstatic SettingsDefinition[]
concat(SettingsDefinition[] settings, SettingsDefinition... additional)
Create a new list ofSettingsDefinition
s by concat'ing a base list with a var-arg'ish additional list of setting defs.void
copySetting(Settings srcSettings, Settings destSettings)
Copies any setting value associated with this settings definition from the srcSettings settings to the destSettings.java.lang.String
getDescription()
Returns a description of this settings definitionjava.lang.String
getName()
Returns the name of this SettingsDefinitionboolean
hasValue(Settings setting)
-
-
-
Method Detail
-
concat
static SettingsDefinition[] concat(SettingsDefinition[] settings, SettingsDefinition... additional)
Create a new list ofSettingsDefinition
s by concat'ing a base list with a var-arg'ish additional list of setting defs.- Parameters:
settings
- List of settings defs.additional
- More settings defs to add- Returns:
- new array with all the settings defs joined together.
-
hasValue
boolean hasValue(Settings setting)
-
getName
java.lang.String getName()
Returns the name of this SettingsDefinition
-
getDescription
java.lang.String getDescription()
Returns a description of this settings definition
-
clear
void clear(Settings settings)
Removes any values in the given settings object assocated with this settings definition- Parameters:
settings
- the settings object to be cleared.
-
-