public class MReturnStatementOptimizer extends AbstractRecursiveOptimizer
Constructor and Description |
---|
MReturnStatementOptimizer() |
Modifier and Type | Method and Description |
---|---|
protected IAddon |
doAfterChildren(ICompilationContext ctxt,
IAddon parent,
PersistantPropertyInfo parentProp,
IAddon addon)
Does nothing.
|
protected IAddon |
doBeforeChildren(ICompilationContext ctxt,
IAddon parent,
PersistantPropertyInfo parentProp,
IAddon addon)
Does nothing.
|
Set<String> |
getAppliesToIds() |
boolean |
isBlocking() |
protected void |
pOptimize(ICompilationContext ctxt,
IAddon addon)
Intermediate method between optimizer's entry point and recursive method, allowing for example
to implement easily multi-pass optimizers.
|
protected void |
pOptimizeInCollection(ICompilationContext ctxt,
IAddon parent,
PersistantPropertyInfo parentProp,
Collection<Object> propValues)
Checks the addons collection to check that the return statement is in last position.
|
void |
setAppliesToIds(Set<String> appliesToIds) |
void |
setBlocking(boolean blocking) |
pOptimizeInMap, pOptimizeRecursively
getActivationPropertyName, isActivated, optimize, setActivated
protected void pOptimize(ICompilationContext ctxt, IAddon addon) throws MRuleValidationException
AbstractRecursiveOptimizer
pOptimize
in class AbstractRecursiveOptimizer
MRuleValidationException
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
protected void pOptimizeInCollection(ICompilationContext ctxt, IAddon parent, PersistantPropertyInfo parentProp, Collection<Object> propValues) throws MRuleValidationException
pOptimizeInCollection
in class AbstractRecursiveOptimizer
MRuleValidationException
public boolean isBlocking()
public void setBlocking(boolean blocking)