Package org.eclipse.epsilon.eml.dom
Class MergeRule
- All Implemented Interfaces:
ModuleElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected StatementBlock
protected ExecutableBlock<Boolean>
protected Parameter
protected Parameter
Fields inherited from class org.eclipse.epsilon.erl.dom.ExtensibleNamedRule
allSuperRules, isAbstract, isGreedy, isLazy, isParallel, ofKindCache, ofTypeCache, superRules, superRulesIdentifiers
Fields inherited from class org.eclipse.epsilon.erl.dom.NamedRule
nameExpression
Fields inherited from class org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
annotationBlock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
appliesTo
(Match match, IEmlContext context) void
void
executeSuperRulesAndBody
(Match match, Collection<Object> targets, IEmlContext context) getSuperRulesAst
(AST cst) boolean
boolean
isPrimary
(IEmlContext context) Collection<?>
merge
(Match match, Collection<Object> targets, IEmlContext context) Collection<?>
merge
(Match match, IEmlContext context) toString()
Methods inherited from class org.eclipse.epsilon.erl.dom.ExtensibleNamedRule
calculateSuperRules, calculateSuperRules, getAllInstances, getAllOfKind, getAllOfType, getAllSuperRules, getRuleByName, getSuperRules, isAbstract, isGreedy, isLazy, isParallel
Methods inherited from class org.eclipse.epsilon.erl.dom.NamedRule
equals, getName, getNameAst, getNameExpression, hashCode
Methods inherited from class org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
accept, getAnnotation, getAnnotationBlock, getAnnotations, getAnnotationsValues, getBooleanAnnotationValue, getBooleanAnnotationValue, getBooleanAnnotationValue, getBooleanAnnotationValue, hasAnnotation, setAnnotationBlock
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
Field Details
-
guardBlock
-
bodyBlock
-
leftParameter
-
rightParameter
-
targetParameters
-
auto
protected boolean auto
-
-
Constructor Details
-
MergeRule
public MergeRule()
-
-
Method Details
-
build
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classExtensibleNamedRule
-
isPrimary
- Throws:
EolRuntimeException
-
appliesTo
- Throws:
EolRuntimeException
-
merge
public Collection<?> merge(Match match, Collection<Object> targets, IEmlContext context) throws EolRuntimeException - Throws:
EolRuntimeException
-
hasMerged
-
merge
- Throws:
EolRuntimeException
-
toString
-
executeSuperRulesAndBody
public void executeSuperRulesAndBody(Match match, Collection<Object> targets, IEmlContext context) throws EolRuntimeException - Throws:
EolRuntimeException
-
getSuperRulesAst
- Specified by:
getSuperRulesAst
in classExtensibleNamedRule
-