cant reflect just one class
Monkey Forums/Monkey Programming/cant reflect just one class
| ||
Import reflection #REFLECTION_FILTER="reflecttest.myclass" Class myclass Field myint:Int End Class Function Main:Int() Local m:myclass=New myclass Local clas:=GetClass(m) Print "Name"+clas.Name clas=clas.SuperClass Print "Name "+clas.Name End Function I create a myclass, the reflection thinks its a Monkey.Object it doesnt seem to have a superclass EDIT-I need to import individual classes not just do: #REFLECTION_FILTER+="${MODPATH}*" because that reflects MOJO which is big, and BBThread is private so the program doesnt compile |
| ||
This is by design - modules are currently the 'smallest' level construct you can specify via reflection filter. |