@PersistantProperty(property="executables",alias="executable") @PersistantProperty(property="stopAtFirstValidatedCondition",defaultValue="true") @PersistantProperty(property="resetCache",defaultValue="false") @PersistantProperty(property="indexVar") public class MForEach extends AbstractVariableCreatorSource
IExecutable.ValueReturning
Modifier and Type | Field and Description |
---|---|
static String |
FOREACH_ID |
VAR_PREFIX
Constructor and Description |
---|
MForEach()
Empty Constructor.
|
MForEach(String var,
IReadAccessor property,
List<? extends IExecutable> executables)
Complete constructor
|
Modifier and Type | Method and Description |
---|---|
MForEach |
clone()
Clones the Addon.
|
protected void |
compileExecutable(ICompilationContext ctxt)
Called by
AbstractExecutable.compile(ICompilationContext) to perform compilation operations. |
boolean |
equals(Object o) |
List<? extends IExecutable> |
getExecutables() |
String |
getImplementationId()
Unique addon implementation ID.
|
String |
getIndexVar() |
String |
getIndexVarName()
Returns the index var name to use in context variable cache.
|
int |
hashCode() |
protected IExecutionResult |
internalExecute(IExecutionContext ctxt) |
boolean |
isResetCache() |
boolean |
isStopAtFirstValidatedCondition() |
void |
setExecutables(List<? extends IExecutable> executables) |
void |
setIndexVar(String indexVar) |
void |
setResetCache(boolean resetCache) |
void |
setStopAtFirstValidatedCondition(boolean stopAtFirstValidatedCondition) |
void |
toString(OuterWithLevel outer)
Method used to send String representation of the current object to the
OuterWithLevel . |
getSource, setSource
debugVariableCreation, getType, getVar, getVarName, setType, setVar
combineResults, compile, compileExecutables, execute, execute, execute, getProperties, getProperty, hasProperties, hasProperty, removeProperty, setProperty
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, toString, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public static final String FOREACH_ID
public MForEach()
public MForEach(String var, IReadAccessor property, List<? extends IExecutable> executables)
protected void compileExecutable(ICompilationContext ctxt) throws MRuleValidationException
AbstractExecutable
AbstractExecutable.compile(ICompilationContext)
to perform compilation operations.compileExecutable
in class AbstractVariableCreatorSource
MRuleValidationException
protected IExecutionResult internalExecute(IExecutionContext ctxt) throws MExecutionException
internalExecute
in class AbstractExecutable
ExecutionResultState.combineActionState(ExecutionResultState)
) :
MExecutionException
public String getImplementationId()
IAddon
public void toString(OuterWithLevel outer) throws IOException
Outable
OuterWithLevel
.IOException
public MForEach clone()
IAddon
clone
in interface IAddon
clone
in interface IMRulesObject
clone
in interface IExecutable
clone
in class AbstractVariableCreatorSource
public boolean equals(Object o)
equals
in class AbstractVariableCreatorSource
public int hashCode()
hashCode
in class AbstractVariableCreatorSource
public List<? extends IExecutable> getExecutables()
public void setExecutables(List<? extends IExecutable> executables)
public boolean isStopAtFirstValidatedCondition()
public void setStopAtFirstValidatedCondition(boolean stopAtFirstValidatedCondition)
public boolean isResetCache()
public void setResetCache(boolean resetCache)
public String getIndexVarName()
public String getIndexVar()
public final void setIndexVar(String indexVar)