当前位置:网站首页>方法关键字Deprecated,ExternalProcName,Final,ForceGenerate
方法关键字Deprecated,ExternalProcName,Final,ForceGenerate
2022-07-06 11:48:00 【用户7741497】
第六十一章 方法关键字 - Deprecated
指定不推荐使用此方法。该关键字被类编译器忽略,只是提供了一个人类可读的指示符,表明该方法已被弃用。
用法
要指定不推荐使用此方法,请使用以下语法:
Method name(formal_spec) As returnclass [ Deprecated ]
{ //implementation }否则,省略此关键字或将单词Not放在关键字的前面。
第六十二章 方法关键字 - ExternalProcName
当此方法在外部数据库中用作存储过程时,指定其名称。仅当方法被投影为存储过程时适用。
若要在方法用作外部数据库中的存储过程时重写该方法的默认名称,请使用以下语法:
ClassMethod name(formal_spec) As returnclass [ SqlProc, ExternalProcName = MyProcedure ]
{ //implementation }其中MyProcedure是一个不带引号的字符串。
详解
当此方法在外部数据库中用作存储过程时,此关键字允许定义此方法的名称。
默认
如果省略此关键字,方法名将用作存储过程名
第六十三章 方法关键字 - Final
指定此方法是否为最终方法(不能在子类中重写)。
用法
要指定方法是最终的,请使用以下语法:
Method name(formal_spec) As returnclass [ Final ]
{ //implementation }否则,省略此关键字或将单词Not放在关键字的前面。
详解
标记为final的类成员不能在子类中被覆盖。
默认
如果省略此关键字,则该方法不是最终的。
第六十四章 方法关键字 - ForceGenerate
指定是否应该在每个子类中编译该方法。仅当方法是方法生成器时适用。
用法
要指定应该在每个子类中编译方法(方法生成器),请使用以下语法:
Method name(formal_spec) As returnclass [ CodeMode = ObjectGenerator, ForceGenerate ]
{ //implementation }否则,省略此关键字或将单词Not放在关键字的前面。
详解
在方法生成器方法的情况下,指定应该在每个子类中编译该方法。当需要确保每个子类都有自己的方法版本时,这个关键字非常有用。如果生成的代码看起来与超类生成的代码相同, IRIS不会重新编译子类中的方法。该逻辑不考虑两个类的包含文件是否相同。如果该方法使用了在包含文件中定义的宏,并且如果子类使用了不同的包含文件, IRIS不会在子类中重新编译该方法。在这种情况下,请为方法生成器指定ForceGenerate。
默认
如果省略此关键字,则不会在每个子类中编译该方法。
边栏推荐
- Zero foundation entry polardb-x: build a highly available system and link the big data screen
- swagger2报错Illegal DefaultValue null for parameter type integer
- Introduction to enterprise lean management system
- 如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!
- Transformer model (pytorch code explanation)
- POJ1149 PIGS 【最大流量】
- [translation] Digital insider. Selection process of kubecon + cloudnativecon in Europe in 2022
- Cf960g - bandit Blues (type I Stirling number +ogf)
- Systematic and detailed explanation of redis operation hash type data (with source code analysis and test results)
- 蓝桥杯 微生物增殖 C语言
猜你喜欢

Hudi vs Delta vs Iceberg

Carte de réflexion + code source + notes + projet, saut d'octets + jd + 360 + tri des questions d'entrevue Netease

JDBC details

The "white paper on the panorama of the digital economy" has been released with great emphasis on the digitalization of insurance

学习探索-使用伪元素清除浮动元素造成的高度坍塌

【翻译】云原生观察能力微调查。普罗米修斯引领潮流,但要了解系统的健康状况仍有障碍...
算法面试经典100题,Android程序员最新职业规划

10 schemes to ensure interface data security

深入浅出,面试突击版
![[玩转Linux] [Docker] MySQL安装和配置](/img/04/6253ef9fdf7d2242b42b4c7fb2c607.png)
[玩转Linux] [Docker] MySQL安装和配置
随机推荐
Zero foundation entry polardb-x: build a highly available system and link the big data screen
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
A popular explanation will help you get started
Swagger2 reports an error illegal DefaultValue null for parameter type integer
js实现力扣71题简化路径
USB host driver - UVC swap
Documents to be used in IC design process
zabbix 代理服务器 与 zabbix-snmp 监控
[translation] supply chain security project in toto moved to CNCF incubator
力扣101题:对称二叉树
Dark horse -- redis
Hudi vs Delta vs Iceberg
POJ3617 Best Cow Line 馋
Systematic and detailed explanation of redis operation hash type data (with source code analysis and test results)
Learn to explore - use pseudo elements to clear the high collapse caused by floating elements
[translation] linkerd's adoption rate in Europe and North America exceeded istio, with an increase of 118% in 2021.
【pytorch】yolov5 训练自己的数据集
时钟轮在 RPC 中的应用
Yyds dry goods inventory leetcode question set 751 - 760
转让malloc()该功能后,发生了什么事内核?附malloc()和free()实现源