|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Match
Interface for rules matches.
Maps Node
s to EObject
s and assigns
parameter values by extending Assignment
.
Method Summary | |
---|---|
List<Match> |
getMultiMatches(Rule multiRule)
Get the nested matches for a multi-rule. |
EObject |
getNodeTarget(Node node)
Get the match target for a node. |
List<EObject> |
getNodeTargets()
Get all node targets of this match. |
Rule |
getRule()
Get the rule that this match is used for. |
boolean |
isComplete()
Checks if all nodes have a target and all nested matches are also complete. |
boolean |
isValid()
Checks whether this match is complete, whether the typing of the matched objects is correct with respect to the node types, and whether all edges are present. |
boolean |
overlapsWith(Match match)
Checks whether this match overlaps with another match. |
void |
setNodeTarget(Node node,
EObject target)
Set the match target for a node. |
Methods inherited from interface org.eclipse.emf.henshin.interpreter.Assignment |
---|
clear, getParameterValue, getParameterValues, getUnit, isEmpty, isResult, setParameterValue |
Method Detail |
---|
Rule getRule()
EObject getNodeTarget(Node node)
node
- The node.
void setNodeTarget(Node node, EObject target)
node
- The node.target
- The match target.List<EObject> getNodeTargets()
List<Match> getMultiMatches(Rule multiRule)
multiRule
- The multi-rule.
boolean overlapsWith(Match match)
getNodeTargets()
contain shared elements.
match
- A second match to check against.
true
if both matches have common targets.boolean isComplete()
true
if all nodes are matched.boolean isValid()
true
if the match is valid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |