static String classNameOf ( TypeElement type ) { String name = type . getQualifiedName ( ) . toString ( ) ; String pkgName = packageNameOf ( type ) ; return pkgName . isEmpty ( ) ? name : name . substring ( pkgName . length ( ) + 1 ) ; }
Returns the name of the given type including any enclosing types but not the package .