How to find all classes of a package in Java

Finding all classes that have package name that matches a regex

Finding all annotated classes of a package without considering the classes hierarchy

Finding all annotated classes of a package by considering the classes hierarchy

Finding all classes of a package that have a particular annotation on at least one Field without considering the classes hierarchy

Finding all classes of a package that have a particular annotation on at least one Field by considering the classes hierarchy

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store