public class MergeRule extends ExtensibleNamedRule
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
auto |
protected StatementBlock |
bodyBlock |
protected ExecutableBlock<Boolean> |
guardBlock |
protected Parameter |
leftParameter |
protected Parameter |
rightParameter |
protected List<Parameter> |
targetParameters |
allSuperRules, isAbstract, isGreedy, isLazy, ofKindCache, ofTypeCache, superRules, superRulesIdentifiersnameExpressionannotationBlock| Constructor and Description |
|---|
MergeRule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(Match match,
IEmlContext context) |
void |
build(AST cst,
IModule module) |
void |
executeSuperRulesAndBody(Match match,
Collection<Object> targets,
IEmlContext context) |
List<?> |
getModuleElements() |
AST |
getSuperRulesAst(AST cst) |
boolean |
hasMerged(Match match) |
boolean |
isLazy(IEmlContext context) |
boolean |
isPrimary(IEmlContext context) |
Collection<?> |
merge(Match match,
Collection<Object> targets,
IEmlContext context) |
Collection<?> |
merge(Match match,
IEmlContext context) |
String |
toString() |
calculateSuperRules, calculateSuperRules, getAllInstances, getAllOfKind, getAllOfType, getAllSuperRules, getRuleByName, getSuperRules, isAbstract, isGreedy, isLazygetName, getNameAst, getNameExpression, setNameExpressiongetAnnotation, getAnnotationBlock, getAnnotations, getAnnotationsValues, getBooleanAnnotationValue, getBooleanAnnotationValue, hasAnnotation, setAnnotationBlockgetChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUriprotected ExecutableBlock<Boolean> guardBlock
protected StatementBlock bodyBlock
protected Parameter leftParameter
protected Parameter rightParameter
protected boolean auto
public void build(AST cst, IModule module)
build in interface ModuleElementbuild in class ExtensibleNamedRulepublic boolean isLazy(IEmlContext context) throws EolRuntimeException
EolRuntimeExceptionpublic boolean isPrimary(IEmlContext context) throws EolRuntimeException
EolRuntimeExceptionpublic boolean appliesTo(Match match, IEmlContext context) throws EolRuntimeException
EolRuntimeExceptionpublic Collection<?> merge(Match match, Collection<Object> targets, IEmlContext context) throws EolRuntimeException
EolRuntimeExceptionpublic boolean hasMerged(Match match)
public Collection<?> merge(Match match, IEmlContext context) throws EolRuntimeException
EolRuntimeExceptionpublic void executeSuperRulesAndBody(Match match, Collection<Object> targets, IEmlContext context) throws EolRuntimeException
EolRuntimeExceptionpublic AST getSuperRulesAst(AST cst)
getSuperRulesAst in class ExtensibleNamedRulepublic List<?> getModuleElements()
getModuleElements in class NamedRuleCopyright © 2016. All rights reserved.