How can I look up the value of an object\'s property dynamically by name in Scala 2.10.x?
E.g. Given the class (it can\'t be a case class):
class Row(val
class Row(val click: Boolean, val date: String, val time: String) val row = new Row(click=true, date="2015-01-01", time="12:00:00") row.getClass.getDeclaredFields foreach { f => f.setAccessible(true) println(f.getName) println(f.get(row)) }