summaryrefslogblamecommitdiff
path: root/test/files/pos/getClassType.scala
blob: 7482788a41e6e7afb6d3dfeb8c8d5574e3d72660 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                             
trait IdlBase

class IdlConcrete extends IdlBase

class A {
  // In general, this method should not need an instance to reflect on it, so
  // take a Class[]
  def reflect(clazz : Class[_ <: IdlBase]) = {
    // Get a list of all its methods and build a hash keyed by method name
    // for statistics recording.
  }

  // But I also really have an IdlConcrete generated by Spring here...
  val idl = new IdlConcrete
  reflect(idl.getClass)
}