当前位置:网站首页>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 .
边栏推荐
- map的使用(列表的数据赋值到表单,json逗号隔开显示赋值)
- Leetcode 30. 串联所有单词的子串
- Li Kou 101: symmetric binary tree
- CPU负载很低,loadavg很高处理方法
- 广州首个数据安全峰会将在白云区开幕
- [pytorch] yolov5 train your own data set
- Analysis of rainwater connection
- Social recruitment interview experience, 2022 latest Android high-frequency selected interview questions sharing
- 力扣101题:对称二叉树
- 从sparse.csc.csr_matrix生成邻接矩阵
猜你喜欢
Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe
【翻译】云原生观察能力微调查。普罗米修斯引领潮流,但要了解系统的健康状况仍有障碍...
IC设计流程中需要使用到的文件
VMware virtual machine cannot open the kernel device "\.\global\vmx86"
Interview assault 63: how to remove duplication in MySQL?
Example of applying fonts to flutter
Learn to explore - use pseudo elements to clear the high collapse caused by floating elements
JDBC details
Li Kou 101: symmetric binary tree
[玩转Linux] [Docker] MySQL安装和配置
随机推荐
Druid database connection pool details
About image reading and processing, etc
spark基础-scala
LeetCode_ Double pointer_ Medium_ 61. rotating linked list
Unbalance balance (dynamic programming, DP)
POJ3617 Best Cow Line 馋
From spark csc. csr_ Matrix generate adjacency matrix
Leetcode 30. 串联所有单词的子串
腾讯T3大牛手把手教你,大厂内部资料
VMware virtual machine cannot open the kernel device "\.\global\vmx86"
121. 买卖股票的最佳时机
Hudi vs Delta vs Iceberg
Example of shutter text component
js实现力扣71题简化路径
Use of deg2rad and rad2deg functions in MATLAB
It's enough to read this article to analyze the principle in depth
[pytorch] yolov5 train your own data set
The "white paper on the panorama of the digital economy" has been released with great emphasis on the digitalization of insurance
通俗的讲解,带你入门协程
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?