public class FindCommonParentClassMatcher extends org.eclipse.viatra.query.runtime.api.impl.BaseMatcher<FindCommonParentClassMatch>
Use the pattern matcher on a given model via on(ViatraQueryEngine)
,
e.g. in conjunction with ViatraQueryEngine#on(Notifier)
.
Matches of the pattern will be represented as FindCommonParentClassMatch
.
Original source:
Event-Driven rule precondition number 4
Queries structures that require the introduction of a new, common super-class. These structure involve two or
more blocks that introduce properties (meaning that they do not redefine an other property), that are considered
equal (have the same type and name), and are defined by a stereotype of the selected profile.
pattern FindCommonParentClass(block1 : Class, block2 : Class, attribute1 : Property, attribute2 : Property, stereotype : Stereotype) {
find block(block1);
find block(block2);
block1 != block2;
//Query attributes of blocks 1 and 2 as well as the stereotypes of the profile
Class.ownedAttribute(block1, attribute1);
Class.ownedAttribute(block2, attribute2);
//Attributes of the block do not redefine a property
neg find redefiningProperty(attribute1);
neg find redefiningProperty(attribute2);
Stereotype.ownedAttribute(stereotype, property);
//Check if they are all equal
find propertyAttributes(attribute1, name, type);
find propertyAttributes(attribute2, name, type);
find propertyAttributes(property, name, type);
}
FindCommonParentClassMatch
,
FindCommonParentClassProcessor
,
FindCommonParentClassQuerySpecification
Modifier and Type | Method and Description |
---|---|
protected FindCommonParentClassMatch |
arrayToMatch(java.lang.Object[] match) |
protected FindCommonParentClassMatch |
arrayToMatchMutable(java.lang.Object[] match) |
int |
countMatches(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2,
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
Returns the number of all matches of the pattern that conform to the given fixed values of some parameters.
|
static FindCommonParentClassMatcher |
create() |
void |
forEachMatch(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2,
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype,
org.eclipse.viatra.query.runtime.api.IMatchProcessor<? super FindCommonParentClassMatch> processor)
Executes the given processor on each match of the pattern that conforms to the given fixed values of some parameters.
|
boolean |
forOneArbitraryMatch(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2,
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype,
org.eclipse.viatra.query.runtime.api.IMatchProcessor<? super FindCommonParentClassMatch> processor)
Executes the given processor on an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters.
|
java.util.Collection<FindCommonParentClassMatch> |
getAllMatches(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2,
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
Returns the set of all matches of the pattern that conform to the given fixed values of some parameters.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> |
getAllValuesOfattribute1()
Retrieve the set of values that occur in matches for attribute1.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> |
getAllValuesOfattribute1(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2,
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
Retrieve the set of values that occur in matches for attribute1.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> |
getAllValuesOfattribute1(FindCommonParentClassMatch partialMatch)
Retrieve the set of values that occur in matches for attribute1.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> |
getAllValuesOfattribute2()
Retrieve the set of values that occur in matches for attribute2.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> |
getAllValuesOfattribute2(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1,
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
Retrieve the set of values that occur in matches for attribute2.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> |
getAllValuesOfattribute2(FindCommonParentClassMatch partialMatch)
Retrieve the set of values that occur in matches for attribute2.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> |
getAllValuesOfblock1()
Retrieve the set of values that occur in matches for block1.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> |
getAllValuesOfblock1(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2,
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
Retrieve the set of values that occur in matches for block1.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> |
getAllValuesOfblock1(FindCommonParentClassMatch partialMatch)
Retrieve the set of values that occur in matches for block1.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> |
getAllValuesOfblock2()
Retrieve the set of values that occur in matches for block2.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> |
getAllValuesOfblock2(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2,
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
Retrieve the set of values that occur in matches for block2.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> |
getAllValuesOfblock2(FindCommonParentClassMatch partialMatch)
Retrieve the set of values that occur in matches for block2.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype> |
getAllValuesOfstereotype()
Retrieve the set of values that occur in matches for stereotype.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype> |
getAllValuesOfstereotype(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2)
Retrieve the set of values that occur in matches for stereotype.
|
java.util.Set<com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype> |
getAllValuesOfstereotype(FindCommonParentClassMatch partialMatch)
Retrieve the set of values that occur in matches for stereotype.
|
FindCommonParentClassMatch |
getOneArbitraryMatch(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2,
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
Returns an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters.
|
boolean |
hasMatch(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2,
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
Indicates whether the given combination of specified pattern parameters constitute a valid pattern match,
under any possible substitution of the unspecified parameters (if any).
|
FindCommonParentClassMatch |
newMatch(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2,
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
Returns a new (partial) match.
|
static FindCommonParentClassMatcher |
on(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine)
Initializes the pattern matcher within an existing VIATRA Query engine.
|
static org.eclipse.viatra.query.runtime.api.IQuerySpecification<FindCommonParentClassMatcher> |
querySpecification() |
protected java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> |
rawAccumulateAllValuesOfattribute1(java.lang.Object[] parameters)
Retrieve the set of values that occur in matches for attribute1.
|
protected java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> |
rawAccumulateAllValuesOfattribute2(java.lang.Object[] parameters)
Retrieve the set of values that occur in matches for attribute2.
|
protected java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> |
rawAccumulateAllValuesOfblock1(java.lang.Object[] parameters)
Retrieve the set of values that occur in matches for block1.
|
protected java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> |
rawAccumulateAllValuesOfblock2(java.lang.Object[] parameters)
Retrieve the set of values that occur in matches for block2.
|
protected java.util.Set<com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype> |
rawAccumulateAllValuesOfstereotype(java.lang.Object[] parameters)
Retrieve the set of values that occur in matches for stereotype.
|
protected FindCommonParentClassMatch |
tupleToMatch(org.eclipse.viatra.query.runtime.matchers.tuple.Tuple t) |
countMatches, countMatches, emptyArray, forEachMatch, forEachMatch, forOneArbitraryMatch, forOneArbitraryMatch, getAllMatches, getAllMatches, getAllValues, getAllValues, getCapabilities, getEngine, getOneArbitraryMatch, getOneArbitraryMatch, getParameterNames, getPatternName, getPositionOfParameter, getSpecification, hasMatch, hasMatch, matchToArray, newEmptyMatch, newMatch, rawAccumulateAllValues, rawCountMatches, rawForEachMatch, rawForOneArbitraryMatch, rawGetAllMatches, rawGetAllValues, rawGetOneArbitraryMatch, rawHasMatch, setBackend
public static FindCommonParentClassMatcher on(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine)
engine
- the existing VIATRA Query engine in which this matcher will be created.ViatraQueryRuntimeException
- if an error occurs during pattern matcher creationpublic static FindCommonParentClassMatcher create()
ViatraQueryRuntimeException
- if an error occurs during pattern matcher creationpublic java.util.Collection<FindCommonParentClassMatch> getAllMatches(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2, com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
pBlock1
- the fixed value of pattern parameter block1, or null if not bound.pBlock2
- the fixed value of pattern parameter block2, or null if not bound.pAttribute1
- the fixed value of pattern parameter attribute1, or null if not bound.pAttribute2
- the fixed value of pattern parameter attribute2, or null if not bound.pStereotype
- the fixed value of pattern parameter stereotype, or null if not bound.public FindCommonParentClassMatch getOneArbitraryMatch(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2, com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
pBlock1
- the fixed value of pattern parameter block1, or null if not bound.pBlock2
- the fixed value of pattern parameter block2, or null if not bound.pAttribute1
- the fixed value of pattern parameter attribute1, or null if not bound.pAttribute2
- the fixed value of pattern parameter attribute2, or null if not bound.pStereotype
- the fixed value of pattern parameter stereotype, or null if not bound.public boolean hasMatch(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2, com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
pBlock1
- the fixed value of pattern parameter block1, or null if not bound.pBlock2
- the fixed value of pattern parameter block2, or null if not bound.pAttribute1
- the fixed value of pattern parameter attribute1, or null if not bound.pAttribute2
- the fixed value of pattern parameter attribute2, or null if not bound.pStereotype
- the fixed value of pattern parameter stereotype, or null if not bound.public int countMatches(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2, com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
pBlock1
- the fixed value of pattern parameter block1, or null if not bound.pBlock2
- the fixed value of pattern parameter block2, or null if not bound.pAttribute1
- the fixed value of pattern parameter attribute1, or null if not bound.pAttribute2
- the fixed value of pattern parameter attribute2, or null if not bound.pStereotype
- the fixed value of pattern parameter stereotype, or null if not bound.public void forEachMatch(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2, com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype, org.eclipse.viatra.query.runtime.api.IMatchProcessor<? super FindCommonParentClassMatch> processor)
pBlock1
- the fixed value of pattern parameter block1, or null if not bound.pBlock2
- the fixed value of pattern parameter block2, or null if not bound.pAttribute1
- the fixed value of pattern parameter attribute1, or null if not bound.pAttribute2
- the fixed value of pattern parameter attribute2, or null if not bound.pStereotype
- the fixed value of pattern parameter stereotype, or null if not bound.processor
- the action that will process each pattern match.public boolean forOneArbitraryMatch(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2, com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype, org.eclipse.viatra.query.runtime.api.IMatchProcessor<? super FindCommonParentClassMatch> processor)
pBlock1
- the fixed value of pattern parameter block1, or null if not bound.pBlock2
- the fixed value of pattern parameter block2, or null if not bound.pAttribute1
- the fixed value of pattern parameter attribute1, or null if not bound.pAttribute2
- the fixed value of pattern parameter attribute2, or null if not bound.pStereotype
- the fixed value of pattern parameter stereotype, or null if not bound.processor
- the action that will process the selected match.public FindCommonParentClassMatch newMatch(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2, com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
The returned match will be immutable. Use BaseMatcher.newEmptyMatch()
to obtain a mutable match object.
pBlock1
- the fixed value of pattern parameter block1, or null if not bound.pBlock2
- the fixed value of pattern parameter block2, or null if not bound.pAttribute1
- the fixed value of pattern parameter attribute1, or null if not bound.pAttribute2
- the fixed value of pattern parameter attribute2, or null if not bound.pStereotype
- the fixed value of pattern parameter stereotype, or null if not bound.protected java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> rawAccumulateAllValuesOfblock1(java.lang.Object[] parameters)
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> getAllValuesOfblock1()
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> getAllValuesOfblock1(FindCommonParentClassMatch partialMatch)
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> getAllValuesOfblock1(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2, com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
protected java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> rawAccumulateAllValuesOfblock2(java.lang.Object[] parameters)
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> getAllValuesOfblock2()
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> getAllValuesOfblock2(FindCommonParentClassMatch partialMatch)
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> getAllValuesOfblock2(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2, com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
protected java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> rawAccumulateAllValuesOfattribute1(java.lang.Object[] parameters)
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> getAllValuesOfattribute1()
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> getAllValuesOfattribute1(FindCommonParentClassMatch partialMatch)
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> getAllValuesOfattribute1(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2, com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
protected java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> rawAccumulateAllValuesOfattribute2(java.lang.Object[] parameters)
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> getAllValuesOfattribute2()
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> getAllValuesOfattribute2(FindCommonParentClassMatch partialMatch)
public java.util.Set<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property> getAllValuesOfattribute2(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1, com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
protected java.util.Set<com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype> rawAccumulateAllValuesOfstereotype(java.lang.Object[] parameters)
public java.util.Set<com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype> getAllValuesOfstereotype()
public java.util.Set<com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype> getAllValuesOfstereotype(FindCommonParentClassMatch partialMatch)
public java.util.Set<com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype> getAllValuesOfstereotype(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2)
protected FindCommonParentClassMatch tupleToMatch(org.eclipse.viatra.query.runtime.matchers.tuple.Tuple t)
tupleToMatch
in class org.eclipse.viatra.query.runtime.api.impl.BaseMatcher<FindCommonParentClassMatch>
protected FindCommonParentClassMatch arrayToMatch(java.lang.Object[] match)
arrayToMatch
in class org.eclipse.viatra.query.runtime.api.impl.BaseMatcher<FindCommonParentClassMatch>
protected FindCommonParentClassMatch arrayToMatchMutable(java.lang.Object[] match)
arrayToMatchMutable
in class org.eclipse.viatra.query.runtime.api.impl.BaseMatcher<FindCommonParentClassMatch>
public static org.eclipse.viatra.query.runtime.api.IQuerySpecification<FindCommonParentClassMatcher> querySpecification()
ViatraQueryRuntimeException
- if the pattern definition could not be loaded