How to get a list of methods of an OO ABL class at runtime? (equivalent to hproc:INTERNAL-PROCEDURES) - Forum - OpenEdge General - Progress Community

How to get a list of methods of an OO ABL class at runtime? (equivalent to hproc:INTERNAL-PROCEDURES)

 Forum

How to get a list of methods of an OO ABL class at runtime? (equivalent to hproc:INTERNAL-PROCEDURES)

  • Hi Forum,  I seem to recall there was a plan to introduce some introspection capabilities in the AVM for 11.6 but I can't find any ABL instruction for it.

    Having a Progress.Lang.Object in hands, is there a way to get a list of public/protected/private methods ?

  • Yes - works pretty nicely. Use GetClass() to get a reference of the object instance's class and then:

    Architect of the SmartComponent Library and WinKit

    Consultingwerk Ltd.

  • Hi Sebastien:  Take a look at the extension made to the Progress.Lang.Class class n 11.6.0.  These extensions provide type information about an ABL class or an interface. There is a GetMethod () method - which returns a Progress.Reflect.Method instance describing the class method that matches the specified conditions. There is also a GetMethods () method.

    Evan

    Evan Bleicher

    Sr. Development Manager

    Progress Software

  • Hi Sebastien

    you also can watch the video https://youtu.be/4Lmsmfkuffk on Using ABL Reflection.

    Another new feature is support of Enumerated types  : http://youtu.be/0_2kTTC1cag

    Laurent  

    Laurent KIEFFER
    Senior Solution Consultant

    PROGRESS SOFTWARE FRANCE

    DIRECT       +33 (0) 4 72 38 52 11 
    MOBILE       +33 (0) 6 15 19 95 95