in hugegraph-common/src/main/java/org/apache/hugegraph/util/ReflectionUtil.java [64:81]
public static List<CtMethod> getMethodsAnnotatedWith(
CtClass type,
Class<? extends Annotation> annotation,
boolean withSuperClass)
throws NotFoundException {
final List<CtMethod> methods = new LinkedList<>();
CtClass klass = type;
do {
for (CtMethod method : klass.getDeclaredMethods()) {
if (method.hasAnnotation(annotation)) {
methods.add(method);
}
}
klass = klass.getSuperclass();
} while (klass != null && withSuperClass);
return methods;
}