vendredi 13 février 2015

Get all classes of a package

How can I get a list of all classes in a given package?

I tried this:



import scala.reflect.runtime.{currentMirror => cm}
val classes = cm.staticPackage("scala.collection.mutable").typeSignature.declarations


But it seems to give me an empty list.






Aucun commentaire:

Enregistrer un commentaire