当前位置:网站首页>方法关键字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。
默认
如果省略此关键字,则不会在每个子类中编译该方法。
边栏推荐
- Alibaba数据源Druid可视化监控配置
- Tensorflow2.0 self defined training method to solve function coefficients
- Swiftui game source code Encyclopedia of Snake game based on geometryreader and preference
- [calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer
- The slave i/o thread stops because master and slave have equal MySQL serv
- (3) Web security | penetration testing | basic knowledge of network security construction, IIS website construction, EXE backdoor generation tool quasar, basic use of
- Learn to explore - use pseudo elements to clear the high collapse caused by floating elements
- Learning and Exploration - Seamless rotation map
- Dom 操作
- Druid database connection pool details
猜你喜欢

Selenium advanced operations

手把手教你学会js的原型与原型链,猴子都能看懂的教程
![[calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer](/img/8c/afb90128e7a523bbee4c6c4166363f.png)
[calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer

学习打卡web

(3) Web security | penetration testing | basic knowledge of network security construction, IIS website construction, EXE backdoor generation tool quasar, basic use of

Cereals Mall - Distributed Advanced p129~p339 (end)

企业精益管理体系介绍

How to do smoke test

【翻译】云原生观察能力微调查。普罗米修斯引领潮流,但要了解系统的健康状况仍有障碍...

redisson bug分析
随机推荐
In depth analysis, Android interview real problem analysis is popular all over the network
js实现力扣71题简化路径
腾讯T3手把手教你,真的太香了
Interview assault 63: how to remove duplication in MySQL?
Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"
今日直播 | “人玑协同 未来已来”2022弘玑生态伙伴大会蓄势待发
【基础架构】Flink/Flink-CDC的部署和配置(MySQL / ES)
关于图像的读取及处理等
POJ1149 PIGS 【最大流量】
ZABBIX proxy server and ZABBIX SNMP monitoring
Druid database connection pool details
Mysql Information Schema 学习(一)--通用表
从sparse.csc.csr_matrix生成邻接矩阵
学习打卡web
力扣101题:对称二叉树
121. The best time to buy and sell stocks
算法面试经典100题,Android程序员最新职业规划
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 (II) -- InnoDB table
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?