public abstract class FindCommonParentClassMatch
extends org.eclipse.viatra.query.runtime.api.impl.BasePatternMatch
FindCommonParentClassMatcher
.
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.
FindCommonParentClassMatcher
,
FindCommonParentClassProcessor
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
get(java.lang.String parameterName) |
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property |
getAttribute1() |
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property |
getAttribute2() |
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class |
getBlock1() |
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class |
getBlock2() |
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype |
getStereotype() |
int |
hashCode() |
static FindCommonParentClassMatch |
newEmptyMatch()
Returns an empty, mutable match.
|
static 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 FindCommonParentClassMatch |
newMutableMatch(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 mutable (partial) match.
|
java.util.List<java.lang.String> |
parameterNames() |
java.lang.String |
patternName() |
java.lang.String |
prettyPrint() |
boolean |
set(java.lang.String parameterName,
java.lang.Object newValue) |
void |
setAttribute1(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1) |
void |
setAttribute2(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2) |
void |
setBlock1(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1) |
void |
setBlock2(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2) |
void |
setStereotype(com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype) |
FindCommonParentClassQuerySpecification |
specification() |
java.lang.Object[] |
toArray() |
FindCommonParentClassMatch |
toImmutable() |
get, isCompatibleWith, makeImmutableList, prettyPrintFeature, prettyPrintValue, set, toString
public java.lang.Object get(java.lang.String parameterName)
public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class getBlock1()
public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class getBlock2()
public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property getAttribute1()
public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property getAttribute2()
public com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype getStereotype()
public boolean set(java.lang.String parameterName, java.lang.Object newValue)
public void setBlock1(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock1)
public void setBlock2(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class pBlock2)
public void setAttribute1(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute1)
public void setAttribute2(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property pAttribute2)
public void setStereotype(com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype pStereotype)
public java.lang.String patternName()
patternName
in interface org.eclipse.viatra.query.runtime.api.IPatternMatch
patternName
in class org.eclipse.viatra.query.runtime.api.impl.BasePatternMatch
public java.util.List<java.lang.String> parameterNames()
parameterNames
in interface org.eclipse.viatra.query.runtime.api.IPatternMatch
parameterNames
in class org.eclipse.viatra.query.runtime.api.impl.BasePatternMatch
public java.lang.Object[] toArray()
public FindCommonParentClassMatch toImmutable()
public java.lang.String prettyPrint()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public FindCommonParentClassQuerySpecification specification()
public static FindCommonParentClassMatch newEmptyMatch()
public static FindCommonParentClassMatch newMutableMatch(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 static 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 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.