Class StructConverterUtil


  • public final class StructConverterUtil
    extends java.lang.Object
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StructConverterUtil

        public StructConverterUtil()
    • 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)