add method
This commit is contained in:
parent
28aee05a54
commit
a648962b39
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue