⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 groovysemanticrulecompiler.java

📁 drools 一个开放源码的规则引擎
💻 JAVA
字号:
package org.drools.semantics.groovy;

import org.apache.commons.jci.compilers.JavaCompiler;
import org.apache.commons.jci.compilers.JavaCompilerFactory;
import org.drools.semantics.java.JavaSemanticRuleCompiler;
import org.drools.smf.SemanticRuleCompiler;

public class GroovySemanticRuleCompiler extends JavaSemanticRuleCompiler
{
    private static SemanticRuleCompiler INSTANCE;

    public static SemanticRuleCompiler getInstance()
    {
        if ( GroovySemanticRuleCompiler.INSTANCE == null )
        {
            GroovySemanticRuleCompiler.INSTANCE = new GroovySemanticRuleCompiler( "groovy",
                                                                                  JavaCompilerFactory.getInstance().createCompiler( JavaCompilerFactory.GROOVY ) );
        }
        return GroovySemanticRuleCompiler.INSTANCE;
    }

    protected GroovySemanticRuleCompiler(String semanticType,
                                         JavaCompiler compiler)
    {
        super( semanticType,
               compiler );
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -