cross platform class name extraction