发明授权
US5421016A System and method for dynamically invoking object methods from an
application designed for static method invocation
失效
从为静态方法调用设计的应用程序动态调用对象方法的系统和方法
- 专利标题: System and method for dynamically invoking object methods from an application designed for static method invocation
- 专利标题(中): 从为静态方法调用设计的应用程序动态调用对象方法的系统和方法
-
申请号: US805778申请日: 1991-12-12
-
公开(公告)号: US5421016A公开(公告)日: 1995-05-30
- 发明人: Michael H. Conner , Nurcan Coskun , Andrew R. Martin , Larry K. Raper
- 申请人: Michael H. Conner , Nurcan Coskun , Andrew R. Martin , Larry K. Raper
- 申请人地址: NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: NY Armonk
- 主分类号: G06F9/45
- IPC分类号: G06F9/45 ; G06F9/42 ; G06F9/44
摘要:
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.
公开/授权文献
信息查询