Class ThreatSpecPatternDisable
java.lang.Object
org.eclipse.viatra.query.runtime.api.impl.BaseQuerySpecification<org.eclipse.viatra.query.runtime.api.GenericPatternMatcher>
org.eclipse.viatra.query.runtime.api.GenericQuerySpecification<org.eclipse.viatra.query.runtime.api.GenericPatternMatcher>
org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFQuerySpecificationWithGenericMatcher
be.kuleuven.cs.distrinet.sparta.queries.internal.ThreatSpecPatternDisable
- All Implemented Interfaces:
org.eclipse.viatra.query.runtime.api.IQuerySpecification<org.eclipse.viatra.query.runtime.api.GenericPatternMatcher>,org.eclipse.viatra.query.runtime.matchers.psystem.queries.PQueryHeader
public final class ThreatSpecPatternDisable
extends org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFQuerySpecificationWithGenericMatcher
A pattern-specific query specification that can instantiate GenericPatternMatcher in a type-safe way.
Original source:
//
// match threat types with disabled communication pattern spec
private pattern threatSpecPatternDisable(t : ThreatType, pattrn : EString) {
// used to check for searching if the pattern is disabled
find threatTypeParent(parent,t);
ThreatSpecification(ts);
ThreatSpecification.threat(ts,parent);
ThreatSpecification.patterns(ts,Map);
EStringToEBooleanMap.key(Map, pattrn);
EStringToEBooleanMap.value(Map, false);
}
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseQuerySpecification
wrappedPQuery -
Method Summary
Methods inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFQuerySpecificationWithGenericMatcher
getPreferredScopeClass, instantiate, instantiate, newEmptyMatch, newMatchMethods inherited from class org.eclipse.viatra.query.runtime.api.GenericQuerySpecification
defaultInstantiate, getVisibilityMethods inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseQuerySpecification
ensureInitializedInternal, getAllAnnotations, getAnnotationsByName, getFirstAnnotationByName, getFullyQualifiedName, getInternalQueryRepresentation, getMatcher, getParameterNames, getParameters, getPositionOfParameter, processInitializerErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.viatra.query.runtime.api.IQuerySpecification
getPProblems, getStatusMethods inherited from interface org.eclipse.viatra.query.runtime.matchers.psystem.queries.PQueryHeader
getParameter, getSimpleName
-
Method Details
-
instance
- Returns:
- the singleton instance of the query specification
-