Package ghidra.app.util.bin
Class StructConverterUtil
- java.lang.Object
-
- ghidra.app.util.bin.StructConverterUtil
-
public final class StructConverterUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StructConverterUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
static java.lang.String
parseName(java.lang.Class<?> clazz)
static DataType
toDataType(java.lang.Class<?> clazz)
This is a convenience method for converting a class into structure.static DataType
toDataType(java.lang.Object object)
This is a convenience method for converting a class into structure.
-
-
-
Method Detail
-
toDataType
public static DataType toDataType(java.lang.Object object)
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
public static DataType toDataType(java.lang.Class<?> clazz)
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
public static java.lang.String parseName(java.lang.Class<?> clazz)
-
main
public static void main(java.lang.String[] args)
-
-