blob: 8dcb0f3ec6cd7042d114eb76c83e2da6796c399b (
plain) (
blame)
1
2
3
4
5
6
7
8
|
object Test {
def main(args: Array[String]) {
class Foo(val a: Int, val b: Int, val c: Int)
import scala.reflect.runtime.{currentMirror => cm}
val decls = cm.classSymbol(classOf[Foo]).info.decls
decls.sorted.toList.filter(!_.isMethod) foreach System.out.println
}
}
|