当前位置:网站首页>方法关键字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。
默认
如果省略此关键字,则不会在每个子类中编译该方法。
边栏推荐
- Use of map (the data of the list is assigned to the form, and the JSON comma separated display assignment)
- Classic 100 questions of algorithm interview, the latest career planning of Android programmers
- MySql必知必会学习
- 利用 clip-path 绘制不规则的图形
- How to customize animation avatars? These six free online cartoon avatar generators are exciting at a glance!
- 广州首个数据安全峰会将在白云区开幕
- [translation] supply chain security project in toto moved to CNCF incubator
- 凤凰架构3——事务处理
- 1805. Number of different integers in the string
- Using clip path to draw irregular graphics
猜你喜欢

社招面试心得,2022最新Android高频精选面试题分享

How to customize animation avatars? These six free online cartoon avatar generators are exciting at a glance!

CPU负载很低,loadavg很高处理方法

手把手教你学会js的原型与原型链,猴子都能看懂的教程

10 schemes to ensure interface data security

Zero foundation entry polardb-x: build a highly available system and link the big data screen

DaGAN论文解读
Application of clock wheel in RPC

Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe

MySQL information schema learning (II) -- InnoDB table
随机推荐
颜色(color)转换为三刺激值(r/g/b)(干股)
Mind map + source code + Notes + project, ByteDance + JD +360+ Netease interview question sorting
1805. 字符串中不同整数的数目
Live broadcast today | the 2022 Hongji ecological partnership conference of "Renji collaboration has come" is ready to go
Zero foundation entry polardb-x: build a highly available system and link the big data screen
《数字经济全景白皮书》保险数字化篇 重磅发布
DOM operation
Hudi vs Delta vs Iceberg
【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
Cereals Mall - Distributed Advanced p129~p339 (end)
CF960G - Bandit Blues(第一类斯特林数+OGF)
理解 YOLOV1 第二篇 预测阶段 非极大值抑制(NMS)
[translation] micro survey of cloud native observation ability. Prometheus leads the trend, but there are still obstacles to understanding the health of the system
After solving 2961 user feedback, I made such a change
腾讯T3大牛手把手教你,大厂内部资料
黑馬--Redis篇
10 schemes to ensure interface data security
腾讯T2大牛亲自讲解,跳槽薪资翻倍
Problems encountered in using RT thread component fish
Simple application of VBA script in Excel