I have a few reflection methods i'm using:
def typeMirror = runtimeMirror(this.getClass.getClassLoader)
def instanceMirror = typeMirror.reflect(this)
def members = instanceMirror.symbol.typeSignature.members
From members i'm trying to do something like this (I understand this is not correct, but i've tried various ways without success):
def modelMembers = members.filter(member => member.typeSignature == Model)
Where Model is the super class. The problem is I can only seem to figure out the sub classing typeSignature. How can i filter the members based on if they're a subclass of Model?