groovysemanticfunctionscompiler.java
来自「drools 一个开放源码的规则引擎」· Java 代码 · 共 29 行
JAVA
29 行
package org.drools.semantics.groovy;
import org.apache.commons.jci.compilers.JavaCompiler;
import org.apache.commons.jci.compilers.JavaCompilerFactory;
import org.drools.semantics.java.JavaSemanticFunctionsCompiler;
import org.drools.smf.SemanticFunctionsCompiler;
public class GroovySemanticFunctionsCompiler extends JavaSemanticFunctionsCompiler
{
private static SemanticFunctionsCompiler INSTANCE;
public static SemanticFunctionsCompiler getInstance()
{
if ( GroovySemanticFunctionsCompiler.INSTANCE == null )
{
GroovySemanticFunctionsCompiler.INSTANCE = new GroovySemanticFunctionsCompiler( "groovy",
JavaCompilerFactory.getInstance().createCompiler( JavaCompilerFactory.GROOVY ) );
}
return GroovySemanticFunctionsCompiler.INSTANCE;
}
protected GroovySemanticFunctionsCompiler(String semanticType, JavaCompiler compiler)
{
super( semanticType,
compiler );
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?