📄 groovysemanticfunctionscompiler.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.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -