How can one or all of the following be done. Get all classes during runtime in Scala
- in a package
- that extend a particular trait
- with a custom annotation
How can one or all of the following be done. Get all classes during runtime in Scala
Use proper IDE.
For example, in Intellij IDEA to achieve
Ctrl+H
.I think there is a way to do exactly what you want.
Or you can use compiler's meta format to analyze it by yourself.