Well our implementation is quite a pretty complex approach. I guess you would understand it best if you read our implementation.
We took following assumtions:
1.) All classes/packages are within the _global scope so we are starting there
2.) If someone wants the info of a class we take a look at our cache if someone wanted it before.
3.) If noone wanted it before we search in each package (object) if it is availalbe (be aware of recursion!)
4.) All methods will be evaluated in the same lacy way: if someone wants to get all the methods of a class we search it by this time.
If you want to start learning about our way you should start reading with ClassInfo.getClassInfo (or in the last release ReflectUtil.getClassInfo). You will recognize all the algorithms if you search the final implementation.
yours Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi guys nice work you have done, im trying to figure out how you did the reflection in actionscript, is there any documentation? Where do I start??
Well our implementation is quite a pretty complex approach. I guess you would understand it best if you read our implementation.
We took following assumtions:
1.) All classes/packages are within the _global scope so we are starting there
2.) If someone wants the info of a class we take a look at our cache if someone wanted it before.
3.) If noone wanted it before we search in each package (object) if it is availalbe (be aware of recursion!)
4.) All methods will be evaluated in the same lacy way: if someone wants to get all the methods of a class we search it by this time.
If you want to start learning about our way you should start reading with ClassInfo.getClassInfo (or in the last release ReflectUtil.getClassInfo). You will recognize all the algorithms if you search the final implementation.
yours Martin