public abstract class EngineScriptKnowledgeBaseInterpreter extends BaseScriptKnowledgeBaseInterpreter
| Modifier and Type | Field and Description |
|---|---|
protected ScriptEngine |
scriptEngine
Script engine instance.
|
cachedScriptClassInstancePovider, interpteterSynchro, PROP_PATH_SEPARATOR| Modifier | Constructor and Description |
|---|---|
protected |
EngineScriptKnowledgeBaseInterpreter(org.openksavi.sponge.kb.KnowledgeBaseEngineOperations engineOperations,
org.openksavi.sponge.kb.KnowledgeBaseType type)
Creates a new Knowledge Interpreter.
|
createInterpreterInstance, doCreateInstance, doLoad, doReload, eval, getStandardImportClasses, invalidateCache, isProcessorAbstract, load, load, load, load, load, load, onAfterReload, onBeforeReload, onInit, onLoad, onShutdown, onStartup, reloadcreatePluginInstance, createProcessorInstance, getCustomRuleEventSpec, getEngineOperations, getLogger, getRuleEventSpec, getType, getVariable, resolveEventNameAndAliasclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected ScriptEngine scriptEngine
protected EngineScriptKnowledgeBaseInterpreter(org.openksavi.sponge.kb.KnowledgeBaseEngineOperations engineOperations,
org.openksavi.sponge.kb.KnowledgeBaseType type)
engineOperations - an engine operations.type - a knowledge base type.protected abstract String getScriptClassInstancePoviderFormat()
protected abstract ScriptEngine createScriptEngine()
protected void prepareInterpreter()
prepareInterpreter in class BaseScriptKnowledgeBaseInterpreterpublic void onClear()
protected Invocable getInvocable()
public void invokeOptionalFunction(String name)
public void setVariable(String name, Object value)
name - variable name.value - variable value.public boolean existsVariable(String name)
public <T> T eval(String expression)
protected <T> T eval(ScriptEngine scriptEngine, String expression)
public <T> T eval(Reader reader, String fileName)
eval in class BaseScriptKnowledgeBaseInterpreterpublic ScriptEngine getScriptEngine()
public boolean isKnowledgeBaseException(Throwable exception)
protected <T> CachedScriptClassInstancePovider createCachedScriptClassInstancePovider()
createCachedScriptClassInstancePovider in class BaseScriptKnowledgeBaseInterpreterCopyright © 2016–2017 Softelnet. All rights reserved.