Class StructConverterUtil

java.lang.Object
ghidra.app.util.bin.StructConverterUtil

public final class StructConverterUtil extends Object
  • Constructor Details

    • StructConverterUtil

      public StructConverterUtil()
  • Method Details

    • toDataType

      public static DataType toDataType(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(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 String parseName(Class<?> clazz)
    • main

      public static void main(String[] args)