Menu

how do i start a reflection implementation

2005-01-26
2013-04-17
  • andre cardozo

    andre cardozo - 2005-01-26

    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??

     
    • Martin Heidegger

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.