首页 \ 问答 \ CodeEffects规则引擎 - (PHP - Java - 云替代)(CodeEffects Rules Engine - (PHP - Java - Cloud Alternative ))

CodeEffects规则引擎 - (PHP - Java - 云替代)(CodeEffects Rules Engine - (PHP - Java - Cloud Alternative ))

我正在开发一个项目,使用.net框架构建的代码效果规则引擎,尝试迁移到PHP Symfony2,是否有任何规则引擎替代它?


I am working on a project that using code effects rules engine built with .net framework , trying to migrate to PHP Symfony2 , is there any rules engine alternative for it ?


原文:https://stackoverflow.com/questions/31675690
更新时间:2023-03-12 17:03

最满意答案

是的,它必须有相同的选择器。

更新:

IIRC的论点也需要有相同的类型。

更新:

看起来,同一个选择器的所有方法在动态链接时都需要在所有类中具有相同的类型,而不是静态链接: linky


Yes, it must have the same selector.

update:

IIRC the arguments also needs to have the same types.

update:

It seems that all methods of the same selector needs to have equivalent types across all classes when linking dynamically, not so with static linking: linky

相关问答

更多
  • 您需要使用Objective C运行时方法,请参阅此处: https : //developer.apple.com/reference/objectivec/objective_c_runtime You'll want to use the Objective C runtime methods, see here: https://developer.apple.com/reference/objectivec/objective_c_runtime
  • 好吧,有...但你可能不想使用它。 Xcode中有一个名为“Strict Selector Matching”的构建设置(它作为-Wstrict-selector-match传递给编译-Wstrict-selector-match )。 如果编译器找到两个具有不同参数或返回类型的选择器,这将警告您。 不幸的是,即使类型不同但兼容,警告也会出现。 因此,如果你打开它,你会得到一些虚假的警告,你不会指望它是模棱两可的。 尽管如此,请随时尝试一下。 如果你想了解更多关于它的信息,Matt Gallagher写了一 ...
  • 您不能声明方法protected 或 private。 Objective-C的动态性使得无法实现方法的访问控制。 (您可以通过大量修改编译器或运行时,以严重的速度处罚,但由于明显的原因,这还没有完成)。 从源头 。 You can neither declare a method protected or private. Objective-C's dynamic nature makes it impossible to implement access controls for methods. ( ...
  • 例如: [[NSData alloc] initWithContentsOfFile:@"this/path/doesn't/exist/"]; [[NSImage alloc] initWithContentsOfFile:@"unsupportedFormat.sjt"]; [NSImage imageNamed:@"AnImageThatIsntInTheImageCache"]; ... 等等。 (注意:如果文件不存在,NSData可能会引发异常)。 有一些地方,当一个问题出现时,返回零是预期的行 ...
  • 由graver提供的博客文章解释了如何做到这一点。 - (BOOL)webView:(UIWebView *)webView2 shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType 如果您的类中有上述方法,则在加载新页面之前将调用此方法。 仅当此方法返回YES时,才会处理新的加载请求。 我们使用该机制与Objective- ...
  • 无需使用swizzling,performSelector:或任何其他运行时错误。 只需移动或复制它: @interface Class1 (Private) -(void) private1; -(void) private2; @end 到您的子类的.m文件的开头。 通常,当尝试为方法实现像@protected范围之类的东西时,这样的声明将在类似于Class1_Private.h的头文件中,并且该头将被设置为Xcode中的private角色。 正如其他人所说,通过这种机制暴露私有方法有点危险。 鉴于C ...
  • 与C#等Algol风格的语言不同,Objective-C的语法专为有文化的方法名称而设计。 init:告诉我没有关于method参数的信息。 接收器是否正在启动我正在传递的东西? 不。它以某种方式使用参数,因此我们使用像initWithFormat:这样的描述性名称来指定参数是格式字符串。 而且,Objective-C根本没有方法重载。 期。 给定类的单个选择器只能有一个类型签名。 基于参数类更改行为的唯一方法是让方法采用可包含许多不同类(如id或NSObject* )的泛型类型,请求参数为其类,并根据结果 ...
  • 是的,它必须有相同的选择器。 更新: IIRC的论点也需要有相同的类型。 更新: 看起来,同一个选择器的所有方法在动态链接时都需要在所有类中具有相同的类型,而不是静态链接: linky Yes, it must have the same selector. update: IIRC the arguments also needs to have the same types. update: It seems that all methods of the same selector needs to ...
  • 在面向对象编程中,方法重写是一种语言特性,它允许子类或子类提供已由其一个超类或父类提供的方法的特定实现。 子类中的实现通过提供与父类中的方法具有相同名称,相同参数或签名以及相同返回类型的方法来覆盖(替换)超类中的实现。 执行的方法版本将由用于调用它的对象确定。 如果父类的对象用于调用该方法,则将执行父类中的版本,但如果使用子类的对象来调用该方法,则将执行子类中的版本。 这是面向对象编程的一个非常强大的方面。 例子:C子类B和B子类A. 它们都有相同的方法打印如果你有一个带有一个实例名称的数组arr For ...
  • 这是你需要知道的: 所有标准C在.m文件中都有效。 所有标准C ++在.mm文件中都有效。 ( .mm文件包含“Objective-C ++”代码。) .m文件不需要包含类实现。 它可以只包含函数定义,如果这是你想要的。 所以,你可以把你的功能放在main.m如果这是你想要的: #import #import "AppDelegate.h" int myMax(int a, int b) { if (a > b) { return a; } ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)