add method

This commit is contained in:
oppofind 2019-12-19 18:10:01 +08:00
parent 28aee05a54
commit a648962b39
1 changed files with 22 additions and 0 deletions

View File

@ -488,4 +488,26 @@ public class DocClassUtil {
}
return apiReturn;
}
/**
* Get annotation simpleName
*
* @param annotationName annotationName
* @return String
*/
public static String getAnnotationSimpleName(String annotationName) {
return getClassSimpleName(annotationName);
}
/**
* Get className
* @param className className
* @return String
*/
public static String getClassSimpleName(String className) {
if (className.contains(".")) {
int index = className.lastIndexOf(".");
className = className.substring(index + 1, className.length());
}
return className;
}
}