Package ghidra.app.util.bin
Class StructConverterUtil
java.lang.Object
ghidra.app.util.bin.StructConverterUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static String
static DataType
toDataType
(Class<?> clazz) This is a convenience method for converting a class into structure.static DataType
toDataType
(Object object) This is a convenience method for converting a class into structure.
-
Constructor Details
-
StructConverterUtil
public StructConverterUtil()
-
-
Method Details
-
toDataType
This is a convenience method for converting a class into structure. The class is reflected to extract the field members. Only private non-static fields are considered. Any field names that start with underscore ("_") are ignored.- Parameters:
object
- the object to reflect- Returns:
- a structure representing the class fields.
-
toDataType
This is a convenience method for converting a class into structure. The class is reflected to extract the field members. Only private non-static fields are considered. Any field names that start with underscore ("_") are ignored.- Parameters:
clazz
- the class to reflect- Returns:
- a structure representing the class fields.
-
parseName
-
main
-