public class MExpressionOptimizer extends AbstractRecursiveOptimizer
Constructor and Description |
---|
MExpressionOptimizer() |
Modifier and Type | Method and Description |
---|---|
protected IAddon |
doAfterChildren(ICompilationContext ctxt,
IAddon parent,
PersistantPropertyInfo parentProp,
IAddon addon)
Performs optimization.
|
protected IAddon |
doBeforeChildren(ICompilationContext ctxt,
IAddon parent,
PersistantPropertyInfo parentProp,
IAddon addon)
Does nothing.
|
int |
getMaxPass() |
protected void |
pOptimize(ICompilationContext ctxt,
IAddon addon)
Optimizes an addon hierarchy by searching and simplifying logical expression.
|
void |
setMaxPass(int maxPass) |
pOptimizeInCollection, pOptimizeInMap, pOptimizeRecursively
getActivationPropertyName, isActivated, optimize, setActivated
protected void pOptimize(ICompilationContext ctxt, IAddon addon) throws MRuleValidationException
pOptimize
in class AbstractRecursiveOptimizer
ctxt
- Compilation contextaddon
- Addon to optimizeMRuleValidationException
protected IAddon doBeforeChildren(ICompilationContext ctxt, IAddon parent, PersistantPropertyInfo parentProp, IAddon addon) throws MRuleValidationException
doBeforeChildren
in class AbstractRecursiveOptimizer
MRuleValidationException
protected IAddon doAfterChildren(ICompilationContext ctxt, IAddon parent, PersistantPropertyInfo parentProp, IAddon addon) throws MRuleValidationException
doAfterChildren
in class AbstractRecursiveOptimizer
MRuleValidationException
public int getMaxPass()
public void setMaxPass(int maxPass)