public abstract class NashornRule extends BaseRule implements NashornScriptObject
| Constructor and Description |
|---|
NashornRule() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getSelf() |
Object |
getTarget() |
void |
onConfigure() |
abstract void |
onConfigure(Object self) |
void |
onInit() |
void |
onInit(Object self) |
void |
onRun(org.openksavi.sponge.event.Event event) |
abstract void |
onRun(Object self,
org.openksavi.sponge.event.Event event) |
void |
setTarget(Object target) |
NashornRule |
withAllCondition(jdk.nashorn.api.scripting.ScriptObjectMirror function) |
NashornRule |
withAllConditions(List<jdk.nashorn.api.scripting.ScriptObjectMirror> functions) |
NashornRule |
withCondition(String eventAlias,
jdk.nashorn.api.scripting.ScriptObjectMirror function) |
NashornRule |
withConditions(String eventAlias,
List<jdk.nashorn.api.scripting.ScriptObjectMirror> functions) |
createAdapter, getEvent, getEventAliasMap, getEventSequence, getMeta, getRuleAdapterImpl, withAllEventCondition, withAllEventConditions, withCategory, withDescription, withDuration, withEvent, withEventCondition, withEventConditions, withEvents, withEventSpec, withEventSpecs, withFeature, withFeatures, withLabel, withName, withOrdered, withSynchronous, withVersiongetEventSetProcessorAdapterImpl, getFirstEvent, getGroupgetAdapter, getKb, getKnowledgeBase, getLogger, getSponge, setAdapter, toStringpublic Object getSelf()
getSelf in interface NashornScriptObjectpublic Object getTarget()
getTarget in interface NashornScriptObjectpublic void setTarget(Object target)
setTarget in interface NashornScriptObjectpublic final void onConfigure()
onConfigure in interface org.openksavi.sponge.Processor<org.openksavi.sponge.rule.RuleAdapter>public abstract void onConfigure(Object self)
public final void onInit()
onInit in interface org.openksavi.sponge.Processor<org.openksavi.sponge.rule.RuleAdapter>onInit in class BaseProcessor<org.openksavi.sponge.rule.RuleAdapter>public void onInit(Object self)
public final void onRun(org.openksavi.sponge.event.Event event)
onRun in interface org.openksavi.sponge.rule.Rulepublic abstract void onRun(Object self, org.openksavi.sponge.event.Event event)
public NashornRule withConditions(String eventAlias, List<jdk.nashorn.api.scripting.ScriptObjectMirror> functions)
public NashornRule withCondition(String eventAlias, jdk.nashorn.api.scripting.ScriptObjectMirror function)
public NashornRule withAllConditions(List<jdk.nashorn.api.scripting.ScriptObjectMirror> functions)
public NashornRule withAllCondition(jdk.nashorn.api.scripting.ScriptObjectMirror function)
Copyright © 2016–2021 Softelnet. All rights reserved.