发明名称 System and method for dynamically invoking object methods from an application designed for static method invocation
摘要 A method, system and program for allowing an application designed to use static method calls to manipulate objects whose methods are only available through dynamic calls without modifying the binary image of the application. A SOM compiler generates class definitions and generates a redispatch stub for each method defined in a class. A redispatch stub is a short sequence of instructions with an identical calling sequence as its corresponding method. This gives the class' dispatch enough information to determine the correct method procedure in a dynamic manner. The dispatch function employs the redispatch stub to call the appropriate method procedure and return any return value to the calling application via the redispatch stub. Redispatch stubs allows a class with a definition that can vary at runtime to be used by an application that was designed for statically defined classes.
申请公布号 US5421016(A) 申请公布日期 1995.05.30
申请号 US19910805778 申请日期 1991.12.12
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 CONNER, MICHAEL H.;COSKUN, NURCAN;MARTIN, ANDREW R.;RAPER, LARRY K.
分类号 G06F9/45;G06F9/42;G06F9/44;(IPC1-7):G06F9/44 主分类号 G06F9/45
代理机构 代理人
主权项
地址
您可能感兴趣的专利