Package ghidra.framework.plugintool
Class AutoConfigState.ConfigStateField<T>
java.lang.Object
ghidra.framework.plugintool.AutoConfigState.ConfigStateField<T>
- Enclosing interface:
AutoConfigState
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> AutoConfigState.ConfigFieldCodec<T> getCodecByType(Class<T> cls) static <T> TGet an object from aSaveStateusing a known codecstatic <T> voidPut an object into aSaveStateusing a known codec
-
Method Details
-
getCodecByType
-
putState
Put an object into aSaveStateusing a known codecThis seems like something that should be in SaveState itself, but the object value must be one of the supported types.
- Type Parameters:
T- the type of the value- Parameters:
state- the state to write intotype- the type of the valuename- the name of the name-value pairvalue- the value of the name-value pair
-
getState
Get an object from aSaveStateusing a known codecThis seems like something that should be in SaveState itself.
- Type Parameters:
T- the type of the value- Parameters:
state- the state to read fromtype- the expected type of the valuename- the name of the name-value pair- Returns:
- the value of the name-value pair
-