Class ExecutableRules
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.ExecutableRules
-
class ExecutableRules extends java.lang.ObjectStores information about executable rules.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AbstractRule>rules
-
Constructor Summary
Constructors Constructor Description ExecutableRules()Creates the executable rules structure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectbuildContributing(AbstractRuleMatchExpression expression, BuildlangExecution visitor)Aims at building contributing match expressions if the given expression fails.voidcollect(Script script)Collects the executable rules forscript.private voidcollect(Script script, boolean asParent, java.util.Set<Script> processed, java.util.Set<java.lang.String> knownSignatures)Collects the executable rules forscript.
-
-
-
Field Detail
-
rules
private java.util.List<AbstractRule> rules
-
-
Method Detail
-
collect
public void collect(Script script)
Collects the executable rules forscript.- Parameters:
script- the script to collect the rules for
-
collect
private void collect(Script script, boolean asParent, java.util.Set<Script> processed, java.util.Set<java.lang.String> knownSignatures)
Collects the executable rules forscript.- Parameters:
script- the script to collect the rules forasParent- was this reached via a parent relationshipprocessed- the already processed scripts to avoid loopsknownSignatures- the known signatures to exclude rules shadowed by inheritance
-
buildContributing
public java.lang.Object buildContributing(AbstractRuleMatchExpression expression, BuildlangExecution visitor) throws VilException
Aims at building contributing match expressions if the given expression fails.- Parameters:
expression- the failing expression which shall match after the contributing ones are builtvisitor- the execution visitor- Returns:
- the result of
expressionafter the contributing ones are considered - Throws:
VilException- in case of any execution error
-
-