diff --git a/src/main/java/com/power/doc/utils/DocClassUtil.java b/src/main/java/com/power/doc/utils/DocClassUtil.java index 8dd48ab..d428797 100644 --- a/src/main/java/com/power/doc/utils/DocClassUtil.java +++ b/src/main/java/com/power/doc/utils/DocClassUtil.java @@ -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; + } }