Here you can find the source of toSimpleName(Class> type)
public static String toSimpleName(Class<?> type)
//package com.java2s; // under the terms of the GNU Lesser General Public License as published public class Main { public static String toSimpleName(Class<?> type) { String name = type.getName().substring(type.getName().lastIndexOf(".") + 1); // inner classes are not supported by ActionScript so we _ return name.replaceAll("\\$", "_"); }//ww w . j ava 2 s .c o m }