List of usage examples for javax.lang.model.util Types erasure
TypeMirror erasure(TypeMirror t);
From source file:Main.java
private static String _doubleErasure(TypeMirror elementType, Types typeUtils) { String name = typeUtils.erasure(elementType).toString(); int typeParamStart = name.indexOf('<'); if (typeParamStart != -1) { name = name.substring(0, typeParamStart); }//w w w .j a va 2 s .com return name; }