SyntaxFix
Write A Post
Hire A Developer
Questions
You can use Reflections framework for this
import static org.reflections.ReflectionUtils.*; Set<Method> getters = ReflectionUtils.getAllMethods(someClass, withModifier(Modifier.PUBLIC), withPrefix("get"), withAnnotation(annotation));