package funkin.util; import Type; class ReflectUtil { public static function getClassFields(cls:Class):Array { return Type.getClassFields(cls); } public static function getClassFieldsOf(obj:Dynamic):Array { return Type.getClassFields(Type.getClass(obj)); } public static function getInstanceFields(cls:Class):Array { return Type.getInstanceFields(cls); } public static function getInstanceFieldsOf(obj:Dynamic):Array { return Type.getInstanceFields(Type.getClass(obj)); } public static function getClassName(cls:Class):String { return Type.getClassName(cls); } public static function getClassNameOf(obj:Dynamic):String { return Type.getClassName(Type.getClass(obj)); } }