发明名称 Processing reified generics in object-based programming environments
摘要 A computer-implemented method of processing a reified generic in an interface method written in a first programming language includes a processor accessing a definition and an invocation of the interface method from a memory device; the processor generating a definition of a general dispatch method in a second programming language; the processor generating definitions of special dispatch methods in the second programming language, each of the special dispatch methods corresponding to each primitive return type of the interface method the processor generating an invocation of either the general dispatch method or one of the special dispatch methods in the second programming language based on a return type of the interface method.
申请公布号 US8863098(B2) 申请公布日期 2014.10.14
申请号 US201213569599 申请日期 2012.08.08
申请人 International Business Machines Corporation 发明人 Makino Yuki;Takeuchi Mikio
分类号 G06F9/45 主分类号 G06F9/45
代理机构 Cantor Colburn LLP 代理人 Cantor Colburn LLP ;Alexanian Vazken
主权项 1. A computer-implemented method of processing a reified generic in an interface method written in a first programming language, the method comprising: a processor accessing a definition and an invocation of the interface method from a memory device; the processor executing a translation of a programming code in the first programming language to a second programming language;the processor generating a definition of a general dispatch method in the second programming language;the processor generating definitions of special dispatch methods in the second programming language, each of the special dispatch methods corresponding to each primitive return type of the interface method; andthe processor generating an invocation of either the general dispatch method or one of the special dispatch methods in the second programming language based on a return type of the interface method.
地址 Armonk NY US