当前位置:网站首页>Method keywords deprecated, externalprocname, final, forcegenerate
Method keywords deprecated, externalprocname, final, forcegenerate
2022-07-06 19:48:00 【User 7741497】
Chapter 61 Method keyword - Deprecated
Specify that this method is not recommended . This keyword is ignored by the class compiler , It just provides a human readable indicator , Indicates that the method has been deprecated .
usage
To specify that this method is not recommended , Please use the following syntax :
Method name(formal_spec) As returnclass [ Deprecated ]
{ //implementation }
otherwise , Omit this keyword or put the word Not
Put in front of the keyword .
Chapter 62 Method keyword - ExternalProcName
When this method is used as a stored procedure in an external database , Specify its name . Applicable only if the method is projected as a stored procedure .
To override the default name of a method when it is used as a stored procedure in an external database , Please use the following syntax :
ClassMethod name(formal_spec) As returnclass [ SqlProc, ExternalProcName = MyProcedure ]
{ //implementation }
among MyProcedure
Is a string without quotation marks .
Detailed explanation
When this method is used as a stored procedure in an external database , This keyword allows you to define the name of this method .
Default
If you omit this keyword , The method name will be used as the stored procedure name
Chapter 63 Method keyword - Final
Specify whether this method is the final method ( Cannot override in subclasses ).
usage
To specify that the method is final , Please use the following syntax :
Method name(formal_spec) As returnclass [ Final ]
{ //implementation }
otherwise , Omit this keyword or put the word Not Put in front of the keyword .
Detailed explanation
Marked as final
Class members of cannot be overridden in subclasses .
Default
If you omit this keyword , Then this method is not final .
Chapter 64 Method keyword - ForceGenerate
Specify whether the method should be compiled in each subclass . Applicable only if the method is a method generator .
usage
To specify that methods should be compiled in each subclass ( Method generator ), Please use the following syntax :
Method name(formal_spec) As returnclass [ CodeMode = ObjectGenerator, ForceGenerate ]
{ //implementation }
otherwise , Omit this keyword or put the word Not Put in front of the keyword .
Detailed explanation
In the case of a method generator method , Specify that the method should be compiled in each subclass . When you need to ensure that each subclass has its own method version , This keyword is very useful . If the generated code looks the same as the code generated by the superclass , IRIS Methods in subclasses will not be recompiled . This logic does not consider whether the included files of the two classes are the same . If the method uses macros defined in the include file , And if subclasses use different include files , IRIS The method will not be recompiled in subclasses . under these circumstances , Please specify ForceGenerate
.
Default
If you omit this keyword , The method will not be compiled in each subclass .
边栏推荐
- usb host 驱动 - UVC 掉包
- CF960G - Bandit Blues(第一类斯特林数+OGF)
- 潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe
- 社招面试心得,2022最新Android高频精选面试题分享
- 121. The best time to buy and sell stocks
- It's super detailed in history. It's too late for you to read this information if you want to find a job
- Interpretation of Dagan paper
- ZABBIX proxy server and ZABBIX SNMP monitoring
- MySQL information schema learning (II) -- InnoDB table
- 零基础入门PolarDB-X:搭建高可用系统并联动数据大屏
猜你喜欢
Microservice architecture debate between radical technologists vs Project conservatives
如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!
Example of applying fonts to flutter
[玩转Linux] [Docker] MySQL安装和配置
反射及在运用过程中出现的IllegalAccessException异常
腾讯T3大牛手把手教你,大厂内部资料
深入浅出,面试突击版
【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
Mysql Information Schema 学习(二)--Innodb表
A5000 vGPU显示模式切换
随机推荐
面试突击63:MySQL 中如何去重?
系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe
mod_wsgi + pymssql通路SQL Server座
From spark csc. csr_ Matrix generate adjacency matrix
学习打卡web
Tensorflow2.0 自定义训练的方式求解函数系数
swagger2报错Illegal DefaultValue null for parameter type integer
腾讯T2大牛亲自讲解,跳槽薪资翻倍
Mysql Information Schema 学习(二)--Innodb表
深入分析,Android面试真题解析火爆全网
腾讯Android面试必问,10年Android开发经验
After solving 2961 user feedback, I made such a change
思维导图+源代码+笔记+项目,字节跳动+京东+360+网易面试题整理
腾讯T3大牛手把手教你,大厂内部资料
MySQL information schema learning (I) -- general table
POJ 3207 Ikki's Story IV – Panda's Trick (2-SAT)
颜色(color)转换为三刺激值(r/g/b)(干股)
MySQL must know and learn
POJ1149 PIGS 【最大流量】