摘要 |
<p>A solution is proposed for de-serializing or translating a representation of a source object of a source software component written in a source language into a target software component written in a target language. A corresponding method (400) comprises the steps of receiving (412) the representation of the source object, determining (415- 445) a set of candidate types among a plurality of available types being available in the target language for the target software component, each candidate type being compatible with the representation of the source type. A set of match metrics is calculated (415-427,454-469) for each one of a corresponding candidate type, the match metric being indicative of a difference in information content between the candidate type and the representation of the source object. A candidate match is then selected (433-436,448-451,472-481) according to the match metrics and used in mapping (484) the representation of the source object onto a target object of the selected candidate type. In a specific embodiment the source language is JavascriptRTM and target language is JavaRTM.</p> |