Class FlowContainerDiff.Match
java.lang.Object
org.eclipse.viatra.query.runtime.api.impl.BasePatternMatch
be.kuleuven.cs.distrinet.sparta.queries.FlowContainerDiff.Match
- All Implemented Interfaces:
Cloneable,org.eclipse.viatra.query.runtime.api.IPatternMatch
- Enclosing class:
FlowContainerDiff
public abstract static class FlowContainerDiff.Match
extends org.eclipse.viatra.query.runtime.api.impl.BasePatternMatch
Pattern-specific match representation of the be.kuleuven.cs.distrinet.sparta.queries.flowContainerDiff pattern,
to be used in conjunction with
FlowContainerDiff.Matcher.
Class fields correspond to parameters of the pattern. Fields with value null are considered unassigned. Each instance is a (possibly partial) substitution of pattern parameters, usable to represent a match of the pattern in the result of a query, or to specify the bound (fixed) input parameters when issuing a query.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) inthashCode()static FlowContainerDiff.MatchReturns an empty, mutable match.static FlowContainerDiff.MatchnewMatch(DataFlowEntity pSender, DataFlowEntity pRecipient) Returns a new (partial) match.static FlowContainerDiff.MatchnewMutableMatch(DataFlowEntity pSender, DataFlowEntity pRecipient) Returns a mutable (partial) match.booleanvoidsetRecipient(DataFlowEntity pRecipient) voidsetSender(DataFlowEntity pSender) Object[]toArray()Methods inherited from class org.eclipse.viatra.query.runtime.api.impl.BasePatternMatch
isCompatibleWith, makeImmutableList, prettyPrintFeature, prettyPrintValue, set, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.viatra.query.runtime.api.IPatternMatch
isMutable
-
Method Details
-
get
-
get
- Specified by:
getin interfaceorg.eclipse.viatra.query.runtime.api.IPatternMatch- Overrides:
getin classorg.eclipse.viatra.query.runtime.api.impl.BasePatternMatch
-
getSender
-
getRecipient
-
set
-
setSender
-
setRecipient
-
patternName
- Specified by:
patternNamein interfaceorg.eclipse.viatra.query.runtime.api.IPatternMatch- Overrides:
patternNamein classorg.eclipse.viatra.query.runtime.api.impl.BasePatternMatch
-
parameterNames
- Specified by:
parameterNamesin interfaceorg.eclipse.viatra.query.runtime.api.IPatternMatch- Overrides:
parameterNamesin classorg.eclipse.viatra.query.runtime.api.impl.BasePatternMatch
-
toArray
-
toImmutable
-
prettyPrint
-
hashCode
public int hashCode() -
equals
-
specification
-
newEmptyMatch
Returns an empty, mutable match. Fields of the mutable match can be filled to create a partial match, usable as matcher input.- Returns:
- the empty match.
-
newMutableMatch
public static FlowContainerDiff.Match newMutableMatch(DataFlowEntity pSender, DataFlowEntity pRecipient) Returns a mutable (partial) match. Fields of the mutable match can be filled to create a partial match, usable as matcher input.- Parameters:
pSender- the fixed value of pattern parameter sender, or null if not bound.pRecipient- the fixed value of pattern parameter recipient, or null if not bound.- Returns:
- the new, mutable (partial) match object.
-
newMatch
Returns a new (partial) match. This can be used e.g. to call the matcher with a partial match.The returned match will be immutable. Use
newEmptyMatch()to obtain a mutable match object.- Parameters:
pSender- the fixed value of pattern parameter sender, or null if not bound.pRecipient- the fixed value of pattern parameter recipient, or null if not bound.- Returns:
- the (partial) match object.
-