从基于非异常的模型中生成基于异常的组件模型
可以从基于非异常的模型中生成基于异常的组件模型。例如,可以解析可消费软件组件的基于非异常的接口合约(诸如头部文件中的基于非异常的接口合约)。另外,可以从基于非异常的接口合约中生成可消费软件组件的包装。包装可以具有基于异常的接口合约实现,并且基于异常的接口合约实现可以是与基于非异常的接口合约等价的镜像。如果基于非异常的接口合约将个或多个变量提示为可消费软件组件中的函数的输出变量,则可以使用预定义试探法来将基于异常的接口合约实现要使用的那些变量中的个选为函数的返回值。 Exception-based component models can be generated from non-except...
Saved in:
Format | Patent |
---|---|
Language | Chinese |
Published |
18.09.2018
|
Subjects | |
Online Access | Get full text |
Cover
Summary: | 可以从基于非异常的模型中生成基于异常的组件模型。例如,可以解析可消费软件组件的基于非异常的接口合约(诸如头部文件中的基于非异常的接口合约)。另外,可以从基于非异常的接口合约中生成可消费软件组件的包装。包装可以具有基于异常的接口合约实现,并且基于异常的接口合约实现可以是与基于非异常的接口合约等价的镜像。如果基于非异常的接口合约将个或多个变量提示为可消费软件组件中的函数的输出变量,则可以使用预定义试探法来将基于异常的接口合约实现要使用的那些变量中的个选为函数的返回值。
Exception-based component models can be generated from non-exception-based models. For example, a non-exception-based interface contract (such as a non-exception-based interface contract in a header file) for a consumable software component can be parsed. Additionally, a wrapper for the consumable software component can be generated from the non-exception-based interface contract. The wrapper can have an exception-based interface contract implementation, and the exception-based interface contract implementation can be a mirror equivalent of the non-exception-based interface contract. If the non-exception-based interface contract hints at one or more arguments as being out argument(s) for a function in the consumable software component, then predefined heuristics can be used to s |
---|---|
Bibliography: | Application Number: CN2011194624 |