public static GeneratedMatchingPattern patternRule_Condition_7926701909975928828( final PatternRuleContext _context) { GeneratedMatchingPattern pattern = new QueriesGenerated.Pattern_x583g4_a0a0a88(); if (!(pattern.match(_context.getNode()))) { return null; } return pattern; }
public static GeneratedMatchingPattern patternRule_Condition_8654221991637509675( final PatternRuleContext _context) { GeneratedMatchingPattern pattern = new QueriesGenerated.Pattern_x583g4_a0a0a68(); if (!(pattern.match(_context.getNode()))) { return null; } return pattern; }
public static GeneratedMatchingPattern patternRule_Condition_6647099934207260021( final PatternRuleContext _context) { GeneratedMatchingPattern pattern = new QueriesGenerated.Pattern_x583g4_a0a0a58(); if (!(pattern.match(_context.getNode()))) { return null; } return pattern; }
public boolean match(SNode nodeToMatch) { { SNode nodeToMatch_7fbm30_a0a = nodeToMatch; if (!("jetbrains.mps.baseLanguage.structure.AssertStatement" .equals(nodeToMatch_7fbm30_a0a.getConcept().getQualifiedName()))) { return false; } { String childRole_7fbm30_ = "condition"; if (!(PatternUtil.hasNChildren(nodeToMatch_7fbm30_a0a, childRole_7fbm30_, 1))) { return false; } { SNode childVar_7fbm30_a0a0 = IterableUtil.get(nodeToMatch_7fbm30_a0a.getChildren(childRole_7fbm30_), 0); { SNode nodeToMatch_7fbm30_a0a0 = childVar_7fbm30_a0a0; { boolean orMatches = false; GeneratedMatchingPattern orPattern; orPattern = new RuleAssertNotNull.Pattern_7fbm30_a0a .Pattern_7fbm30_a0a0a2a1a1a1a1a0a1a1a0a0a0a(); if (orPattern.match(nodeToMatch_7fbm30_a0a0)) { orMatches = true; myOrPattern_7fbm30_a0a0 = orPattern; } orPattern = new RuleAssertNotNull.Pattern_7fbm30_a0a .Pattern_7fbm30_a0a0a3a1a1a1a1a0a1a1a0a0a0a(); if (orPattern.match(nodeToMatch_7fbm30_a0a0)) { orMatches = true; myOrPattern_7fbm30_a0a0 = orPattern; } if (!(orMatches)) { return false; } } } this.patternVar_action_var_5730083271929373007 = childVar_7fbm30_a0a0; } } } return true; }
public IsApplicableStatus isApplicableSecond(SNode node) { { GeneratedMatchingPattern pattern = new Pattern_fub42q55(_quotation_createNode_3k2v7g_a0a0a0a0f()); this.myMatchingPattern2 = pattern; boolean b = pattern.match(node); return new IsApplicableStatus(b, pattern); } }
public IsApplicableStatus isApplicableAndPattern(SNode argument) { { GeneratedMatchingPattern pattern = new supertypesOf_ClassifierTypeSModel_SModelType_SubtypingRule.Pattern_fggx2c_a0a0a0a4(); this.myMatchingPattern = pattern; boolean b = pattern.match(argument); return new IsApplicableStatus(b, pattern); } }
public IsApplicableStatus isApplicableSecond(SNode node) { { GeneratedMatchingPattern pattern = new DebuggerIsDebugger_ComparisonRule.Pattern_wcp5kc_a0a0a0a3(); this.myMatchingPattern2 = pattern; boolean b = pattern.match(node); return new IsApplicableStatus(b, pattern); } }
public IsApplicableStatus isApplicableAndPattern(SNode argument) { { GeneratedMatchingPattern pattern = new supertypesOf_ClassifierType_Collection_SubtypingRule.Pattern_832k9i_a0a0a0a2(); this.myMatchingPattern = pattern; boolean b = pattern.match(argument); return new IsApplicableStatus(b, pattern); } }
public IsApplicableStatus isApplicableSecond(SNode node) { { GeneratedMatchingPattern pattern = new ResourceType_comparableWith_IResource_ComparisonRule.Pattern_v5k8je_a0a0a0a5(); this.myMatchingPattern2 = pattern; boolean b = pattern.match(node); return new IsApplicableStatus(b, pattern); } }
public IsApplicableStatus isApplicableSupertypeAndPattern(SNode node) { { GeneratedMatchingPattern pattern = new nlist_subtypeOf_list_of_nodes_InequationReplacementRule.Pattern_9szvhv_a0a0a0a7(); this.myMatchingPattern2 = pattern; boolean b = pattern.match(node); return new IsApplicableStatus(b, pattern); } }
public IsApplicableStatus isApplicableAndPattern(SNode argument) { { GeneratedMatchingPattern pattern = new sequence_supertypeOf_set_SubtypingRule.Pattern_5z9xz6_a0a0a0a4(); this.myMatchingPattern = pattern; boolean b = pattern.match(argument); return new IsApplicableStatus(b, pattern); } }
public IsApplicableStatus isApplicableAndPattern(SNode argument) { { GeneratedMatchingPattern pattern = new double_unboxing_SubtypingRule.Pattern_jy4zax_a0a0a0a4(); this.myMatchingPattern = pattern; boolean b = pattern.match(argument); return new IsApplicableStatus(b, pattern); } }
public boolean match() { SNode nodeToMatch = _quotation_createNode_xihehy_a0a0c2(); GeneratedMatchingPattern pattern = new PatternProperty_Test.TestBody.Pattern_xihehy_a0a1a2c(); boolean matchNeeded = true; boolean matches = pattern.match(nodeToMatch); if (matchNeeded != matches) { return false; } if (!(matchNeeded)) { return true; } Assert.assertEquals("something", (String) pattern.getFieldValue("patternVar_printed")); return true; }
public boolean isApplicable(SNode node) { return myPattern.match(node); }