Package | Description |
---|---|
com.massa.mrules.action | |
com.massa.mrules.callable | |
com.massa.mrules.executable | |
com.massa.mrules.set |
Modifier and Type | Interface and Description |
---|---|
interface |
IAction
Defines something to do on the output bean.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractActionPrint
Action that prints something to execution context out stream (standard or error).
|
class |
AbstractBasicAction
Base class for many actions.
|
class |
AbstractSrcTgtAction<S extends IReadAccessor,T extends IAccessor>
Abstract layer for actions declaring a source and a target.
|
class |
MAccessorWrapper
Allows to wrap a read accessor as an executable to execute the "get" method.
|
class |
MActionAdd
Action that adds the value of the source Accessor to the Collection provided by the target Accessor.
|
class |
MActionAddAll
Action that adds all the values of the source Accessor to the Collection provided by the target Accessor.
|
class |
MActionClear
Action that adds the value of the source Accessor to the Collection provided by the target Accessor.
|
class |
MActionDefine
Defines a variable from an accessor value.
|
class |
MActionExec
Action that executes system command and redirects output to execution context out stream (standard or error).
|
class |
MActionFlowControl
Action that allows to control execution flow.
|
class |
MActionPrint
Implementation that concatenates a bunch of data and prints result.
|
class |
MActionPrintF
Implementation based on
MFormatAccessor , allowing to replace parts of an input String with values. |
class |
MActionResetCache
Action that allows to manually reset cached data.
|
class |
MActionSet
Action that sets the value of an accessor with a value taken from another accessor.
|
class |
MActionSort
Action that sorts the values of the source Accessor.
|
class |
MActionUndefine
Undefines a variable.
|
Modifier and Type | Class and Description |
---|---|
class |
Call
Performs the call to an ICallable, using the callable repository.
|
class |
Return
Stops execution of a
ICallable using flow control. |
Modifier and Type | Method and Description |
---|---|
List<? extends IExecutable> |
Function.getExecutables() |
Modifier and Type | Method and Description |
---|---|
void |
Function.setExecutables(List<? extends IExecutable> executables) |
Modifier and Type | Interface and Description |
---|---|
static interface |
IExecutable.ValueReturning
Annotating an executable with the ValueReturning interface
just points out that this particular executable may return a value,
i.e. the
IExecutionResult.getReturnedValue() of the execute(IExecutionContext)
method's result may be exploited. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractExecutable
Provides base utilities for Executable Rules.
|
class |
AbstractVariableCreator
Abstract class for executables which define variable(s).
|
class |
AbstractVariableCreatorSource
Abstract class for executables which define variable(s) from a source Accessor.
|
class |
MExecutionBlock
A simple list of executables, to use as a "sub block", which can allow to control flow more precisely
or to specify specific behaviour (different compilation level for example).
|
class |
MForEach
An action which parses a Collection, Arrays, etc ..., creates a variable with the current value and invokes executables for each value.
|
class |
MForEachNumber
An action which iterates on a range of numbers, creates a variable with the current value and invokes executables for each value.
|
class |
MIndex
A complete set of conditions to evaluate and actions to perform according to evaluation result.
|
class |
MRule
A complete set of condition to evaluate and actions to perform according to evaluation result.
|
Modifier and Type | Method and Description |
---|---|
IExecutable |
IExecutable.clone()
Clones the IExecutable.
|
Modifier and Type | Method and Description |
---|---|
List<? extends IExecutable> |
MIndex.IndexAction.getActions() |
List<? extends IExecutable> |
MIndex.getDefaultActions() |
List<? extends IExecutable> |
MRule.getElses() |
List<? extends IExecutable> |
MExecutionBlock.getExecutables() |
List<? extends IExecutable> |
MForEachNumber.getExecutables() |
List<? extends IExecutable> |
MForEach.getExecutables() |
List<? extends IExecutable> |
MRule.getThens() |
List<? extends IExecutable> |
MRule.ElseIf.getThens() |
Modifier and Type | Method and Description |
---|---|
static void |
AbstractExecutable.compileExecutables(ICompilationContext ctxt,
List<? extends IExecutable> executables)
Launched compilation process on a List of
IExecutable , if not empty or null. |
static IExecutionResult |
AbstractExecutable.execute(IExecutionContext ctxt,
IAddon owner,
List<? extends IExecutable> executables,
boolean stopAtFirstValidatedCondition)
Executes a list of
IExecutable . |
IExecutionResult |
AbstractExecutable.execute(IExecutionContext ctxt,
List<? extends IExecutable> executables,
boolean stopAtFirstValidatedCondition)
An easy way to launch
AbstractExecutable.execute(IExecutionContext, IAddon, List, boolean) with owner = this. |
void |
MIndex.IndexAction.setActions(List<? extends IExecutable> actions) |
void |
MIndex.setDefaultActions(List<? extends IExecutable> defaultActions) |
void |
MRule.setElses(List<? extends IExecutable> elses) |
void |
MExecutionBlock.setExecutables(List<? extends IExecutable> elses) |
void |
MForEachNumber.setExecutables(List<? extends IExecutable> executables) |
void |
MForEach.setExecutables(List<? extends IExecutable> executables) |
void |
MRule.setThens(List<? extends IExecutable> thens) |
void |
MRule.ElseIf.setThens(List<? extends IExecutable> actions) |
Constructor and Description |
---|
MExecutionBlock(List<IExecutable> executables)
Constructor with executables
|
MForEach(String var,
IReadAccessor property,
List<? extends IExecutable> executables)
Complete constructor
|
MIndex(IReadAccessor source,
Map<Object,MIndex.IndexAction> index,
List<? extends IExecutable> defaultActions)
Complete constructor
|
MRule(ICondition condition,
List<IExecutable> thens)
Constructor without thens
|
MRule(ICondition condition,
List<IExecutable> thens,
List<IExecutable> elses)
Complete constructor
|
MRule(ICondition condition,
List<IExecutable> thens,
List<IExecutable> elses)
Complete constructor
|
MRule(List<IExecutable> thens)
Constructor typically used for default rule
|
Modifier and Type | Interface and Description |
---|---|
interface |
IMruleExecutionSet
Deprecated.
This interface is replaced by
IMRuleExecutionSet and will be removed
in the next MRules release. |
interface |
IMRuleExecutionSet
This interface adds an abstraction level between Core Addon implementation and
factories / builder input / output methods.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMRuleExecutionSet
This class provides common base for several ruleset implementations.
|
class |
MRuleExecutionSet
Master Class and Entry point of the Engine.
|
class |
MRuleExecutionSetWrapper |
Modifier and Type | Method and Description |
---|---|
List<? extends IExecutable> |
MRuleExecutionSet.getExecutables() |
List<? extends IExecutable> |
MRuleExecutionSetWrapper.getRules() |
List<? extends IExecutable> |
MRuleExecutionSet.getRules()
Synonym for
MRuleExecutionSet.getExecutables() |
Modifier and Type | Method and Description |
---|---|
void |
MRuleExecutionSet.setExecutables(List<? extends IExecutable> executables) |
Constructor and Description |
---|
MRuleExecutionSet(List<? extends IExecutable> executables)
stopAtFirstValidatedCondition defaults to true
|
MRuleExecutionSet(List<? extends IExecutable> executables,
boolean stopAtFirstValidatedCondition) |