当前位置:网站首页>方法关键字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。
默认
如果省略此关键字,则不会在每个子类中编译该方法。
边栏推荐
- CPU负载很低,loadavg很高处理方法
- Leetcode 30. Concatenate substrings of all words
- VMware virtual machine cannot open the kernel device "\.\global\vmx86"
- Use of map (the data of the list is assigned to the form, and the JSON comma separated display assignment)
- Elastic search indexes are often deleted [closed] - elastic search indexes gets deleted frequently [closed]
- 企业精益管理体系介绍
- Translation D28 (with AC code POJ 26:the nearest number)
- A5000 vGPU显示模式切换
- Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"
- Lick the dog until the last one has nothing (simple DP)
猜你喜欢
Application of clock wheel in RPC

Microservice architecture debate between radical technologists vs Project conservatives

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

MySQL information schema learning (I) -- general table

冒烟测试怎么做

Dark horse -- redis

Configuration and simple usage of the EXE backdoor generation tool quasar

Hudi vs Delta vs Iceberg
![[玩转Linux] [Docker] MySQL安装和配置](/img/04/6253ef9fdf7d2242b42b4c7fb2c607.png)
[玩转Linux] [Docker] MySQL安装和配置

Live broadcast today | the 2022 Hongji ecological partnership conference of "Renji collaboration has come" is ready to go
随机推荐
如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!
理解 YOLOV1 第二篇 预测阶段 非极大值抑制(NMS)
In depth analysis, Android interview real problem analysis is popular all over the network
zabbix 代理服务器 与 zabbix-snmp 监控
C # use Marshall to manually create unmanaged memory in the heap and use
Teach you to learn JS prototype and prototype chain hand in hand, a tutorial that monkeys can understand
LeetCode_ Gray code_ Medium_ 89. Gray code
Configuration and simple usage of the EXE backdoor generation tool quasar
学习探索-使用伪元素清除浮动元素造成的高度坍塌
学习探索-无缝轮播图
POJ 3207 Ikki's Story IV – Panda's Trick (2-SAT)
In simple terms, interview surprise Edition
颜色(color)转换为三刺激值(r/g/b)(干股)
DaGAN论文解读
信息系统项目管理师---第八章 项目质量管理
冒烟测试怎么做
usb host 驱动 - UVC 掉包
[translation] Digital insider. Selection process of kubecon + cloudnativecon in Europe in 2022
在解决了 2961 个用户反馈后,我做出了这样的改变...
深入分析,Android面试真题解析火爆全网