当前位置:网站首页>方法关键字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
。
默认
如果省略此关键字,则不会在每个子类中编译该方法。
边栏推荐
- 【翻译】云原生观察能力微调查。普罗米修斯引领潮流,但要了解系统的健康状况仍有障碍...
- Translation D28 (with AC code POJ 26:the nearest number)
- 从sparse.csc.csr_matrix生成邻接矩阵
- 测试用里hi
- Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"
- 学习探索-函数防抖
- 冒烟测试怎么做
- Alibaba data source Druid visual monitoring configuration
- VMware virtual machine cannot open the kernel device "\.\global\vmx86"
- A5000 vGPU显示模式切换
猜你喜欢
零基础入门PolarDB-X:搭建高可用系统并联动数据大屏
Learning and Exploration - Seamless rotation map
The "white paper on the panorama of the digital economy" has been released with great emphasis on the digitalization of insurance
力扣101题:对称二叉树
In simple terms, interview surprise Edition
Microservice architecture debate between radical technologists vs Project conservatives
Mysql Information Schema 学习(一)--通用表
信息系统项目管理师---第八章 项目质量管理
Social recruitment interview experience, 2022 latest Android high-frequency selected interview questions sharing
Example of applying fonts to flutter
随机推荐
10 schemes to ensure interface data security
Leetcode 30. Concatenate substrings of all words
USB host driver - UVC swap
[calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer
[translation] Digital insider. Selection process of kubecon + cloudnativecon in Europe in 2022
Unbalance balance (dynamic programming, DP)
map的使用(列表的数据赋值到表单,json逗号隔开显示赋值)
POJ 3207 Ikki's Story IV – Panda's Trick (2-SAT)
DaGAN论文解读
LeetCode_ Gray code_ Medium_ 89. Gray code
系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
【基础架构】Flink/Flink-CDC的部署和配置(MySQL / ES)
C # - realize serialization with Marshall class
Alibaba data source Druid visual monitoring configuration
腾讯Android面试必问,10年Android开发经验
潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe
企业精益管理体系介绍
IC设计流程中需要使用到的文件
Configuration and simple usage of the EXE backdoor generation tool quasar
It's enough to read this article to analyze the principle in depth