Menu

About reflection

Help
eRom
2005-01-13
2013-04-17
  • eRom

    eRom - 2005-01-13

    Hello,

    Is there a possibility to filter the methods returning by the ClassInfo ?

    When I make a :
    var methodMapIterator:Iterator = dcClassInfo.getMethods().iterator();
    while (methodMapIterator.hasNext()) {
        trace("Method Name               : " + MethodInfo(methodMapIterator.next()).getName() + "()");
    }

    It traces all methods, even hidden method like isPropertyEnumerable(), watch(), ......

    If I want only the class method, how can i do ?

    Thanks....and cheer, your framework is incredible! ;)

     
    • Simon Wacker

      Simon Wacker - 2005-01-17

      There's no possibility to filter the methods right now. The problem with Flash is that methods and variables have no type signature and no private or public signature at runtime. We thus can't give any information about these.

       
    • Simon Wacker

      Simon Wacker - 2005-01-17

      If you only want the methods of your class you can filter these directly by using the MethodInfo's getDeclaringType() method.
      I'll nevertheless add this to my Todo list to provide for general filtering support because this could also improve the performance.

       
    • eRom

      eRom - 2005-01-17

      "this could also improve the performance", sure you're right !

      Okay I try filtering with the MethodInfo's getDeclaringType()...

      Thanks !

      eRom

       

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.