String simpleBinaryNameFor ( TypeElement typeElement ) { Name elementBinaryName = elementUtils . getBinaryName ( typeElement ) ; PackageElement packageElement = elementUtils . getPackageOf ( typeElement ) ; String packageName = packageElement . getQualifiedName ( ) . toString ( ) ; return elementBinaryName . toString ( ) . replaceFirst ( packageName + "\\." , "" ) ; }
The binary name of the type as a String .