public static TypeName typeName ( TypeElement element , String suffix ) { String fullName = element . getQualifiedName ( ) . toString ( ) + suffix ; int lastIndex = fullName . lastIndexOf ( "." ) ; String packageName = fullName . substring ( 0 , lastIndex ) ; String className = fullName . substring ( lastIndex + 1 ) ; return typeName ( packageName , className ) ; }
Type name .