title: Scala Class.getFields
body: <p>For purposes of my app I need to be able to find out a list of fields of a <strong>type</strong> (not an instance) and types of those fields in runtime. So far I was only able to get a list of methods of a case class containing getters with <code>classOf[MyCaseClass].getMethods</code> and nothing useful from a simple class. Am I missing something? Are there any reflection libraries for that kinda purposes? How's that done correctly?</p>