/**
 */
package org.gravity.tgg.modisco.uml.Rules.impl;

import java.lang.reflect.InvocationTargetException;

import java.util.LinkedList;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EOperation;

import org.eclipse.modisco.java.ASTNode;
import org.eclipse.modisco.java.ClassInstanceCreation;
import org.eclipse.modisco.java.EnumConstantDeclaration;
import org.eclipse.modisco.java.EnumDeclaration;

import org.eclipse.uml2.uml.Element;
import org.eclipse.uml2.uml.Enumeration;
import org.eclipse.uml2.uml.Type;
import org.eclipse.uml2.uml.UMLFactory;

import org.gravity.modisco.MAnonymousClass;
import org.gravity.modisco.ModiscoFactory;

import org.gravity.tgg.modisco.uml.ASTNode2Element;
import org.gravity.tgg.modisco.uml.JavaPackage2UmlPackage;

import org.gravity.tgg.modisco.uml.Rules.AnonymousClass4EnumConstInPackage;
import org.gravity.tgg.modisco.uml.Rules.RulesPackage;

import org.gravity.tgg.modisco.uml.UmlFactory;

import org.moflon.tgg.language.csp.CSP;

import org.moflon.tgg.language.modelgenerator.RuleEntryContainer;
import org.moflon.tgg.language.modelgenerator.RuleEntryList;

import org.moflon.tgg.runtime.AttributeConstraintsRuleResult;
import org.moflon.tgg.runtime.CCMatch;
import org.moflon.tgg.runtime.EMoflonEdge;
import org.moflon.tgg.runtime.EObjectContainer;
import org.moflon.tgg.runtime.IsApplicableMatch;
import org.moflon.tgg.runtime.IsApplicableRuleResult;
import org.moflon.tgg.runtime.Match;
import org.moflon.tgg.runtime.ModelgeneratorRuleResult;
import org.moflon.tgg.runtime.PerformRuleResult;
import org.moflon.tgg.runtime.RuntimeFactory;
import org.moflon.tgg.runtime.TripleMatch;

import org.moflon.tgg.runtime.impl.AbstractRuleImpl;
// <-- [user defined imports]
import org.moflon.tgg.csp.*;
import org.gravity.tgg.modisco.uml.csp.constraints.*;
import org.moflon.tgg.csp.constraints.*;
import org.moflon.tgg.language.csp.*;
import org.moflon.tgg.runtime.TripleMatchNodeMapping;
import java.util.Optional;
import org.moflon.tgg.algorithm.delta.attribute.CheckAttributeHelper;
import SDMLanguage.expressions.ComparingOperator;
import org.moflon.tgg.runtime.TripleMatchNodeMapping;
import java.util.Optional;
import org.moflon.tgg.algorithm.delta.attribute.CheckAttributeHelper;
import SDMLanguage.expressions.ComparingOperator;
// [user defined imports] -->

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Anonymous Class4 Enum Const In Package</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * </p>
 *
 * @generated
 */
public class AnonymousClass4EnumConstInPackageImpl extends AbstractRuleImpl
		implements AnonymousClass4EnumConstInPackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected AnonymousClass4EnumConstInPackageImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return RulesPackage.eINSTANCE.getAnonymousClass4EnumConstInPackage();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isAppropriate_FWD(Match match, org.eclipse.modisco.java.Package jPackage, MAnonymousClass mAnon,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer) {

		Object[] result1_black = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_0_1_initialbindings_blackBBBBBB(this, match, jPackage, mAnon,
						mMember, jContainer);
		if (result1_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[match] = " + match + ", " + "[jPackage] = " + jPackage + ", " + "[mAnon] = " + mAnon + ", "
					+ "[mMember] = " + mMember + ", " + "[jContainer] = " + jContainer + ".");
		}

		Object[] result2_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_0_2_SolveCSP_bindingAndBlackFBBBBBB(this, match, jPackage,
						mAnon, mMember, jContainer);
		if (result2_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[match] = " + match + ", " + "[jPackage] = " + jPackage + ", " + "[mAnon] = " + mAnon + ", "
					+ "[mMember] = " + mMember + ", " + "[jContainer] = " + jContainer + ".");
		}
		CSP csp = (CSP) result2_bindingAndBlack[0];
		// 
		if (AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_0_3_CheckCSP_expressionFBB(this, csp)) {

			Object[] result4_black = AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_0_4_collectelementstobetranslated_blackBBBBB(match,
							jPackage, mAnon, mMember, jContainer);
			if (result4_black == null) {
				throw new RuntimeException("Pattern matching failed." + " Variables: " + "[match] = " + match + ", "
						+ "[jPackage] = " + jPackage + ", " + "[mAnon] = " + mAnon + ", " + "[mMember] = " + mMember
						+ ", " + "[jContainer] = " + jContainer + ".");
			}
			AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_0_4_collectelementstobetranslated_greenBBBF(match, mAnon,
							mMember);
			//nothing EMoflonEdge mMember__mAnon____anonymousClassDeclaration = (EMoflonEdge) result4_green[3];

			Object[] result5_black = AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_0_5_collectcontextelements_blackBBBBB(match, jPackage,
							mAnon, mMember, jContainer);
			if (result5_black == null) {
				throw new RuntimeException("Pattern matching failed." + " Variables: " + "[match] = " + match + ", "
						+ "[jPackage] = " + jPackage + ", " + "[mAnon] = " + mAnon + ", " + "[mMember] = " + mMember
						+ ", " + "[jContainer] = " + jContainer + ".");
			}
			AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_0_5_collectcontextelements_greenBBBBFFF(match, jPackage,
							mMember, jContainer);
			//nothing EMoflonEdge jContainer__jPackage____package = (EMoflonEdge) result5_green[4];
			//nothing EMoflonEdge jPackage__jContainer____ownedElements = (EMoflonEdge) result5_green[5];
			//nothing EMoflonEdge jContainer__mMember____enumConstants = (EMoflonEdge) result5_green[6];

			// 
			AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_0_6_registerobjectstomatch_expressionBBBBBB(this, match,
							jPackage, mAnon, mMember, jContainer);
			return AnonymousClass4EnumConstInPackageImpl.pattern_AnonymousClass4EnumConstInPackage_0_7_expressionF();
		} else {
			return AnonymousClass4EnumConstInPackageImpl.pattern_AnonymousClass4EnumConstInPackage_0_8_expressionF();
		}

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public PerformRuleResult perform_FWD(IsApplicableMatch isApplicableMatch) {

		Object[] result1_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_bindingAndBlackFFFFFFFFFBB(this,
						isApplicableMatch);
		if (result1_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[isApplicableMatch] = " + isApplicableMatch + ".");
		}
		org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) result1_bindingAndBlack[0];
		org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) result1_bindingAndBlack[1];
		MAnonymousClass mAnon = (MAnonymousClass) result1_bindingAndBlack[2];
		Enumeration uContainer = (Enumeration) result1_bindingAndBlack[3];
		EnumConstantDeclaration mMember = (EnumConstantDeclaration) result1_bindingAndBlack[4];
		EnumDeclaration jContainer = (EnumDeclaration) result1_bindingAndBlack[5];
		ASTNode2Element ne2ne = (ASTNode2Element) result1_bindingAndBlack[6];
		JavaPackage2UmlPackage p2p = (JavaPackage2UmlPackage) result1_bindingAndBlack[7];
		CSP csp = (CSP) result1_bindingAndBlack[8];
		Object[] result1_green = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_greenFFBBB(uPackage, mAnon, csp);
		ASTNode2Element a2a = (ASTNode2Element) result1_green[0];
		org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) result1_green[1];

		Object[] result2_black = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_1_2_collecttranslatedelements_blackBBB(a2a, feature, mAnon);
		if (result2_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[a2a] = " + a2a + ", "
					+ "[feature] = " + feature + ", " + "[mAnon] = " + mAnon + ".");
		}
		Object[] result2_green = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_1_2_collecttranslatedelements_greenFBBB(a2a, feature, mAnon);
		PerformRuleResult ruleresult = (PerformRuleResult) result2_green[0];

		Object[] result3_black = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_1_3_bookkeepingforedges_blackBBBBBBBBBBB(ruleresult, a2a,
						feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ne2ne, p2p);
		if (result3_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[ruleresult] = " + ruleresult
					+ ", " + "[a2a] = " + a2a + ", " + "[feature] = " + feature + ", " + "[jPackage] = " + jPackage
					+ ", " + "[uPackage] = " + uPackage + ", " + "[mAnon] = " + mAnon + ", " + "[uContainer] = "
					+ uContainer + ", " + "[mMember] = " + mMember + ", " + "[jContainer] = " + jContainer + ", "
					+ "[ne2ne] = " + ne2ne + ", " + "[p2p] = " + p2p + ".");
		}
		AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_1_3_bookkeepingforedges_greenBBBBBBFFFFF(ruleresult, a2a,
						feature, uPackage, mAnon, mMember);
		//nothing EMoflonEdge a2a__feature____target = (EMoflonEdge) result3_green[6];
		//nothing EMoflonEdge feature__uPackage____package = (EMoflonEdge) result3_green[7];
		//nothing EMoflonEdge uPackage__feature____ownedType = (EMoflonEdge) result3_green[8];
		//nothing EMoflonEdge mMember__mAnon____anonymousClassDeclaration = (EMoflonEdge) result3_green[9];
		//nothing EMoflonEdge a2a__mAnon____source = (EMoflonEdge) result3_green[10];

		// 
		// 
		AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_1_5_registerobjects_expressionBBBBBBBBBBBB(this, ruleresult,
						a2a, feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ne2ne, p2p);
		return AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_1_6_expressionFB(ruleresult);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public IsApplicableRuleResult isApplicable_FWD(Match match) {

		Object[] result1_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_bindingAndBlackFFB(this);
		if (result1_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ".");
		}
		EOperation performOperation = (EOperation) result1_bindingAndBlack[0];
		//nothing EClass eClass = (EClass) result1_bindingAndBlack[1];
		Object[] result1_green = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_greenBF(performOperation);
		IsApplicableRuleResult ruleresult = (IsApplicableRuleResult) result1_green[1];

		// ForEach 
		Object[] result2_binding = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_2_2_corematch_bindingFFFFB(match);
		if (result2_binding == null) {
			throw new RuntimeException(
					"Binding in node core match failed." + " Variables: " + "[match] = " + match + ".");
		}
		org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) result2_binding[0];
		MAnonymousClass mAnon = (MAnonymousClass) result2_binding[1];
		EnumConstantDeclaration mMember = (EnumConstantDeclaration) result2_binding[2];
		EnumDeclaration jContainer = (EnumDeclaration) result2_binding[3];
		for (Object[] result2_black : AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_2_2_corematch_blackBFBFBBFFB(jPackage, mAnon, mMember,
						jContainer, match)) {
			org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) result2_black[1];
			Enumeration uContainer = (Enumeration) result2_black[3];
			ASTNode2Element ne2ne = (ASTNode2Element) result2_black[6];
			JavaPackage2UmlPackage p2p = (JavaPackage2UmlPackage) result2_black[7];
			// ForEach 
			for (Object[] result3_black : AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_2_3_findcontext_blackBBBBBBBB(jPackage, uPackage, mAnon,
							uContainer, mMember, jContainer, ne2ne, p2p)) {
				Object[] result3_green = AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_2_3_findcontext_greenBBBBBBBBFFFFFFFFFFF(jPackage,
								uPackage, mAnon, uContainer, mMember, jContainer, ne2ne, p2p);
				IsApplicableMatch isApplicableMatch = (IsApplicableMatch) result3_green[8];
				//nothing EMoflonEdge p2p__jPackage____source = (EMoflonEdge) result3_green[9];
				//nothing EMoflonEdge ne2ne__jContainer____source = (EMoflonEdge) result3_green[10];
				//nothing EMoflonEdge p2p__uPackage____target = (EMoflonEdge) result3_green[11];
				//nothing EMoflonEdge uContainer__uPackage____package = (EMoflonEdge) result3_green[12];
				//nothing EMoflonEdge uPackage__uContainer____ownedType = (EMoflonEdge) result3_green[13];
				//nothing EMoflonEdge jContainer__jPackage____package = (EMoflonEdge) result3_green[14];
				//nothing EMoflonEdge jPackage__jContainer____ownedElements = (EMoflonEdge) result3_green[15];
				//nothing EMoflonEdge mMember__mAnon____anonymousClassDeclaration = (EMoflonEdge) result3_green[16];
				//nothing EMoflonEdge jContainer__mMember____enumConstants = (EMoflonEdge) result3_green[17];
				//nothing EMoflonEdge ne2ne__uContainer____target = (EMoflonEdge) result3_green[18];

				Object[] result4_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_2_4_solveCSP_bindingAndBlackFBBBBBBBBBB(this,
								isApplicableMatch, jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ne2ne,
								p2p);
				if (result4_bindingAndBlack == null) {
					throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
							+ "[isApplicableMatch] = " + isApplicableMatch + ", " + "[jPackage] = " + jPackage + ", "
							+ "[uPackage] = " + uPackage + ", " + "[mAnon] = " + mAnon + ", " + "[uContainer] = "
							+ uContainer + ", " + "[mMember] = " + mMember + ", " + "[jContainer] = " + jContainer
							+ ", " + "[ne2ne] = " + ne2ne + ", " + "[p2p] = " + p2p + ".");
				}
				CSP csp = (CSP) result4_bindingAndBlack[0];
				// 
				if (AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_2_5_checkCSP_expressionFBB(this, csp)) {

					Object[] result6_black = AnonymousClass4EnumConstInPackageImpl
							.pattern_AnonymousClass4EnumConstInPackage_2_6_addmatchtoruleresult_blackBB(ruleresult,
									isApplicableMatch);
					if (result6_black == null) {
						throw new RuntimeException("Pattern matching failed." + " Variables: " + "[ruleresult] = "
								+ ruleresult + ", " + "[isApplicableMatch] = " + isApplicableMatch + ".");
					}
					AnonymousClass4EnumConstInPackageImpl
							.pattern_AnonymousClass4EnumConstInPackage_2_6_addmatchtoruleresult_greenBB(ruleresult,
									isApplicableMatch);

				} else {
				}

			}

		}
		return AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_2_7_expressionFB(ruleresult);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void registerObjectsToMatch_FWD(Match match, org.eclipse.modisco.java.Package jPackage,
			MAnonymousClass mAnon, EnumConstantDeclaration mMember, EnumDeclaration jContainer) {
		match.registerObject("jPackage", jPackage);
		match.registerObject("mAnon", mAnon);
		match.registerObject("mMember", mMember);
		match.registerObject("jContainer", jContainer);

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CSP isAppropriate_solveCsp_FWD(Match match, org.eclipse.modisco.java.Package jPackage, MAnonymousClass mAnon,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer) {// Create CSP
		CSP csp = CspFactory.eINSTANCE.createCSP();

		// Create literals

		// Create attribute variables

		// Create unbound variables

		// Create constraints

		// Solve CSP
		return csp;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isAppropriate_checkCsp_FWD(CSP csp) {
		return csp.check();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CSP isApplicable_solveCsp_FWD(IsApplicableMatch isApplicableMatch, org.eclipse.modisco.java.Package jPackage,
			org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon, Enumeration uContainer,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p) {// Create CSP
		CSP csp = CspFactory.eINSTANCE.createCSP();
		isApplicableMatch.getAttributeInfo().add(csp);

		// Create literals
		Variable literal0 = CSPFactoryHelper.eINSTANCE.createVariable("literal0", true, csp);
		literal0.setValue("Anonymous");
		literal0.setType("");

		// Create attribute variables
		Variable var_uContainer_name = CSPFactoryHelper.eINSTANCE.createVariable("uContainer.name", true, csp);
		var_uContainer_name.setValue(uContainer.getName());
		var_uContainer_name.setType("String");

		// Create unbound variables
		Variable var_feature_name = CSPFactoryHelper.eINSTANCE.createVariable("feature.name", csp);
		var_feature_name.setType("String");

		// Create constraints
		AddPrefix addPrefix = new AddPrefix();

		csp.getConstraints().add(addPrefix);

		// Solve CSP
		addPrefix.setRuleName("NoRuleName");
		addPrefix.solve(var_uContainer_name, literal0, var_feature_name);

		// Snapshot pattern match on which CSP is solved
		isApplicableMatch.registerObject("jPackage", jPackage);
		isApplicableMatch.registerObject("uPackage", uPackage);
		isApplicableMatch.registerObject("mAnon", mAnon);
		isApplicableMatch.registerObject("uContainer", uContainer);
		isApplicableMatch.registerObject("mMember", mMember);
		isApplicableMatch.registerObject("jContainer", jContainer);
		isApplicableMatch.registerObject("ne2ne", ne2ne);
		isApplicableMatch.registerObject("p2p", p2p);
		return csp;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isApplicable_checkCsp_FWD(CSP csp) {
		return csp.check();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void registerObjects_FWD(PerformRuleResult ruleresult, EObject a2a, EObject feature, EObject jPackage,
			EObject uPackage, EObject mAnon, EObject uContainer, EObject mMember, EObject jContainer, EObject ne2ne,
			EObject p2p) {
		ruleresult.registerObject("a2a", a2a);
		ruleresult.registerObject("feature", feature);
		ruleresult.registerObject("jPackage", jPackage);
		ruleresult.registerObject("uPackage", uPackage);
		ruleresult.registerObject("mAnon", mAnon);
		ruleresult.registerObject("uContainer", uContainer);
		ruleresult.registerObject("mMember", mMember);
		ruleresult.registerObject("jContainer", jContainer);
		ruleresult.registerObject("ne2ne", ne2ne);
		ruleresult.registerObject("p2p", p2p);

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean checkTypes_FWD(Match match) {
		return true && org.moflon.util.eMoflonSDMUtil.getFQN(match.getObject("mAnon").eClass())
				.equals("modisco.MAnonymousClass.");
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isAppropriate_BWD(Match match, org.eclipse.uml2.uml.Class feature,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer) {

		Object[] result1_black = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_10_1_initialbindings_blackBBBBB(this, match, feature,
						uPackage, uContainer);
		if (result1_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[match] = " + match + ", " + "[feature] = " + feature + ", " + "[uPackage] = " + uPackage + ", "
					+ "[uContainer] = " + uContainer + ".");
		}

		Object[] result2_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_10_2_SolveCSP_bindingAndBlackFBBBBB(this, match, feature,
						uPackage, uContainer);
		if (result2_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[match] = " + match + ", " + "[feature] = " + feature + ", " + "[uPackage] = " + uPackage + ", "
					+ "[uContainer] = " + uContainer + ".");
		}
		CSP csp = (CSP) result2_bindingAndBlack[0];
		// 
		if (AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_10_3_CheckCSP_expressionFBB(this, csp)) {

			Object[] result4_black = AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_10_4_collectelementstobetranslated_blackBBBB(match,
							feature, uPackage, uContainer);
			if (result4_black == null) {
				throw new RuntimeException("Pattern matching failed." + " Variables: " + "[match] = " + match + ", "
						+ "[feature] = " + feature + ", " + "[uPackage] = " + uPackage + ", " + "[uContainer] = "
						+ uContainer + ".");
			}
			AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_10_4_collectelementstobetranslated_greenBBBFF(match,
							feature, uPackage);
			//nothing EMoflonEdge feature__uPackage____package = (EMoflonEdge) result4_green[3];
			//nothing EMoflonEdge uPackage__feature____ownedType = (EMoflonEdge) result4_green[4];

			Object[] result5_black = AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_10_5_collectcontextelements_blackBBBB(match, feature,
							uPackage, uContainer);
			if (result5_black == null) {
				throw new RuntimeException("Pattern matching failed." + " Variables: " + "[match] = " + match + ", "
						+ "[feature] = " + feature + ", " + "[uPackage] = " + uPackage + ", " + "[uContainer] = "
						+ uContainer + ".");
			}
			AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_10_5_collectcontextelements_greenBBBFF(match, uPackage,
							uContainer);
			//nothing EMoflonEdge uContainer__uPackage____package = (EMoflonEdge) result5_green[3];
			//nothing EMoflonEdge uPackage__uContainer____ownedType = (EMoflonEdge) result5_green[4];

			// 
			AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_10_6_registerobjectstomatch_expressionBBBBB(this, match,
							feature, uPackage, uContainer);
			return AnonymousClass4EnumConstInPackageImpl.pattern_AnonymousClass4EnumConstInPackage_10_7_expressionF();
		} else {
			return AnonymousClass4EnumConstInPackageImpl.pattern_AnonymousClass4EnumConstInPackage_10_8_expressionF();
		}

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public PerformRuleResult perform_BWD(IsApplicableMatch isApplicableMatch) {

		Object[] result1_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_bindingAndBlackFFFFFFFFFBB(this,
						isApplicableMatch);
		if (result1_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[isApplicableMatch] = " + isApplicableMatch + ".");
		}
		org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) result1_bindingAndBlack[0];
		org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) result1_bindingAndBlack[1];
		org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) result1_bindingAndBlack[2];
		Enumeration uContainer = (Enumeration) result1_bindingAndBlack[3];
		EnumConstantDeclaration mMember = (EnumConstantDeclaration) result1_bindingAndBlack[4];
		EnumDeclaration jContainer = (EnumDeclaration) result1_bindingAndBlack[5];
		ASTNode2Element ne2ne = (ASTNode2Element) result1_bindingAndBlack[6];
		JavaPackage2UmlPackage p2p = (JavaPackage2UmlPackage) result1_bindingAndBlack[7];
		//nothing CSP csp = (CSP) result1_bindingAndBlack[8];
		Object[] result1_green = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_greenFBFB(feature, mMember);
		ASTNode2Element a2a = (ASTNode2Element) result1_green[0];
		MAnonymousClass mAnon = (MAnonymousClass) result1_green[2];

		Object[] result2_black = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_11_2_collecttranslatedelements_blackBBB(a2a, feature, mAnon);
		if (result2_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[a2a] = " + a2a + ", "
					+ "[feature] = " + feature + ", " + "[mAnon] = " + mAnon + ".");
		}
		Object[] result2_green = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_11_2_collecttranslatedelements_greenFBBB(a2a, feature,
						mAnon);
		PerformRuleResult ruleresult = (PerformRuleResult) result2_green[0];

		Object[] result3_black = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_11_3_bookkeepingforedges_blackBBBBBBBBBBB(ruleresult, a2a,
						feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ne2ne, p2p);
		if (result3_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[ruleresult] = " + ruleresult
					+ ", " + "[a2a] = " + a2a + ", " + "[feature] = " + feature + ", " + "[jPackage] = " + jPackage
					+ ", " + "[uPackage] = " + uPackage + ", " + "[mAnon] = " + mAnon + ", " + "[uContainer] = "
					+ uContainer + ", " + "[mMember] = " + mMember + ", " + "[jContainer] = " + jContainer + ", "
					+ "[ne2ne] = " + ne2ne + ", " + "[p2p] = " + p2p + ".");
		}
		AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_11_3_bookkeepingforedges_greenBBBBBBFFFFF(ruleresult, a2a,
						feature, uPackage, mAnon, mMember);
		//nothing EMoflonEdge a2a__feature____target = (EMoflonEdge) result3_green[6];
		//nothing EMoflonEdge feature__uPackage____package = (EMoflonEdge) result3_green[7];
		//nothing EMoflonEdge uPackage__feature____ownedType = (EMoflonEdge) result3_green[8];
		//nothing EMoflonEdge mMember__mAnon____anonymousClassDeclaration = (EMoflonEdge) result3_green[9];
		//nothing EMoflonEdge a2a__mAnon____source = (EMoflonEdge) result3_green[10];

		// 
		// 
		AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_11_5_registerobjects_expressionBBBBBBBBBBBB(this, ruleresult,
						a2a, feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ne2ne, p2p);
		return AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_11_6_expressionFB(ruleresult);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public IsApplicableRuleResult isApplicable_BWD(Match match) {

		Object[] result1_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_bindingAndBlackFFB(this);
		if (result1_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ".");
		}
		EOperation performOperation = (EOperation) result1_bindingAndBlack[0];
		//nothing EClass eClass = (EClass) result1_bindingAndBlack[1];
		Object[] result1_green = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_greenBF(performOperation);
		IsApplicableRuleResult ruleresult = (IsApplicableRuleResult) result1_green[1];

		// ForEach 
		Object[] result2_binding = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_12_2_corematch_bindingFFFB(match);
		if (result2_binding == null) {
			throw new RuntimeException(
					"Binding in node core match failed." + " Variables: " + "[match] = " + match + ".");
		}
		org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) result2_binding[0];
		org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) result2_binding[1];
		Enumeration uContainer = (Enumeration) result2_binding[2];
		for (Object[] result2_black : AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_12_2_corematch_blackBFBBFFFB(feature, uPackage, uContainer,
						match)) {
			org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) result2_black[1];
			EnumDeclaration jContainer = (EnumDeclaration) result2_black[4];
			ASTNode2Element ne2ne = (ASTNode2Element) result2_black[5];
			JavaPackage2UmlPackage p2p = (JavaPackage2UmlPackage) result2_black[6];
			// ForEach 
			for (Object[] result3_black : AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_12_3_findcontext_blackBBBBFBBB(feature, jPackage,
							uPackage, uContainer, jContainer, ne2ne, p2p)) {
				EnumConstantDeclaration mMember = (EnumConstantDeclaration) result3_black[4];
				Object[] result3_green = AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_12_3_findcontext_greenBBBBBBBBFFFFFFFFFFFF(feature,
								jPackage, uPackage, uContainer, mMember, jContainer, ne2ne, p2p);
				IsApplicableMatch isApplicableMatch = (IsApplicableMatch) result3_green[8];
				//nothing EMoflonEdge p2p__jPackage____source = (EMoflonEdge) result3_green[9];
				//nothing EMoflonEdge ne2ne__jContainer____source = (EMoflonEdge) result3_green[10];
				//nothing EMoflonEdge p2p__uPackage____target = (EMoflonEdge) result3_green[11];
				//nothing EMoflonEdge feature__uPackage____package = (EMoflonEdge) result3_green[12];
				//nothing EMoflonEdge uPackage__feature____ownedType = (EMoflonEdge) result3_green[13];
				//nothing EMoflonEdge uContainer__uPackage____package = (EMoflonEdge) result3_green[14];
				//nothing EMoflonEdge uPackage__uContainer____ownedType = (EMoflonEdge) result3_green[15];
				//nothing EMoflonEdge jContainer__jPackage____package = (EMoflonEdge) result3_green[16];
				//nothing EMoflonEdge jPackage__jContainer____ownedElements = (EMoflonEdge) result3_green[17];
				//nothing EMoflonEdge jContainer__mMember____enumConstants = (EMoflonEdge) result3_green[18];
				//nothing EMoflonEdge ne2ne__uContainer____target = (EMoflonEdge) result3_green[19];

				Object[] result4_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_12_4_solveCSP_bindingAndBlackFBBBBBBBBBB(this,
								isApplicableMatch, feature, jPackage, uPackage, uContainer, mMember, jContainer, ne2ne,
								p2p);
				if (result4_bindingAndBlack == null) {
					throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
							+ "[isApplicableMatch] = " + isApplicableMatch + ", " + "[feature] = " + feature + ", "
							+ "[jPackage] = " + jPackage + ", " + "[uPackage] = " + uPackage + ", " + "[uContainer] = "
							+ uContainer + ", " + "[mMember] = " + mMember + ", " + "[jContainer] = " + jContainer
							+ ", " + "[ne2ne] = " + ne2ne + ", " + "[p2p] = " + p2p + ".");
				}
				CSP csp = (CSP) result4_bindingAndBlack[0];
				// 
				if (AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_12_5_checkCSP_expressionFBB(this, csp)) {

					Object[] result6_black = AnonymousClass4EnumConstInPackageImpl
							.pattern_AnonymousClass4EnumConstInPackage_12_6_addmatchtoruleresult_blackBB(ruleresult,
									isApplicableMatch);
					if (result6_black == null) {
						throw new RuntimeException("Pattern matching failed." + " Variables: " + "[ruleresult] = "
								+ ruleresult + ", " + "[isApplicableMatch] = " + isApplicableMatch + ".");
					}
					AnonymousClass4EnumConstInPackageImpl
							.pattern_AnonymousClass4EnumConstInPackage_12_6_addmatchtoruleresult_greenBB(ruleresult,
									isApplicableMatch);

				} else {
				}

			}

		}
		return AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_12_7_expressionFB(ruleresult);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void registerObjectsToMatch_BWD(Match match, org.eclipse.uml2.uml.Class feature,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer) {
		match.registerObject("feature", feature);
		match.registerObject("uPackage", uPackage);
		match.registerObject("uContainer", uContainer);

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CSP isAppropriate_solveCsp_BWD(Match match, org.eclipse.uml2.uml.Class feature,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer) {// Create CSP
		CSP csp = CspFactory.eINSTANCE.createCSP();

		// Create literals
		Variable literal0 = CSPFactoryHelper.eINSTANCE.createVariable("literal0", true, csp);
		literal0.setValue("Anonymous");
		literal0.setType("");

		// Create attribute variables
		Variable var_uContainer_name = CSPFactoryHelper.eINSTANCE.createVariable("uContainer.name", true, csp);
		var_uContainer_name.setValue(uContainer.getName());
		var_uContainer_name.setType("String");
		Variable var_feature_name = CSPFactoryHelper.eINSTANCE.createVariable("feature.name", true, csp);
		var_feature_name.setValue(feature.getName());
		var_feature_name.setType("String");

		// Create unbound variables

		// Create constraints
		AddPrefix addPrefix = new AddPrefix();

		csp.getConstraints().add(addPrefix);

		// Solve CSP
		addPrefix.setRuleName("NoRuleName");
		addPrefix.solve(var_uContainer_name, literal0, var_feature_name);
		return csp;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isAppropriate_checkCsp_BWD(CSP csp) {
		return csp.check();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CSP isApplicable_solveCsp_BWD(IsApplicableMatch isApplicableMatch, org.eclipse.uml2.uml.Class feature,
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p) {// Create CSP
		CSP csp = CspFactory.eINSTANCE.createCSP();
		isApplicableMatch.getAttributeInfo().add(csp);

		// Create literals

		// Create attribute variables

		// Create unbound variables

		// Create constraints

		// Solve CSP

		// Snapshot pattern match on which CSP is solved
		isApplicableMatch.registerObject("feature", feature);
		isApplicableMatch.registerObject("jPackage", jPackage);
		isApplicableMatch.registerObject("uPackage", uPackage);
		isApplicableMatch.registerObject("uContainer", uContainer);
		isApplicableMatch.registerObject("mMember", mMember);
		isApplicableMatch.registerObject("jContainer", jContainer);
		isApplicableMatch.registerObject("ne2ne", ne2ne);
		isApplicableMatch.registerObject("p2p", p2p);
		return csp;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isApplicable_checkCsp_BWD(CSP csp) {
		return csp.check();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void registerObjects_BWD(PerformRuleResult ruleresult, EObject a2a, EObject feature, EObject jPackage,
			EObject uPackage, EObject mAnon, EObject uContainer, EObject mMember, EObject jContainer, EObject ne2ne,
			EObject p2p) {
		ruleresult.registerObject("a2a", a2a);
		ruleresult.registerObject("feature", feature);
		ruleresult.registerObject("jPackage", jPackage);
		ruleresult.registerObject("uPackage", uPackage);
		ruleresult.registerObject("mAnon", mAnon);
		ruleresult.registerObject("uContainer", uContainer);
		ruleresult.registerObject("mMember", mMember);
		ruleresult.registerObject("jContainer", jContainer);
		ruleresult.registerObject("ne2ne", ne2ne);
		ruleresult.registerObject("p2p", p2p);

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean checkTypes_BWD(Match match) {
		return true && org.moflon.util.eMoflonSDMUtil.getFQN(match.getObject("feature").eClass()).equals("uml.Class.");
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EObjectContainer isAppropriate_BWD_EMoflonEdge_1060(EMoflonEdge _edge_package) {

		Object[] result1_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_bindingAndBlackFFBF(this);
		if (result1_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ".");
		}
		EOperation __performOperation = (EOperation) result1_bindingAndBlack[0];
		EClass __eClass = (EClass) result1_bindingAndBlack[1];
		EOperation isApplicableCC = (EOperation) result1_bindingAndBlack[3];
		Object[] result1_green = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_greenF();
		EObjectContainer __result = (EObjectContainer) result1_green[0];

		// ForEach 
		for (Object[] result2_black : AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_20_2_testcorematchandDECs_blackFFFB(_edge_package)) {
			org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) result2_black[0];
			org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) result2_black[1];
			Enumeration uContainer = (Enumeration) result2_black[2];
			Object[] result2_green = AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_20_2_testcorematchandDECs_greenFB(__eClass);
			Match match = (Match) result2_green[0];

			// 
			if (AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_20_3_bookkeepingwithgenericisAppropriatemethod_expressionFBBBBB(
							this, match, feature, uPackage, uContainer)) {
				// 
				if (AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_20_4_Ensurethatthecorrecttypesofelementsarematched_expressionFBB(
								this, match)) {

					Object[] result5_black = AnonymousClass4EnumConstInPackageImpl
							.pattern_AnonymousClass4EnumConstInPackage_20_5_Addmatchtoruleresult_blackBBBB(match,
									__performOperation, __result, isApplicableCC);
					if (result5_black == null) {
						throw new RuntimeException("Pattern matching failed." + " Variables: " + "[match] = " + match
								+ ", " + "[__performOperation] = " + __performOperation + ", " + "[__result] = "
								+ __result + ", " + "[isApplicableCC] = " + isApplicableCC + ".");
					}
					AnonymousClass4EnumConstInPackageImpl
							.pattern_AnonymousClass4EnumConstInPackage_20_5_Addmatchtoruleresult_greenBBBB(match,
									__performOperation, __result, isApplicableCC);

				} else {
				}

			} else {
			}

		}
		return AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_20_6_expressionFB(__result);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EObjectContainer isAppropriate_FWD_EMoflonEdge_1165(EMoflonEdge _edge_anonymousClassDeclaration) {

		Object[] result1_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_bindingAndBlackFFBF(this);
		if (result1_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ".");
		}
		EOperation __performOperation = (EOperation) result1_bindingAndBlack[0];
		EClass __eClass = (EClass) result1_bindingAndBlack[1];
		EOperation isApplicableCC = (EOperation) result1_bindingAndBlack[3];
		Object[] result1_green = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_greenF();
		EObjectContainer __result = (EObjectContainer) result1_green[0];

		// ForEach 
		for (Object[] result2_black : AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_21_2_testcorematchandDECs_blackFFFFB(
						_edge_anonymousClassDeclaration)) {
			org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) result2_black[0];
			MAnonymousClass mAnon = (MAnonymousClass) result2_black[1];
			EnumConstantDeclaration mMember = (EnumConstantDeclaration) result2_black[2];
			EnumDeclaration jContainer = (EnumDeclaration) result2_black[3];
			Object[] result2_green = AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_21_2_testcorematchandDECs_greenFB(__eClass);
			Match match = (Match) result2_green[0];

			// 
			if (AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_21_3_bookkeepingwithgenericisAppropriatemethod_expressionFBBBBBB(
							this, match, jPackage, mAnon, mMember, jContainer)) {
				// 
				if (AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_21_4_Ensurethatthecorrecttypesofelementsarematched_expressionFBB(
								this, match)) {

					Object[] result5_black = AnonymousClass4EnumConstInPackageImpl
							.pattern_AnonymousClass4EnumConstInPackage_21_5_Addmatchtoruleresult_blackBBBB(match,
									__performOperation, __result, isApplicableCC);
					if (result5_black == null) {
						throw new RuntimeException("Pattern matching failed." + " Variables: " + "[match] = " + match
								+ ", " + "[__performOperation] = " + __performOperation + ", " + "[__result] = "
								+ __result + ", " + "[isApplicableCC] = " + isApplicableCC + ".");
					}
					AnonymousClass4EnumConstInPackageImpl
							.pattern_AnonymousClass4EnumConstInPackage_21_5_Addmatchtoruleresult_greenBBBB(match,
									__performOperation, __result, isApplicableCC);

				} else {
				}

			} else {
			}

		}
		return AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_21_6_expressionFB(__result);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public AttributeConstraintsRuleResult checkAttributes_FWD(TripleMatch __tripleMatch) {
		AttributeConstraintsRuleResult ruleResult = org.moflon.tgg.runtime.RuntimeFactory.eINSTANCE
				.createAttributeConstraintsRuleResult();
		ruleResult.setRule("AnonymousClass4EnumConstInPackage");
		ruleResult.setSuccess(true);

		CSP csp = CspFactory.eINSTANCE.createCSP();

		CheckAttributeHelper __helper = new CheckAttributeHelper(__tripleMatch);

		Variable var_uContainer_name = CSPFactoryHelper.eINSTANCE.createVariable("uContainer", true, csp);
		var_uContainer_name.setValue(__helper.getValue("uContainer", "name"));
		var_uContainer_name.setType("String");

		Variable var_literal0 = CSPFactoryHelper.eINSTANCE.createVariable("literal", true, csp);
		var_literal0.setValue("Anonymous");
		var_literal0.setType("");

		Variable var_feature_name = CSPFactoryHelper.eINSTANCE.createVariable("feature", true, csp);
		var_feature_name.setValue(__helper.getValue("feature", "name"));
		var_feature_name.setType("String");

		AddPrefix addPrefix0 = new AddPrefix();
		csp.getConstraints().add(addPrefix0);

		addPrefix0.setRuleName("AnonymousClass4EnumConstInPackage");
		addPrefix0.solve(var_uContainer_name, var_literal0, var_feature_name);

		if (csp.check()) {
			ruleResult.setSuccess(true);
		} else {
			var_feature_name.setBound(false);
			addPrefix0.solve(var_uContainer_name, var_literal0, var_feature_name);
			if (csp.check()) {
				ruleResult.setSuccess(true);
				ruleResult.setRequiredChange(true);
				__helper.setValue("feature", "name", var_feature_name.getValue());
			} else {
				ruleResult.setSuccess(false);
				return ruleResult;
			}
		}

		return ruleResult;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public AttributeConstraintsRuleResult checkAttributes_BWD(TripleMatch __tripleMatch) {
		AttributeConstraintsRuleResult ruleResult = org.moflon.tgg.runtime.RuntimeFactory.eINSTANCE
				.createAttributeConstraintsRuleResult();
		ruleResult.setRule("AnonymousClass4EnumConstInPackage");
		ruleResult.setSuccess(true);

		CSP csp = CspFactory.eINSTANCE.createCSP();

		CheckAttributeHelper __helper = new CheckAttributeHelper(__tripleMatch);

		Variable var_uContainer_name = CSPFactoryHelper.eINSTANCE.createVariable("uContainer", true, csp);
		var_uContainer_name.setValue(__helper.getValue("uContainer", "name"));
		var_uContainer_name.setType("String");

		Variable var_literal0 = CSPFactoryHelper.eINSTANCE.createVariable("literal", true, csp);
		var_literal0.setValue("Anonymous");
		var_literal0.setType("");

		Variable var_feature_name = CSPFactoryHelper.eINSTANCE.createVariable("feature", true, csp);
		var_feature_name.setValue(__helper.getValue("feature", "name"));
		var_feature_name.setType("String");

		AddPrefix addPrefix0 = new AddPrefix();
		csp.getConstraints().add(addPrefix0);

		addPrefix0.setRuleName("AnonymousClass4EnumConstInPackage");
		addPrefix0.solve(var_uContainer_name, var_literal0, var_feature_name);

		if (csp.check()) {
			ruleResult.setSuccess(true);
		} else {
			addPrefix0.solve(var_uContainer_name, var_literal0, var_feature_name);
			if (csp.check()) {
				ruleResult.setSuccess(true);
				ruleResult.setRequiredChange(true);
			} else {
				ruleResult.setSuccess(false);
				return ruleResult;
			}
		}

		return ruleResult;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public IsApplicableRuleResult isApplicable_CC(Match sourceMatch, Match targetMatch) {

		Object[] result1_black = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_24_1_prepare_blackB(this);
		if (result1_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ".");
		}
		Object[] result1_green = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_24_1_prepare_greenF();
		IsApplicableRuleResult result = (IsApplicableRuleResult) result1_green[0];

		Object[] result2_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_bindingAndBlackFFFFFFFBB(sourceMatch,
						targetMatch);
		if (result2_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[sourceMatch] = " + sourceMatch
					+ ", " + "[targetMatch] = " + targetMatch + ".");
		}
		org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) result2_bindingAndBlack[0];
		org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) result2_bindingAndBlack[1];
		org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) result2_bindingAndBlack[2];
		MAnonymousClass mAnon = (MAnonymousClass) result2_bindingAndBlack[3];
		Enumeration uContainer = (Enumeration) result2_bindingAndBlack[4];
		EnumConstantDeclaration mMember = (EnumConstantDeclaration) result2_bindingAndBlack[5];
		EnumDeclaration jContainer = (EnumDeclaration) result2_bindingAndBlack[6];

		Object[] result3_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_24_3_solvecsp_bindingAndBlackFBBBBBBBBBB(this, feature,
						jPackage, uPackage, mAnon, uContainer, mMember, jContainer, sourceMatch, targetMatch);
		if (result3_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[feature] = " + feature + ", " + "[jPackage] = " + jPackage + ", " + "[uPackage] = " + uPackage
					+ ", " + "[mAnon] = " + mAnon + ", " + "[uContainer] = " + uContainer + ", " + "[mMember] = "
					+ mMember + ", " + "[jContainer] = " + jContainer + ", " + "[sourceMatch] = " + sourceMatch + ", "
					+ "[targetMatch] = " + targetMatch + ".");
		}
		CSP csp = (CSP) result3_bindingAndBlack[0];
		// 
		if (AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_24_4_checkCSP_expressionFB(csp)) {
			// ForEach 
			for (Object[] result5_black : AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_24_5_matchcorrcontext_blackBBBBFFBB(jPackage, uPackage,
							uContainer, jContainer, sourceMatch, targetMatch)) {
				ASTNode2Element ne2ne = (ASTNode2Element) result5_black[4];
				JavaPackage2UmlPackage p2p = (JavaPackage2UmlPackage) result5_black[5];
				Object[] result5_green = AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_24_5_matchcorrcontext_greenBBBBF(ne2ne, p2p,
								sourceMatch, targetMatch);
				CCMatch ccMatch = (CCMatch) result5_green[4];

				Object[] result6_black = AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_24_6_createcorrespondence_blackBBBBBBBB(feature,
								jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ccMatch);
				if (result6_black == null) {
					throw new RuntimeException("Pattern matching failed." + " Variables: " + "[feature] = " + feature
							+ ", " + "[jPackage] = " + jPackage + ", " + "[uPackage] = " + uPackage + ", "
							+ "[mAnon] = " + mAnon + ", " + "[uContainer] = " + uContainer + ", " + "[mMember] = "
							+ mMember + ", " + "[jContainer] = " + jContainer + ", " + "[ccMatch] = " + ccMatch + ".");
				}
				AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_24_6_createcorrespondence_greenFBBB(feature, mAnon,
								ccMatch);
				//nothing ASTNode2Element a2a = (ASTNode2Element) result6_green[0];

				Object[] result7_black = AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_24_7_addtoreturnedresult_blackBB(result, ccMatch);
				if (result7_black == null) {
					throw new RuntimeException("Pattern matching failed." + " Variables: " + "[result] = " + result
							+ ", " + "[ccMatch] = " + ccMatch + ".");
				}
				AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_24_7_addtoreturnedresult_greenBB(result, ccMatch);

			}

		} else {
		}
		return AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_24_8_expressionFB(result);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CSP isApplicable_solveCsp_CC(org.eclipse.uml2.uml.Class feature, org.eclipse.modisco.java.Package jPackage,
			org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon, Enumeration uContainer,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer, Match sourceMatch, Match targetMatch) {// Create CSP
		CSP csp = CspFactory.eINSTANCE.createCSP();

		// Create literals
		Variable literal0 = CSPFactoryHelper.eINSTANCE.createVariable("literal0", true, csp);
		literal0.setValue("Anonymous");
		literal0.setType("");

		// Create attribute variables
		Variable var_uContainer_name = CSPFactoryHelper.eINSTANCE.createVariable("uContainer.name", true, csp);
		var_uContainer_name.setValue(uContainer.getName());
		var_uContainer_name.setType("String");
		Variable var_feature_name = CSPFactoryHelper.eINSTANCE.createVariable("feature.name", true, csp);
		var_feature_name.setValue(feature.getName());
		var_feature_name.setType("String");

		// Create unbound variables

		// Create constraints
		AddPrefix addPrefix = new AddPrefix();

		csp.getConstraints().add(addPrefix);

		// Solve CSP
		addPrefix.setRuleName("NoRuleName");
		addPrefix.solve(var_uContainer_name, literal0, var_feature_name);
		return csp;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isApplicable_checkCsp_CC(CSP csp) {
		return csp.check();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean checkDEC_FWD(org.eclipse.modisco.java.Package jPackage, MAnonymousClass mAnon,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer) {// 
		Object[] result1_black = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_27_1_matchtggpattern_blackBBBB(jPackage, mAnon, mMember,
						jContainer);
		if (result1_black != null) {
			return AnonymousClass4EnumConstInPackageImpl.pattern_AnonymousClass4EnumConstInPackage_27_2_expressionF();
		} else {
			return AnonymousClass4EnumConstInPackageImpl.pattern_AnonymousClass4EnumConstInPackage_27_3_expressionF();
		}

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean checkDEC_BWD(org.eclipse.uml2.uml.Class feature, org.eclipse.uml2.uml.Package uPackage,
			Enumeration uContainer) {// 
		Object[] result1_black = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_28_1_matchtggpattern_blackBBB(feature, uPackage, uContainer);
		if (result1_black != null) {
			return AnonymousClass4EnumConstInPackageImpl.pattern_AnonymousClass4EnumConstInPackage_28_2_expressionF();
		} else {
			return AnonymousClass4EnumConstInPackageImpl.pattern_AnonymousClass4EnumConstInPackage_28_3_expressionF();
		}

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ModelgeneratorRuleResult generateModel(RuleEntryContainer ruleEntryContainer,
			ASTNode2Element ne2neParameter) {

		Object[] result1_black = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_29_1_createresult_blackB(this);
		if (result1_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ".");
		}
		Object[] result1_green = AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_29_1_createresult_greenFF();
		IsApplicableMatch isApplicableMatch = (IsApplicableMatch) result1_green[0];
		ModelgeneratorRuleResult ruleResult = (ModelgeneratorRuleResult) result1_green[1];

		// ForEach 
		for (Object[] result2_black : AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_blackFFFFFFFFBB(ruleEntryContainer,
						ruleResult)) {
			//nothing RuleEntryList ne2neList = (RuleEntryList) result2_black[0];
			org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) result2_black[1];
			EnumDeclaration jContainer = (EnumDeclaration) result2_black[2];
			EnumConstantDeclaration mMember = (EnumConstantDeclaration) result2_black[3];
			ASTNode2Element ne2ne = (ASTNode2Element) result2_black[4];
			Enumeration uContainer = (Enumeration) result2_black[5];
			org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) result2_black[6];
			JavaPackage2UmlPackage p2p = (JavaPackage2UmlPackage) result2_black[7];

			Object[] result3_bindingAndBlack = AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_29_3_solveCSP_bindingAndBlackFBBBBBBBBBB(this,
							isApplicableMatch, jPackage, uPackage, uContainer, mMember, jContainer, ne2ne, p2p,
							ruleResult);
			if (result3_bindingAndBlack == null) {
				throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
						+ "[isApplicableMatch] = " + isApplicableMatch + ", " + "[jPackage] = " + jPackage + ", "
						+ "[uPackage] = " + uPackage + ", " + "[uContainer] = " + uContainer + ", " + "[mMember] = "
						+ mMember + ", " + "[jContainer] = " + jContainer + ", " + "[ne2ne] = " + ne2ne + ", "
						+ "[p2p] = " + p2p + ", " + "[ruleResult] = " + ruleResult + ".");
			}
			CSP csp = (CSP) result3_bindingAndBlack[0];
			// 
			if (AnonymousClass4EnumConstInPackageImpl
					.pattern_AnonymousClass4EnumConstInPackage_29_4_checkCSP_expressionFBB(this, csp)) {
				// 
				Object[] result5_black = AnonymousClass4EnumConstInPackageImpl
						.pattern_AnonymousClass4EnumConstInPackage_29_5_checknacs_blackBBBBBBB(jPackage, uPackage,
								uContainer, mMember, jContainer, ne2ne, p2p);
				if (result5_black != null) {

					Object[] result6_black = AnonymousClass4EnumConstInPackageImpl
							.pattern_AnonymousClass4EnumConstInPackage_29_6_perform_blackBBBBBBBB(jPackage, uPackage,
									uContainer, mMember, jContainer, ne2ne, p2p, ruleResult);
					if (result6_black == null) {
						throw new RuntimeException("Pattern matching failed." + " Variables: " + "[jPackage] = "
								+ jPackage + ", " + "[uPackage] = " + uPackage + ", " + "[uContainer] = " + uContainer
								+ ", " + "[mMember] = " + mMember + ", " + "[jContainer] = " + jContainer + ", "
								+ "[ne2ne] = " + ne2ne + ", " + "[p2p] = " + p2p + ", " + "[ruleResult] = " + ruleResult
								+ ".");
					}
					AnonymousClass4EnumConstInPackageImpl
							.pattern_AnonymousClass4EnumConstInPackage_29_6_perform_greenFFBFBBB(uPackage, mMember,
									ruleResult, csp);
					//nothing ASTNode2Element a2a = (ASTNode2Element) result6_green[0];
					//nothing org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) result6_green[1];
					//nothing MAnonymousClass mAnon = (MAnonymousClass) result6_green[3];

				} else {
				}

			} else {
			}

		}
		return AnonymousClass4EnumConstInPackageImpl
				.pattern_AnonymousClass4EnumConstInPackage_29_7_expressionFB(ruleResult);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CSP generateModel_solveCsp_BWD(IsApplicableMatch isApplicableMatch,
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p, ModelgeneratorRuleResult ruleResult) {// Create CSP
		CSP csp = CspFactory.eINSTANCE.createCSP();
		isApplicableMatch.getAttributeInfo().add(csp);

		// Create literals
		Variable literal0 = CSPFactoryHelper.eINSTANCE.createVariable("literal0", true, csp);
		literal0.setValue("Anonymous");
		literal0.setType("");

		// Create attribute variables
		Variable var_uContainer_name = CSPFactoryHelper.eINSTANCE.createVariable("uContainer.name", true, csp);
		var_uContainer_name.setValue(uContainer.getName());
		var_uContainer_name.setType("String");

		// Create unbound variables
		Variable var_feature_name = CSPFactoryHelper.eINSTANCE.createVariable("feature.name", csp);
		var_feature_name.setType("String");

		// Create constraints
		AddPrefix addPrefix = new AddPrefix();

		csp.getConstraints().add(addPrefix);

		// Solve CSP
		addPrefix.setRuleName("NoRuleName");
		addPrefix.solve(var_uContainer_name, literal0, var_feature_name);

		// Snapshot pattern match on which CSP is solved
		isApplicableMatch.registerObject("jPackage", jPackage);
		isApplicableMatch.registerObject("uPackage", uPackage);
		isApplicableMatch.registerObject("uContainer", uContainer);
		isApplicableMatch.registerObject("mMember", mMember);
		isApplicableMatch.registerObject("jContainer", jContainer);
		isApplicableMatch.registerObject("ne2ne", ne2ne);
		isApplicableMatch.registerObject("p2p", p2p);
		return csp;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean generateModel_checkCsp_BWD(CSP csp) {
		return csp.check();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
		switch (operationID) {
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPROPRIATE_FWD__MATCH_PACKAGE_MANONYMOUSCLASS_ENUMCONSTANTDECLARATION_ENUMDECLARATION:
				return isAppropriate_FWD((Match) arguments.get(0), (org.eclipse.modisco.java.Package) arguments.get(1),
						(MAnonymousClass) arguments.get(2), (EnumConstantDeclaration) arguments.get(3),
						(EnumDeclaration) arguments.get(4));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___PERFORM_FWD__ISAPPLICABLEMATCH:
				return perform_FWD((IsApplicableMatch) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPLICABLE_FWD__MATCH:
				return isApplicable_FWD((Match) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___REGISTER_OBJECTS_TO_MATCH_FWD__MATCH_PACKAGE_MANONYMOUSCLASS_ENUMCONSTANTDECLARATION_ENUMDECLARATION:
				registerObjectsToMatch_FWD((Match) arguments.get(0),
						(org.eclipse.modisco.java.Package) arguments.get(1), (MAnonymousClass) arguments.get(2),
						(EnumConstantDeclaration) arguments.get(3), (EnumDeclaration) arguments.get(4));
				return null;
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPROPRIATE_SOLVE_CSP_FWD__MATCH_PACKAGE_MANONYMOUSCLASS_ENUMCONSTANTDECLARATION_ENUMDECLARATION:
				return isAppropriate_solveCsp_FWD((Match) arguments.get(0),
						(org.eclipse.modisco.java.Package) arguments.get(1), (MAnonymousClass) arguments.get(2),
						(EnumConstantDeclaration) arguments.get(3), (EnumDeclaration) arguments.get(4));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPROPRIATE_CHECK_CSP_FWD__CSP:
				return isAppropriate_checkCsp_FWD((CSP) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPLICABLE_SOLVE_CSP_FWD__ISAPPLICABLEMATCH_PACKAGE_PACKAGE_MANONYMOUSCLASS_ENUMERATION_ENUMCONSTANTDECLARATION_ENUMDECLARATION_ASTNODE2ELEMENT_JAVAPACKAGE2UMLPACKAGE:
				return isApplicable_solveCsp_FWD((IsApplicableMatch) arguments.get(0),
						(org.eclipse.modisco.java.Package) arguments.get(1),
						(org.eclipse.uml2.uml.Package) arguments.get(2), (MAnonymousClass) arguments.get(3),
						(Enumeration) arguments.get(4), (EnumConstantDeclaration) arguments.get(5),
						(EnumDeclaration) arguments.get(6), (ASTNode2Element) arguments.get(7),
						(JavaPackage2UmlPackage) arguments.get(8));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPLICABLE_CHECK_CSP_FWD__CSP:
				return isApplicable_checkCsp_FWD((CSP) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___REGISTER_OBJECTS_FWD__PERFORMRULERESULT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT:
				registerObjects_FWD((PerformRuleResult) arguments.get(0), (EObject) arguments.get(1),
						(EObject) arguments.get(2), (EObject) arguments.get(3), (EObject) arguments.get(4),
						(EObject) arguments.get(5), (EObject) arguments.get(6), (EObject) arguments.get(7),
						(EObject) arguments.get(8), (EObject) arguments.get(9), (EObject) arguments.get(10));
				return null;
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___CHECK_TYPES_FWD__MATCH:
				return checkTypes_FWD((Match) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPROPRIATE_BWD__MATCH_CLASS_PACKAGE_ENUMERATION:
				return isAppropriate_BWD((Match) arguments.get(0), (org.eclipse.uml2.uml.Class) arguments.get(1),
						(org.eclipse.uml2.uml.Package) arguments.get(2), (Enumeration) arguments.get(3));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___PERFORM_BWD__ISAPPLICABLEMATCH:
				return perform_BWD((IsApplicableMatch) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPLICABLE_BWD__MATCH:
				return isApplicable_BWD((Match) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___REGISTER_OBJECTS_TO_MATCH_BWD__MATCH_CLASS_PACKAGE_ENUMERATION:
				registerObjectsToMatch_BWD((Match) arguments.get(0), (org.eclipse.uml2.uml.Class) arguments.get(1),
						(org.eclipse.uml2.uml.Package) arguments.get(2), (Enumeration) arguments.get(3));
				return null;
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPROPRIATE_SOLVE_CSP_BWD__MATCH_CLASS_PACKAGE_ENUMERATION:
				return isAppropriate_solveCsp_BWD((Match) arguments.get(0),
						(org.eclipse.uml2.uml.Class) arguments.get(1), (org.eclipse.uml2.uml.Package) arguments.get(2),
						(Enumeration) arguments.get(3));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPROPRIATE_CHECK_CSP_BWD__CSP:
				return isAppropriate_checkCsp_BWD((CSP) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPLICABLE_SOLVE_CSP_BWD__ISAPPLICABLEMATCH_CLASS_PACKAGE_PACKAGE_ENUMERATION_ENUMCONSTANTDECLARATION_ENUMDECLARATION_ASTNODE2ELEMENT_JAVAPACKAGE2UMLPACKAGE:
				return isApplicable_solveCsp_BWD((IsApplicableMatch) arguments.get(0),
						(org.eclipse.uml2.uml.Class) arguments.get(1),
						(org.eclipse.modisco.java.Package) arguments.get(2),
						(org.eclipse.uml2.uml.Package) arguments.get(3), (Enumeration) arguments.get(4),
						(EnumConstantDeclaration) arguments.get(5), (EnumDeclaration) arguments.get(6),
						(ASTNode2Element) arguments.get(7), (JavaPackage2UmlPackage) arguments.get(8));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPLICABLE_CHECK_CSP_BWD__CSP:
				return isApplicable_checkCsp_BWD((CSP) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___REGISTER_OBJECTS_BWD__PERFORMRULERESULT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT_EOBJECT:
				registerObjects_BWD((PerformRuleResult) arguments.get(0), (EObject) arguments.get(1),
						(EObject) arguments.get(2), (EObject) arguments.get(3), (EObject) arguments.get(4),
						(EObject) arguments.get(5), (EObject) arguments.get(6), (EObject) arguments.get(7),
						(EObject) arguments.get(8), (EObject) arguments.get(9), (EObject) arguments.get(10));
				return null;
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___CHECK_TYPES_BWD__MATCH:
				return checkTypes_BWD((Match) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPROPRIATE_BWD_EMOFLON_EDGE_1060__EMOFLONEDGE:
				return isAppropriate_BWD_EMoflonEdge_1060((EMoflonEdge) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPROPRIATE_FWD_EMOFLON_EDGE_1165__EMOFLONEDGE:
				return isAppropriate_FWD_EMoflonEdge_1165((EMoflonEdge) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___CHECK_ATTRIBUTES_FWD__TRIPLEMATCH:
				return checkAttributes_FWD((TripleMatch) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___CHECK_ATTRIBUTES_BWD__TRIPLEMATCH:
				return checkAttributes_BWD((TripleMatch) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPLICABLE_CC__MATCH_MATCH:
				return isApplicable_CC((Match) arguments.get(0), (Match) arguments.get(1));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPLICABLE_SOLVE_CSP_CC__CLASS_PACKAGE_PACKAGE_MANONYMOUSCLASS_ENUMERATION_ENUMCONSTANTDECLARATION_ENUMDECLARATION_MATCH_MATCH:
				return isApplicable_solveCsp_CC((org.eclipse.uml2.uml.Class) arguments.get(0),
						(org.eclipse.modisco.java.Package) arguments.get(1),
						(org.eclipse.uml2.uml.Package) arguments.get(2), (MAnonymousClass) arguments.get(3),
						(Enumeration) arguments.get(4), (EnumConstantDeclaration) arguments.get(5),
						(EnumDeclaration) arguments.get(6), (Match) arguments.get(7), (Match) arguments.get(8));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___IS_APPLICABLE_CHECK_CSP_CC__CSP:
				return isApplicable_checkCsp_CC((CSP) arguments.get(0));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___CHECK_DEC_FWD__PACKAGE_MANONYMOUSCLASS_ENUMCONSTANTDECLARATION_ENUMDECLARATION:
				return checkDEC_FWD((org.eclipse.modisco.java.Package) arguments.get(0),
						(MAnonymousClass) arguments.get(1), (EnumConstantDeclaration) arguments.get(2),
						(EnumDeclaration) arguments.get(3));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___CHECK_DEC_BWD__CLASS_PACKAGE_ENUMERATION:
				return checkDEC_BWD((org.eclipse.uml2.uml.Class) arguments.get(0),
						(org.eclipse.uml2.uml.Package) arguments.get(1), (Enumeration) arguments.get(2));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___GENERATE_MODEL__RULEENTRYCONTAINER_ASTNODE2ELEMENT:
				return generateModel((RuleEntryContainer) arguments.get(0), (ASTNode2Element) arguments.get(1));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___GENERATE_MODEL_SOLVE_CSP_BWD__ISAPPLICABLEMATCH_PACKAGE_PACKAGE_ENUMERATION_ENUMCONSTANTDECLARATION_ENUMDECLARATION_ASTNODE2ELEMENT_JAVAPACKAGE2UMLPACKAGE_MODELGENERATORRULERESULT:
				return generateModel_solveCsp_BWD((IsApplicableMatch) arguments.get(0),
						(org.eclipse.modisco.java.Package) arguments.get(1),
						(org.eclipse.uml2.uml.Package) arguments.get(2), (Enumeration) arguments.get(3),
						(EnumConstantDeclaration) arguments.get(4), (EnumDeclaration) arguments.get(5),
						(ASTNode2Element) arguments.get(6), (JavaPackage2UmlPackage) arguments.get(7),
						(ModelgeneratorRuleResult) arguments.get(8));
			case RulesPackage.ANONYMOUS_CLASS4_ENUM_CONST_IN_PACKAGE___GENERATE_MODEL_CHECK_CSP_BWD__CSP:
				return generateModel_checkCsp_BWD((CSP) arguments.get(0));
		}
		return super.eInvoke(operationID, arguments);
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_0_1_initialbindings_blackBBBBBB(
			AnonymousClass4EnumConstInPackage _this, Match match, org.eclipse.modisco.java.Package jPackage,
			MAnonymousClass mAnon, EnumConstantDeclaration mMember, EnumDeclaration jContainer) {
		return new Object[] { _this, match, jPackage, mAnon, mMember, jContainer };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_0_2_SolveCSP_bindingFBBBBBB(
			AnonymousClass4EnumConstInPackage _this, Match match, org.eclipse.modisco.java.Package jPackage,
			MAnonymousClass mAnon, EnumConstantDeclaration mMember, EnumDeclaration jContainer) {
		CSP _localVariable_0 = _this.isAppropriate_solveCsp_FWD(match, jPackage, mAnon, mMember, jContainer);
		CSP csp = _localVariable_0;
		if (csp != null) {
			return new Object[] { csp, _this, match, jPackage, mAnon, mMember, jContainer };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_0_2_SolveCSP_blackB(CSP csp) {
		return new Object[] { csp };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_0_2_SolveCSP_bindingAndBlackFBBBBBB(
			AnonymousClass4EnumConstInPackage _this, Match match, org.eclipse.modisco.java.Package jPackage,
			MAnonymousClass mAnon, EnumConstantDeclaration mMember, EnumDeclaration jContainer) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_0_2_SolveCSP_binding = pattern_AnonymousClass4EnumConstInPackage_0_2_SolveCSP_bindingFBBBBBB(
				_this, match, jPackage, mAnon, mMember, jContainer);
		if (result_pattern_AnonymousClass4EnumConstInPackage_0_2_SolveCSP_binding != null) {
			CSP csp = (CSP) result_pattern_AnonymousClass4EnumConstInPackage_0_2_SolveCSP_binding[0];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_0_2_SolveCSP_black = pattern_AnonymousClass4EnumConstInPackage_0_2_SolveCSP_blackB(
					csp);
			if (result_pattern_AnonymousClass4EnumConstInPackage_0_2_SolveCSP_black != null) {

				return new Object[] { csp, _this, match, jPackage, mAnon, mMember, jContainer };
			}
		}
		return null;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_0_3_CheckCSP_expressionFBB(
			AnonymousClass4EnumConstInPackage _this, CSP csp) {
		boolean _localVariable_0 = _this.isAppropriate_checkCsp_FWD(csp);
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_0_4_collectelementstobetranslated_blackBBBBB(
			Match match, org.eclipse.modisco.java.Package jPackage, MAnonymousClass mAnon,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer) {
		return new Object[] { match, jPackage, mAnon, mMember, jContainer };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_0_4_collectelementstobetranslated_greenBBBF(
			Match match, MAnonymousClass mAnon, EnumConstantDeclaration mMember) {
		EMoflonEdge mMember__mAnon____anonymousClassDeclaration = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		match.getToBeTranslatedNodes().add(mAnon);
		String mMember__mAnon____anonymousClassDeclaration_name_prime = "anonymousClassDeclaration";
		mMember__mAnon____anonymousClassDeclaration.setSrc(mMember);
		mMember__mAnon____anonymousClassDeclaration.setTrg(mAnon);
		match.getToBeTranslatedEdges().add(mMember__mAnon____anonymousClassDeclaration);
		mMember__mAnon____anonymousClassDeclaration.setName(mMember__mAnon____anonymousClassDeclaration_name_prime);
		return new Object[] { match, mAnon, mMember, mMember__mAnon____anonymousClassDeclaration };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_0_5_collectcontextelements_blackBBBBB(
			Match match, org.eclipse.modisco.java.Package jPackage, MAnonymousClass mAnon,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer) {
		return new Object[] { match, jPackage, mAnon, mMember, jContainer };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_0_5_collectcontextelements_greenBBBBFFF(
			Match match, org.eclipse.modisco.java.Package jPackage, EnumConstantDeclaration mMember,
			EnumDeclaration jContainer) {
		EMoflonEdge jContainer__jPackage____package = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge jPackage__jContainer____ownedElements = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge jContainer__mMember____enumConstants = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		match.getContextNodes().add(jPackage);
		match.getContextNodes().add(mMember);
		match.getContextNodes().add(jContainer);
		String jContainer__jPackage____package_name_prime = "package";
		String jPackage__jContainer____ownedElements_name_prime = "ownedElements";
		String jContainer__mMember____enumConstants_name_prime = "enumConstants";
		jContainer__jPackage____package.setSrc(jContainer);
		jContainer__jPackage____package.setTrg(jPackage);
		match.getContextEdges().add(jContainer__jPackage____package);
		jPackage__jContainer____ownedElements.setSrc(jPackage);
		jPackage__jContainer____ownedElements.setTrg(jContainer);
		match.getContextEdges().add(jPackage__jContainer____ownedElements);
		jContainer__mMember____enumConstants.setSrc(jContainer);
		jContainer__mMember____enumConstants.setTrg(mMember);
		match.getContextEdges().add(jContainer__mMember____enumConstants);
		jContainer__jPackage____package.setName(jContainer__jPackage____package_name_prime);
		jPackage__jContainer____ownedElements.setName(jPackage__jContainer____ownedElements_name_prime);
		jContainer__mMember____enumConstants.setName(jContainer__mMember____enumConstants_name_prime);
		return new Object[] { match, jPackage, mMember, jContainer, jContainer__jPackage____package,
				jPackage__jContainer____ownedElements, jContainer__mMember____enumConstants };
	}

	public static final void pattern_AnonymousClass4EnumConstInPackage_0_6_registerobjectstomatch_expressionBBBBBB(
			AnonymousClass4EnumConstInPackage _this, Match match, org.eclipse.modisco.java.Package jPackage,
			MAnonymousClass mAnon, EnumConstantDeclaration mMember, EnumDeclaration jContainer) {
		_this.registerObjectsToMatch_FWD(match, jPackage, mAnon, mMember, jContainer);

	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_0_7_expressionF() {
		boolean _result = Boolean.valueOf(true);
		return _result;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_0_8_expressionF() {
		boolean _result = Boolean.valueOf(false);
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_bindingFFFFFFFFB(
			IsApplicableMatch isApplicableMatch) {
		EObject _localVariable_0 = isApplicableMatch.getObject("jPackage");
		EObject _localVariable_1 = isApplicableMatch.getObject("uPackage");
		EObject _localVariable_2 = isApplicableMatch.getObject("mAnon");
		EObject _localVariable_3 = isApplicableMatch.getObject("uContainer");
		EObject _localVariable_4 = isApplicableMatch.getObject("mMember");
		EObject _localVariable_5 = isApplicableMatch.getObject("jContainer");
		EObject _localVariable_6 = isApplicableMatch.getObject("ne2ne");
		EObject _localVariable_7 = isApplicableMatch.getObject("p2p");
		EObject tmpJPackage = _localVariable_0;
		EObject tmpUPackage = _localVariable_1;
		EObject tmpMAnon = _localVariable_2;
		EObject tmpUContainer = _localVariable_3;
		EObject tmpMMember = _localVariable_4;
		EObject tmpJContainer = _localVariable_5;
		EObject tmpNe2ne = _localVariable_6;
		EObject tmpP2p = _localVariable_7;
		if (tmpJPackage instanceof org.eclipse.modisco.java.Package) {
			org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) tmpJPackage;
			if (tmpUPackage instanceof org.eclipse.uml2.uml.Package) {
				org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) tmpUPackage;
				if (tmpMAnon instanceof MAnonymousClass) {
					MAnonymousClass mAnon = (MAnonymousClass) tmpMAnon;
					if (tmpUContainer instanceof Enumeration) {
						Enumeration uContainer = (Enumeration) tmpUContainer;
						if (tmpMMember instanceof EnumConstantDeclaration) {
							EnumConstantDeclaration mMember = (EnumConstantDeclaration) tmpMMember;
							if (tmpJContainer instanceof EnumDeclaration) {
								EnumDeclaration jContainer = (EnumDeclaration) tmpJContainer;
								if (tmpNe2ne instanceof ASTNode2Element) {
									ASTNode2Element ne2ne = (ASTNode2Element) tmpNe2ne;
									if (tmpP2p instanceof JavaPackage2UmlPackage) {
										JavaPackage2UmlPackage p2p = (JavaPackage2UmlPackage) tmpP2p;
										return new Object[] { jPackage, uPackage, mAnon, uContainer, mMember,
												jContainer, ne2ne, p2p, isApplicableMatch };
									}
								}
							}
						}
					}
				}
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_blackBBBBBBBBFBB(
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon,
			Enumeration uContainer, EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p, AnonymousClass4EnumConstInPackage _this, IsApplicableMatch isApplicableMatch) {
		for (EObject tmpCsp : isApplicableMatch.getAttributeInfo()) {
			if (tmpCsp instanceof CSP) {
				CSP csp = (CSP) tmpCsp;
				return new Object[] { jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ne2ne, p2p, csp,
						_this, isApplicableMatch };
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_bindingAndBlackFFFFFFFFFBB(
			AnonymousClass4EnumConstInPackage _this, IsApplicableMatch isApplicableMatch) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_binding = pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_bindingFFFFFFFFB(
				isApplicableMatch);
		if (result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_binding != null) {
			org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_binding[0];
			org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_binding[1];
			MAnonymousClass mAnon = (MAnonymousClass) result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_binding[2];
			Enumeration uContainer = (Enumeration) result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_binding[3];
			EnumConstantDeclaration mMember = (EnumConstantDeclaration) result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_binding[4];
			EnumDeclaration jContainer = (EnumDeclaration) result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_binding[5];
			ASTNode2Element ne2ne = (ASTNode2Element) result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_binding[6];
			JavaPackage2UmlPackage p2p = (JavaPackage2UmlPackage) result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_binding[7];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_black = pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_blackBBBBBBBBFBB(
					jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ne2ne, p2p, _this, isApplicableMatch);
			if (result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_black != null) {
				CSP csp = (CSP) result_pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_black[8];

				return new Object[] { jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ne2ne, p2p, csp,
						_this, isApplicableMatch };
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_1_1_performtransformation_greenFFBBB(
			org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon, CSP csp) {
		ASTNode2Element a2a = UmlFactory.eINSTANCE.createASTNode2Element();
		org.eclipse.uml2.uml.Class feature = UMLFactory.eINSTANCE.createClass();
		Object _localVariable_0 = csp.getValue("feature", "name");
		a2a.setSource(mAnon);
		a2a.setTarget(feature);
		feature.setPackage(uPackage);
		String feature_name_prime = (String) _localVariable_0;
		feature.setName(feature_name_prime);
		return new Object[] { a2a, feature, uPackage, mAnon, csp };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_1_2_collecttranslatedelements_blackBBB(
			ASTNode2Element a2a, org.eclipse.uml2.uml.Class feature, MAnonymousClass mAnon) {
		return new Object[] { a2a, feature, mAnon };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_1_2_collecttranslatedelements_greenFBBB(
			ASTNode2Element a2a, org.eclipse.uml2.uml.Class feature, MAnonymousClass mAnon) {
		PerformRuleResult ruleresult = RuntimeFactory.eINSTANCE.createPerformRuleResult();
		ruleresult.getCreatedLinkElements().add(a2a);
		ruleresult.getCreatedElements().add(feature);
		ruleresult.getTranslatedElements().add(mAnon);
		return new Object[] { ruleresult, a2a, feature, mAnon };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_1_3_bookkeepingforedges_blackBBBBBBBBBBB(
			PerformRuleResult ruleresult, EObject a2a, EObject feature, EObject jPackage, EObject uPackage,
			EObject mAnon, EObject uContainer, EObject mMember, EObject jContainer, EObject ne2ne, EObject p2p) {
		if (!a2a.equals(feature)) {
			if (!a2a.equals(jPackage)) {
				if (!a2a.equals(uPackage)) {
					if (!a2a.equals(mAnon)) {
						if (!a2a.equals(uContainer)) {
							if (!a2a.equals(mMember)) {
								if (!a2a.equals(jContainer)) {
									if (!a2a.equals(ne2ne)) {
										if (!a2a.equals(p2p)) {
											if (!feature.equals(jPackage)) {
												if (!feature.equals(uPackage)) {
													if (!feature.equals(mAnon)) {
														if (!feature.equals(uContainer)) {
															if (!feature.equals(mMember)) {
																if (!feature.equals(jContainer)) {
																	if (!feature.equals(ne2ne)) {
																		if (!feature.equals(p2p)) {
																			if (!jPackage.equals(uPackage)) {
																				if (!jPackage.equals(mAnon)) {
																					if (!jPackage.equals(uContainer)) {
																						if (!jPackage.equals(mMember)) {
																							if (!jPackage
																									.equals(ne2ne)) {
																								if (!jPackage
																										.equals(p2p)) {
																									if (!mAnon.equals(
																											uPackage)) {
																										if (!mAnon
																												.equals(uContainer)) {
																											if (!mAnon
																													.equals(mMember)) {
																												if (!mAnon
																														.equals(ne2ne)) {
																													if (!mAnon
																															.equals(p2p)) {
																														if (!uContainer
																																.equals(uPackage)) {
																															if (!mMember
																																	.equals(uPackage)) {
																																if (!mMember
																																		.equals(uContainer)) {
																																	if (!mMember
																																			.equals(ne2ne)) {
																																		if (!mMember
																																				.equals(p2p)) {
																																			if (!jContainer
																																					.equals(jPackage)) {
																																				if (!jContainer
																																						.equals(uPackage)) {
																																					if (!jContainer
																																							.equals(mAnon)) {
																																						if (!jContainer
																																								.equals(uContainer)) {
																																							if (!jContainer
																																									.equals(mMember)) {
																																								if (!jContainer
																																										.equals(ne2ne)) {
																																									if (!jContainer
																																											.equals(p2p)) {
																																										if (!ne2ne
																																												.equals(uPackage)) {
																																											if (!ne2ne
																																													.equals(uContainer)) {
																																												if (!ne2ne
																																														.equals(p2p)) {
																																													if (!p2p.equals(
																																															uPackage)) {
																																														if (!p2p.equals(
																																																uContainer)) {
																																															return new Object[] {
																																																	ruleresult,
																																																	a2a,
																																																	feature,
																																																	jPackage,
																																																	uPackage,
																																																	mAnon,
																																																	uContainer,
																																																	mMember,
																																																	jContainer,
																																																	ne2ne,
																																																	p2p };
																																														}
																																													}
																																												}
																																											}
																																										}
																																									}
																																								}
																																							}
																																						}
																																					}
																																				}
																																			}
																																		}
																																	}
																																}
																															}
																														}
																													}
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_1_3_bookkeepingforedges_greenBBBBBBFFFFF(
			PerformRuleResult ruleresult, EObject a2a, EObject feature, EObject uPackage, EObject mAnon,
			EObject mMember) {
		EMoflonEdge a2a__feature____target = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge feature__uPackage____package = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge uPackage__feature____ownedType = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge mMember__mAnon____anonymousClassDeclaration = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge a2a__mAnon____source = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		String ruleresult_ruleName_prime = "AnonymousClass4EnumConstInPackage";
		String a2a__feature____target_name_prime = "target";
		String feature__uPackage____package_name_prime = "package";
		String uPackage__feature____ownedType_name_prime = "ownedType";
		String mMember__mAnon____anonymousClassDeclaration_name_prime = "anonymousClassDeclaration";
		String a2a__mAnon____source_name_prime = "source";
		a2a__feature____target.setSrc(a2a);
		a2a__feature____target.setTrg(feature);
		ruleresult.getCreatedEdges().add(a2a__feature____target);
		feature__uPackage____package.setSrc(feature);
		feature__uPackage____package.setTrg(uPackage);
		ruleresult.getCreatedEdges().add(feature__uPackage____package);
		uPackage__feature____ownedType.setSrc(uPackage);
		uPackage__feature____ownedType.setTrg(feature);
		ruleresult.getCreatedEdges().add(uPackage__feature____ownedType);
		mMember__mAnon____anonymousClassDeclaration.setSrc(mMember);
		mMember__mAnon____anonymousClassDeclaration.setTrg(mAnon);
		ruleresult.getTranslatedEdges().add(mMember__mAnon____anonymousClassDeclaration);
		a2a__mAnon____source.setSrc(a2a);
		a2a__mAnon____source.setTrg(mAnon);
		ruleresult.getCreatedEdges().add(a2a__mAnon____source);
		ruleresult.setRuleName(ruleresult_ruleName_prime);
		a2a__feature____target.setName(a2a__feature____target_name_prime);
		feature__uPackage____package.setName(feature__uPackage____package_name_prime);
		uPackage__feature____ownedType.setName(uPackage__feature____ownedType_name_prime);
		mMember__mAnon____anonymousClassDeclaration.setName(mMember__mAnon____anonymousClassDeclaration_name_prime);
		a2a__mAnon____source.setName(a2a__mAnon____source_name_prime);
		return new Object[] { ruleresult, a2a, feature, uPackage, mAnon, mMember, a2a__feature____target,
				feature__uPackage____package, uPackage__feature____ownedType,
				mMember__mAnon____anonymousClassDeclaration, a2a__mAnon____source };
	}

	public static final void pattern_AnonymousClass4EnumConstInPackage_1_5_registerobjects_expressionBBBBBBBBBBBB(
			AnonymousClass4EnumConstInPackage _this, PerformRuleResult ruleresult, EObject a2a, EObject feature,
			EObject jPackage, EObject uPackage, EObject mAnon, EObject uContainer, EObject mMember, EObject jContainer,
			EObject ne2ne, EObject p2p) {
		_this.registerObjects_FWD(ruleresult, a2a, feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer,
				ne2ne, p2p);

	}

	public static final PerformRuleResult pattern_AnonymousClass4EnumConstInPackage_1_6_expressionFB(
			PerformRuleResult ruleresult) {
		PerformRuleResult _result = ruleresult;
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_bindingFB(
			AnonymousClass4EnumConstInPackage _this) {
		EClass _localVariable_0 = _this.eClass();
		EClass eClass = _localVariable_0;
		if (eClass != null) {
			return new Object[] { eClass, _this };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_blackFBB(
			EClass eClass, AnonymousClass4EnumConstInPackage _this) {
		for (EOperation performOperation : eClass.getEOperations()) {
			String performOperation_name = performOperation.getName();
			if (performOperation_name.equals("perform_FWD")) {
				return new Object[] { performOperation, eClass, _this };
			}

		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_bindingAndBlackFFB(
			AnonymousClass4EnumConstInPackage _this) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_binding = pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_bindingFB(
				_this);
		if (result_pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_binding != null) {
			EClass eClass = (EClass) result_pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_binding[0];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_black = pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_blackFBB(
					eClass, _this);
			if (result_pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_black != null) {
				EOperation performOperation = (EOperation) result_pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_black[0];

				return new Object[] { performOperation, eClass, _this };
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_2_1_preparereturnvalue_greenBF(
			EOperation performOperation) {
		IsApplicableRuleResult ruleresult = RuntimeFactory.eINSTANCE.createIsApplicableRuleResult();
		boolean ruleresult_success_prime = Boolean.valueOf(false);
		String ruleresult_rule_prime = "AnonymousClass4EnumConstInPackage";
		ruleresult.setPerformOperation(performOperation);
		ruleresult.setSuccess(Boolean.valueOf(ruleresult_success_prime));
		ruleresult.setRule(ruleresult_rule_prime);
		return new Object[] { performOperation, ruleresult };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_2_2_corematch_bindingFFFFB(Match match) {
		EObject _localVariable_0 = match.getObject("jPackage");
		EObject _localVariable_1 = match.getObject("mAnon");
		EObject _localVariable_2 = match.getObject("mMember");
		EObject _localVariable_3 = match.getObject("jContainer");
		EObject tmpJPackage = _localVariable_0;
		EObject tmpMAnon = _localVariable_1;
		EObject tmpMMember = _localVariable_2;
		EObject tmpJContainer = _localVariable_3;
		if (tmpJPackage instanceof org.eclipse.modisco.java.Package) {
			org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) tmpJPackage;
			if (tmpMAnon instanceof MAnonymousClass) {
				MAnonymousClass mAnon = (MAnonymousClass) tmpMAnon;
				if (tmpMMember instanceof EnumConstantDeclaration) {
					EnumConstantDeclaration mMember = (EnumConstantDeclaration) tmpMMember;
					if (tmpJContainer instanceof EnumDeclaration) {
						EnumDeclaration jContainer = (EnumDeclaration) tmpJContainer;
						return new Object[] { jPackage, mAnon, mMember, jContainer, match };
					}
				}
			}
		}
		return null;
	}

	public static final Iterable<Object[]> pattern_AnonymousClass4EnumConstInPackage_2_2_corematch_blackBFBFBBFFB(
			org.eclipse.modisco.java.Package jPackage, MAnonymousClass mAnon, EnumConstantDeclaration mMember,
			EnumDeclaration jContainer, Match match) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		for (JavaPackage2UmlPackage p2p : org.moflon.core.utilities.eMoflonEMFUtil.getOppositeReferenceTyped(jPackage,
				JavaPackage2UmlPackage.class, "source")) {
			org.eclipse.uml2.uml.Package uPackage = p2p.getTarget();
			if (uPackage != null) {
				for (ASTNode2Element ne2ne : org.moflon.core.utilities.eMoflonEMFUtil
						.getOppositeReferenceTyped(jContainer, ASTNode2Element.class, "source")) {
					Element tmpUContainer = ne2ne.getTarget();
					if (tmpUContainer instanceof Enumeration) {
						Enumeration uContainer = (Enumeration) tmpUContainer;
						_result.add(new Object[] { jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ne2ne,
								p2p, match });
					}

				}
			}

		}
		return _result;
	}

	public static final Iterable<Object[]> pattern_AnonymousClass4EnumConstInPackage_2_3_findcontext_blackBBBBBBBB(
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon,
			Enumeration uContainer, EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		if (jPackage.equals(p2p.getSource())) {
			if (jContainer.equals(ne2ne.getSource())) {
				if (uPackage.equals(p2p.getTarget())) {
					if (uPackage.equals(uContainer.getPackage())) {
						if (jPackage.equals(jContainer.getPackage())) {
							if (mAnon.equals(mMember.getAnonymousClassDeclaration())) {
								if (jContainer.getEnumConstants().contains(mMember)) {
									if (uContainer.equals(ne2ne.getTarget())) {
										_result.add(new Object[] { jPackage, uPackage, mAnon, uContainer, mMember,
												jContainer, ne2ne, p2p });
									}
								}
							}
						}
					}
				}
			}
		}
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_2_3_findcontext_greenBBBBBBBBFFFFFFFFFFF(
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon,
			Enumeration uContainer, EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p) {
		IsApplicableMatch isApplicableMatch = RuntimeFactory.eINSTANCE.createIsApplicableMatch();
		EMoflonEdge p2p__jPackage____source = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge ne2ne__jContainer____source = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge p2p__uPackage____target = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge uContainer__uPackage____package = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge uPackage__uContainer____ownedType = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge jContainer__jPackage____package = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge jPackage__jContainer____ownedElements = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge mMember__mAnon____anonymousClassDeclaration = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge jContainer__mMember____enumConstants = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge ne2ne__uContainer____target = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		String p2p__jPackage____source_name_prime = "source";
		String ne2ne__jContainer____source_name_prime = "source";
		String p2p__uPackage____target_name_prime = "target";
		String uContainer__uPackage____package_name_prime = "package";
		String uPackage__uContainer____ownedType_name_prime = "ownedType";
		String jContainer__jPackage____package_name_prime = "package";
		String jPackage__jContainer____ownedElements_name_prime = "ownedElements";
		String mMember__mAnon____anonymousClassDeclaration_name_prime = "anonymousClassDeclaration";
		String jContainer__mMember____enumConstants_name_prime = "enumConstants";
		String ne2ne__uContainer____target_name_prime = "target";
		isApplicableMatch.getAllContextElements().add(jPackage);
		isApplicableMatch.getAllContextElements().add(uPackage);
		isApplicableMatch.getAllContextElements().add(mAnon);
		isApplicableMatch.getAllContextElements().add(uContainer);
		isApplicableMatch.getAllContextElements().add(mMember);
		isApplicableMatch.getAllContextElements().add(jContainer);
		isApplicableMatch.getAllContextElements().add(ne2ne);
		isApplicableMatch.getAllContextElements().add(p2p);
		p2p__jPackage____source.setSrc(p2p);
		p2p__jPackage____source.setTrg(jPackage);
		isApplicableMatch.getAllContextElements().add(p2p__jPackage____source);
		ne2ne__jContainer____source.setSrc(ne2ne);
		ne2ne__jContainer____source.setTrg(jContainer);
		isApplicableMatch.getAllContextElements().add(ne2ne__jContainer____source);
		p2p__uPackage____target.setSrc(p2p);
		p2p__uPackage____target.setTrg(uPackage);
		isApplicableMatch.getAllContextElements().add(p2p__uPackage____target);
		uContainer__uPackage____package.setSrc(uContainer);
		uContainer__uPackage____package.setTrg(uPackage);
		isApplicableMatch.getAllContextElements().add(uContainer__uPackage____package);
		uPackage__uContainer____ownedType.setSrc(uPackage);
		uPackage__uContainer____ownedType.setTrg(uContainer);
		isApplicableMatch.getAllContextElements().add(uPackage__uContainer____ownedType);
		jContainer__jPackage____package.setSrc(jContainer);
		jContainer__jPackage____package.setTrg(jPackage);
		isApplicableMatch.getAllContextElements().add(jContainer__jPackage____package);
		jPackage__jContainer____ownedElements.setSrc(jPackage);
		jPackage__jContainer____ownedElements.setTrg(jContainer);
		isApplicableMatch.getAllContextElements().add(jPackage__jContainer____ownedElements);
		mMember__mAnon____anonymousClassDeclaration.setSrc(mMember);
		mMember__mAnon____anonymousClassDeclaration.setTrg(mAnon);
		isApplicableMatch.getAllContextElements().add(mMember__mAnon____anonymousClassDeclaration);
		jContainer__mMember____enumConstants.setSrc(jContainer);
		jContainer__mMember____enumConstants.setTrg(mMember);
		isApplicableMatch.getAllContextElements().add(jContainer__mMember____enumConstants);
		ne2ne__uContainer____target.setSrc(ne2ne);
		ne2ne__uContainer____target.setTrg(uContainer);
		isApplicableMatch.getAllContextElements().add(ne2ne__uContainer____target);
		p2p__jPackage____source.setName(p2p__jPackage____source_name_prime);
		ne2ne__jContainer____source.setName(ne2ne__jContainer____source_name_prime);
		p2p__uPackage____target.setName(p2p__uPackage____target_name_prime);
		uContainer__uPackage____package.setName(uContainer__uPackage____package_name_prime);
		uPackage__uContainer____ownedType.setName(uPackage__uContainer____ownedType_name_prime);
		jContainer__jPackage____package.setName(jContainer__jPackage____package_name_prime);
		jPackage__jContainer____ownedElements.setName(jPackage__jContainer____ownedElements_name_prime);
		mMember__mAnon____anonymousClassDeclaration.setName(mMember__mAnon____anonymousClassDeclaration_name_prime);
		jContainer__mMember____enumConstants.setName(jContainer__mMember____enumConstants_name_prime);
		ne2ne__uContainer____target.setName(ne2ne__uContainer____target_name_prime);
		return new Object[] { jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ne2ne, p2p, isApplicableMatch,
				p2p__jPackage____source, ne2ne__jContainer____source, p2p__uPackage____target,
				uContainer__uPackage____package, uPackage__uContainer____ownedType, jContainer__jPackage____package,
				jPackage__jContainer____ownedElements, mMember__mAnon____anonymousClassDeclaration,
				jContainer__mMember____enumConstants, ne2ne__uContainer____target };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_2_4_solveCSP_bindingFBBBBBBBBBB(
			AnonymousClass4EnumConstInPackage _this, IsApplicableMatch isApplicableMatch,
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon,
			Enumeration uContainer, EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p) {
		CSP _localVariable_0 = _this.isApplicable_solveCsp_FWD(isApplicableMatch, jPackage, uPackage, mAnon, uContainer,
				mMember, jContainer, ne2ne, p2p);
		CSP csp = _localVariable_0;
		if (csp != null) {
			return new Object[] { csp, _this, isApplicableMatch, jPackage, uPackage, mAnon, uContainer, mMember,
					jContainer, ne2ne, p2p };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_2_4_solveCSP_blackB(CSP csp) {
		return new Object[] { csp };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_2_4_solveCSP_bindingAndBlackFBBBBBBBBBB(
			AnonymousClass4EnumConstInPackage _this, IsApplicableMatch isApplicableMatch,
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon,
			Enumeration uContainer, EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_2_4_solveCSP_binding = pattern_AnonymousClass4EnumConstInPackage_2_4_solveCSP_bindingFBBBBBBBBBB(
				_this, isApplicableMatch, jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ne2ne, p2p);
		if (result_pattern_AnonymousClass4EnumConstInPackage_2_4_solveCSP_binding != null) {
			CSP csp = (CSP) result_pattern_AnonymousClass4EnumConstInPackage_2_4_solveCSP_binding[0];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_2_4_solveCSP_black = pattern_AnonymousClass4EnumConstInPackage_2_4_solveCSP_blackB(
					csp);
			if (result_pattern_AnonymousClass4EnumConstInPackage_2_4_solveCSP_black != null) {

				return new Object[] { csp, _this, isApplicableMatch, jPackage, uPackage, mAnon, uContainer, mMember,
						jContainer, ne2ne, p2p };
			}
		}
		return null;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_2_5_checkCSP_expressionFBB(
			AnonymousClass4EnumConstInPackage _this, CSP csp) {
		boolean _localVariable_0 = _this.isApplicable_checkCsp_FWD(csp);
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_2_6_addmatchtoruleresult_blackBB(
			IsApplicableRuleResult ruleresult, IsApplicableMatch isApplicableMatch) {
		return new Object[] { ruleresult, isApplicableMatch };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_2_6_addmatchtoruleresult_greenBB(
			IsApplicableRuleResult ruleresult, IsApplicableMatch isApplicableMatch) {
		ruleresult.getIsApplicableMatch().add(isApplicableMatch);
		boolean ruleresult_success_prime = Boolean.valueOf(true);
		String isApplicableMatch_ruleName_prime = "AnonymousClass4EnumConstInPackage";
		ruleresult.setSuccess(Boolean.valueOf(ruleresult_success_prime));
		isApplicableMatch.setRuleName(isApplicableMatch_ruleName_prime);
		return new Object[] { ruleresult, isApplicableMatch };
	}

	public static final IsApplicableRuleResult pattern_AnonymousClass4EnumConstInPackage_2_7_expressionFB(
			IsApplicableRuleResult ruleresult) {
		IsApplicableRuleResult _result = ruleresult;
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_10_1_initialbindings_blackBBBBB(
			AnonymousClass4EnumConstInPackage _this, Match match, org.eclipse.uml2.uml.Class feature,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer) {
		return new Object[] { _this, match, feature, uPackage, uContainer };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_10_2_SolveCSP_bindingFBBBBB(
			AnonymousClass4EnumConstInPackage _this, Match match, org.eclipse.uml2.uml.Class feature,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer) {
		CSP _localVariable_0 = _this.isAppropriate_solveCsp_BWD(match, feature, uPackage, uContainer);
		CSP csp = _localVariable_0;
		if (csp != null) {
			return new Object[] { csp, _this, match, feature, uPackage, uContainer };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_10_2_SolveCSP_blackB(CSP csp) {
		return new Object[] { csp };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_10_2_SolveCSP_bindingAndBlackFBBBBB(
			AnonymousClass4EnumConstInPackage _this, Match match, org.eclipse.uml2.uml.Class feature,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_10_2_SolveCSP_binding = pattern_AnonymousClass4EnumConstInPackage_10_2_SolveCSP_bindingFBBBBB(
				_this, match, feature, uPackage, uContainer);
		if (result_pattern_AnonymousClass4EnumConstInPackage_10_2_SolveCSP_binding != null) {
			CSP csp = (CSP) result_pattern_AnonymousClass4EnumConstInPackage_10_2_SolveCSP_binding[0];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_10_2_SolveCSP_black = pattern_AnonymousClass4EnumConstInPackage_10_2_SolveCSP_blackB(
					csp);
			if (result_pattern_AnonymousClass4EnumConstInPackage_10_2_SolveCSP_black != null) {

				return new Object[] { csp, _this, match, feature, uPackage, uContainer };
			}
		}
		return null;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_10_3_CheckCSP_expressionFBB(
			AnonymousClass4EnumConstInPackage _this, CSP csp) {
		boolean _localVariable_0 = _this.isAppropriate_checkCsp_BWD(csp);
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_10_4_collectelementstobetranslated_blackBBBB(
			Match match, org.eclipse.uml2.uml.Class feature, org.eclipse.uml2.uml.Package uPackage,
			Enumeration uContainer) {
		return new Object[] { match, feature, uPackage, uContainer };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_10_4_collectelementstobetranslated_greenBBBFF(
			Match match, org.eclipse.uml2.uml.Class feature, org.eclipse.uml2.uml.Package uPackage) {
		EMoflonEdge feature__uPackage____package = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge uPackage__feature____ownedType = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		match.getToBeTranslatedNodes().add(feature);
		String feature__uPackage____package_name_prime = "package";
		String uPackage__feature____ownedType_name_prime = "ownedType";
		feature__uPackage____package.setSrc(feature);
		feature__uPackage____package.setTrg(uPackage);
		match.getToBeTranslatedEdges().add(feature__uPackage____package);
		uPackage__feature____ownedType.setSrc(uPackage);
		uPackage__feature____ownedType.setTrg(feature);
		match.getToBeTranslatedEdges().add(uPackage__feature____ownedType);
		feature__uPackage____package.setName(feature__uPackage____package_name_prime);
		uPackage__feature____ownedType.setName(uPackage__feature____ownedType_name_prime);
		return new Object[] { match, feature, uPackage, feature__uPackage____package, uPackage__feature____ownedType };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_10_5_collectcontextelements_blackBBBB(
			Match match, org.eclipse.uml2.uml.Class feature, org.eclipse.uml2.uml.Package uPackage,
			Enumeration uContainer) {
		return new Object[] { match, feature, uPackage, uContainer };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_10_5_collectcontextelements_greenBBBFF(
			Match match, org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer) {
		EMoflonEdge uContainer__uPackage____package = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge uPackage__uContainer____ownedType = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		match.getContextNodes().add(uPackage);
		match.getContextNodes().add(uContainer);
		String uContainer__uPackage____package_name_prime = "package";
		String uPackage__uContainer____ownedType_name_prime = "ownedType";
		uContainer__uPackage____package.setSrc(uContainer);
		uContainer__uPackage____package.setTrg(uPackage);
		match.getContextEdges().add(uContainer__uPackage____package);
		uPackage__uContainer____ownedType.setSrc(uPackage);
		uPackage__uContainer____ownedType.setTrg(uContainer);
		match.getContextEdges().add(uPackage__uContainer____ownedType);
		uContainer__uPackage____package.setName(uContainer__uPackage____package_name_prime);
		uPackage__uContainer____ownedType.setName(uPackage__uContainer____ownedType_name_prime);
		return new Object[] { match, uPackage, uContainer, uContainer__uPackage____package,
				uPackage__uContainer____ownedType };
	}

	public static final void pattern_AnonymousClass4EnumConstInPackage_10_6_registerobjectstomatch_expressionBBBBB(
			AnonymousClass4EnumConstInPackage _this, Match match, org.eclipse.uml2.uml.Class feature,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer) {
		_this.registerObjectsToMatch_BWD(match, feature, uPackage, uContainer);

	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_10_7_expressionF() {
		boolean _result = Boolean.valueOf(true);
		return _result;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_10_8_expressionF() {
		boolean _result = Boolean.valueOf(false);
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_bindingFFFFFFFFB(
			IsApplicableMatch isApplicableMatch) {
		EObject _localVariable_0 = isApplicableMatch.getObject("feature");
		EObject _localVariable_1 = isApplicableMatch.getObject("jPackage");
		EObject _localVariable_2 = isApplicableMatch.getObject("uPackage");
		EObject _localVariable_3 = isApplicableMatch.getObject("uContainer");
		EObject _localVariable_4 = isApplicableMatch.getObject("mMember");
		EObject _localVariable_5 = isApplicableMatch.getObject("jContainer");
		EObject _localVariable_6 = isApplicableMatch.getObject("ne2ne");
		EObject _localVariable_7 = isApplicableMatch.getObject("p2p");
		EObject tmpFeature = _localVariable_0;
		EObject tmpJPackage = _localVariable_1;
		EObject tmpUPackage = _localVariable_2;
		EObject tmpUContainer = _localVariable_3;
		EObject tmpMMember = _localVariable_4;
		EObject tmpJContainer = _localVariable_5;
		EObject tmpNe2ne = _localVariable_6;
		EObject tmpP2p = _localVariable_7;
		if (tmpFeature instanceof org.eclipse.uml2.uml.Class) {
			org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) tmpFeature;
			if (tmpJPackage instanceof org.eclipse.modisco.java.Package) {
				org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) tmpJPackage;
				if (tmpUPackage instanceof org.eclipse.uml2.uml.Package) {
					org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) tmpUPackage;
					if (tmpUContainer instanceof Enumeration) {
						Enumeration uContainer = (Enumeration) tmpUContainer;
						if (tmpMMember instanceof EnumConstantDeclaration) {
							EnumConstantDeclaration mMember = (EnumConstantDeclaration) tmpMMember;
							if (tmpJContainer instanceof EnumDeclaration) {
								EnumDeclaration jContainer = (EnumDeclaration) tmpJContainer;
								if (tmpNe2ne instanceof ASTNode2Element) {
									ASTNode2Element ne2ne = (ASTNode2Element) tmpNe2ne;
									if (tmpP2p instanceof JavaPackage2UmlPackage) {
										JavaPackage2UmlPackage p2p = (JavaPackage2UmlPackage) tmpP2p;
										return new Object[] { feature, jPackage, uPackage, uContainer, mMember,
												jContainer, ne2ne, p2p, isApplicableMatch };
									}
								}
							}
						}
					}
				}
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_blackBBBBBBBBFBB(
			org.eclipse.uml2.uml.Class feature, org.eclipse.modisco.java.Package jPackage,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer, EnumConstantDeclaration mMember,
			EnumDeclaration jContainer, ASTNode2Element ne2ne, JavaPackage2UmlPackage p2p,
			AnonymousClass4EnumConstInPackage _this, IsApplicableMatch isApplicableMatch) {
		for (EObject tmpCsp : isApplicableMatch.getAttributeInfo()) {
			if (tmpCsp instanceof CSP) {
				CSP csp = (CSP) tmpCsp;
				return new Object[] { feature, jPackage, uPackage, uContainer, mMember, jContainer, ne2ne, p2p, csp,
						_this, isApplicableMatch };
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_bindingAndBlackFFFFFFFFFBB(
			AnonymousClass4EnumConstInPackage _this, IsApplicableMatch isApplicableMatch) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_binding = pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_bindingFFFFFFFFB(
				isApplicableMatch);
		if (result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_binding != null) {
			org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_binding[0];
			org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_binding[1];
			org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_binding[2];
			Enumeration uContainer = (Enumeration) result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_binding[3];
			EnumConstantDeclaration mMember = (EnumConstantDeclaration) result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_binding[4];
			EnumDeclaration jContainer = (EnumDeclaration) result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_binding[5];
			ASTNode2Element ne2ne = (ASTNode2Element) result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_binding[6];
			JavaPackage2UmlPackage p2p = (JavaPackage2UmlPackage) result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_binding[7];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_black = pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_blackBBBBBBBBFBB(
					feature, jPackage, uPackage, uContainer, mMember, jContainer, ne2ne, p2p, _this, isApplicableMatch);
			if (result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_black != null) {
				CSP csp = (CSP) result_pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_black[8];

				return new Object[] { feature, jPackage, uPackage, uContainer, mMember, jContainer, ne2ne, p2p, csp,
						_this, isApplicableMatch };
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_11_1_performtransformation_greenFBFB(
			org.eclipse.uml2.uml.Class feature, EnumConstantDeclaration mMember) {
		ASTNode2Element a2a = UmlFactory.eINSTANCE.createASTNode2Element();
		MAnonymousClass mAnon = ModiscoFactory.eINSTANCE.createMAnonymousClass();
		a2a.setTarget(feature);
		mMember.setAnonymousClassDeclaration(mAnon);
		a2a.setSource(mAnon);
		return new Object[] { a2a, feature, mAnon, mMember };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_11_2_collecttranslatedelements_blackBBB(
			ASTNode2Element a2a, org.eclipse.uml2.uml.Class feature, MAnonymousClass mAnon) {
		return new Object[] { a2a, feature, mAnon };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_11_2_collecttranslatedelements_greenFBBB(
			ASTNode2Element a2a, org.eclipse.uml2.uml.Class feature, MAnonymousClass mAnon) {
		PerformRuleResult ruleresult = RuntimeFactory.eINSTANCE.createPerformRuleResult();
		ruleresult.getCreatedLinkElements().add(a2a);
		ruleresult.getTranslatedElements().add(feature);
		ruleresult.getCreatedElements().add(mAnon);
		return new Object[] { ruleresult, a2a, feature, mAnon };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_11_3_bookkeepingforedges_blackBBBBBBBBBBB(
			PerformRuleResult ruleresult, EObject a2a, EObject feature, EObject jPackage, EObject uPackage,
			EObject mAnon, EObject uContainer, EObject mMember, EObject jContainer, EObject ne2ne, EObject p2p) {
		if (!a2a.equals(feature)) {
			if (!a2a.equals(jPackage)) {
				if (!a2a.equals(uPackage)) {
					if (!a2a.equals(mAnon)) {
						if (!a2a.equals(uContainer)) {
							if (!a2a.equals(mMember)) {
								if (!a2a.equals(jContainer)) {
									if (!a2a.equals(ne2ne)) {
										if (!a2a.equals(p2p)) {
											if (!feature.equals(jPackage)) {
												if (!feature.equals(uPackage)) {
													if (!feature.equals(mAnon)) {
														if (!feature.equals(uContainer)) {
															if (!feature.equals(mMember)) {
																if (!feature.equals(jContainer)) {
																	if (!feature.equals(ne2ne)) {
																		if (!feature.equals(p2p)) {
																			if (!jPackage.equals(uPackage)) {
																				if (!jPackage.equals(mAnon)) {
																					if (!jPackage.equals(uContainer)) {
																						if (!jPackage.equals(mMember)) {
																							if (!jPackage
																									.equals(ne2ne)) {
																								if (!jPackage
																										.equals(p2p)) {
																									if (!mAnon.equals(
																											uPackage)) {
																										if (!mAnon
																												.equals(uContainer)) {
																											if (!mAnon
																													.equals(mMember)) {
																												if (!mAnon
																														.equals(ne2ne)) {
																													if (!mAnon
																															.equals(p2p)) {
																														if (!uContainer
																																.equals(uPackage)) {
																															if (!mMember
																																	.equals(uPackage)) {
																																if (!mMember
																																		.equals(uContainer)) {
																																	if (!mMember
																																			.equals(ne2ne)) {
																																		if (!mMember
																																				.equals(p2p)) {
																																			if (!jContainer
																																					.equals(jPackage)) {
																																				if (!jContainer
																																						.equals(uPackage)) {
																																					if (!jContainer
																																							.equals(mAnon)) {
																																						if (!jContainer
																																								.equals(uContainer)) {
																																							if (!jContainer
																																									.equals(mMember)) {
																																								if (!jContainer
																																										.equals(ne2ne)) {
																																									if (!jContainer
																																											.equals(p2p)) {
																																										if (!ne2ne
																																												.equals(uPackage)) {
																																											if (!ne2ne
																																													.equals(uContainer)) {
																																												if (!ne2ne
																																														.equals(p2p)) {
																																													if (!p2p.equals(
																																															uPackage)) {
																																														if (!p2p.equals(
																																																uContainer)) {
																																															return new Object[] {
																																																	ruleresult,
																																																	a2a,
																																																	feature,
																																																	jPackage,
																																																	uPackage,
																																																	mAnon,
																																																	uContainer,
																																																	mMember,
																																																	jContainer,
																																																	ne2ne,
																																																	p2p };
																																														}
																																													}
																																												}
																																											}
																																										}
																																									}
																																								}
																																							}
																																						}
																																					}
																																				}
																																			}
																																		}
																																	}
																																}
																															}
																														}
																													}
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_11_3_bookkeepingforedges_greenBBBBBBFFFFF(
			PerformRuleResult ruleresult, EObject a2a, EObject feature, EObject uPackage, EObject mAnon,
			EObject mMember) {
		EMoflonEdge a2a__feature____target = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge feature__uPackage____package = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge uPackage__feature____ownedType = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge mMember__mAnon____anonymousClassDeclaration = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge a2a__mAnon____source = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		String ruleresult_ruleName_prime = "AnonymousClass4EnumConstInPackage";
		String a2a__feature____target_name_prime = "target";
		String feature__uPackage____package_name_prime = "package";
		String uPackage__feature____ownedType_name_prime = "ownedType";
		String mMember__mAnon____anonymousClassDeclaration_name_prime = "anonymousClassDeclaration";
		String a2a__mAnon____source_name_prime = "source";
		a2a__feature____target.setSrc(a2a);
		a2a__feature____target.setTrg(feature);
		ruleresult.getCreatedEdges().add(a2a__feature____target);
		feature__uPackage____package.setSrc(feature);
		feature__uPackage____package.setTrg(uPackage);
		ruleresult.getTranslatedEdges().add(feature__uPackage____package);
		uPackage__feature____ownedType.setSrc(uPackage);
		uPackage__feature____ownedType.setTrg(feature);
		ruleresult.getTranslatedEdges().add(uPackage__feature____ownedType);
		mMember__mAnon____anonymousClassDeclaration.setSrc(mMember);
		mMember__mAnon____anonymousClassDeclaration.setTrg(mAnon);
		ruleresult.getCreatedEdges().add(mMember__mAnon____anonymousClassDeclaration);
		a2a__mAnon____source.setSrc(a2a);
		a2a__mAnon____source.setTrg(mAnon);
		ruleresult.getCreatedEdges().add(a2a__mAnon____source);
		ruleresult.setRuleName(ruleresult_ruleName_prime);
		a2a__feature____target.setName(a2a__feature____target_name_prime);
		feature__uPackage____package.setName(feature__uPackage____package_name_prime);
		uPackage__feature____ownedType.setName(uPackage__feature____ownedType_name_prime);
		mMember__mAnon____anonymousClassDeclaration.setName(mMember__mAnon____anonymousClassDeclaration_name_prime);
		a2a__mAnon____source.setName(a2a__mAnon____source_name_prime);
		return new Object[] { ruleresult, a2a, feature, uPackage, mAnon, mMember, a2a__feature____target,
				feature__uPackage____package, uPackage__feature____ownedType,
				mMember__mAnon____anonymousClassDeclaration, a2a__mAnon____source };
	}

	public static final void pattern_AnonymousClass4EnumConstInPackage_11_5_registerobjects_expressionBBBBBBBBBBBB(
			AnonymousClass4EnumConstInPackage _this, PerformRuleResult ruleresult, EObject a2a, EObject feature,
			EObject jPackage, EObject uPackage, EObject mAnon, EObject uContainer, EObject mMember, EObject jContainer,
			EObject ne2ne, EObject p2p) {
		_this.registerObjects_BWD(ruleresult, a2a, feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer,
				ne2ne, p2p);

	}

	public static final PerformRuleResult pattern_AnonymousClass4EnumConstInPackage_11_6_expressionFB(
			PerformRuleResult ruleresult) {
		PerformRuleResult _result = ruleresult;
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_bindingFB(
			AnonymousClass4EnumConstInPackage _this) {
		EClass _localVariable_0 = _this.eClass();
		EClass eClass = _localVariable_0;
		if (eClass != null) {
			return new Object[] { eClass, _this };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_blackFBB(
			EClass eClass, AnonymousClass4EnumConstInPackage _this) {
		for (EOperation performOperation : eClass.getEOperations()) {
			String performOperation_name = performOperation.getName();
			if (performOperation_name.equals("perform_BWD")) {
				return new Object[] { performOperation, eClass, _this };
			}

		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_bindingAndBlackFFB(
			AnonymousClass4EnumConstInPackage _this) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_binding = pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_bindingFB(
				_this);
		if (result_pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_binding != null) {
			EClass eClass = (EClass) result_pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_binding[0];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_black = pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_blackFBB(
					eClass, _this);
			if (result_pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_black != null) {
				EOperation performOperation = (EOperation) result_pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_black[0];

				return new Object[] { performOperation, eClass, _this };
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_12_1_preparereturnvalue_greenBF(
			EOperation performOperation) {
		IsApplicableRuleResult ruleresult = RuntimeFactory.eINSTANCE.createIsApplicableRuleResult();
		boolean ruleresult_success_prime = Boolean.valueOf(false);
		String ruleresult_rule_prime = "AnonymousClass4EnumConstInPackage";
		ruleresult.setPerformOperation(performOperation);
		ruleresult.setSuccess(Boolean.valueOf(ruleresult_success_prime));
		ruleresult.setRule(ruleresult_rule_prime);
		return new Object[] { performOperation, ruleresult };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_12_2_corematch_bindingFFFB(Match match) {
		EObject _localVariable_0 = match.getObject("feature");
		EObject _localVariable_1 = match.getObject("uPackage");
		EObject _localVariable_2 = match.getObject("uContainer");
		EObject tmpFeature = _localVariable_0;
		EObject tmpUPackage = _localVariable_1;
		EObject tmpUContainer = _localVariable_2;
		if (tmpFeature instanceof org.eclipse.uml2.uml.Class) {
			org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) tmpFeature;
			if (tmpUPackage instanceof org.eclipse.uml2.uml.Package) {
				org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) tmpUPackage;
				if (tmpUContainer instanceof Enumeration) {
					Enumeration uContainer = (Enumeration) tmpUContainer;
					return new Object[] { feature, uPackage, uContainer, match };
				}
			}
		}
		return null;
	}

	public static final Iterable<Object[]> pattern_AnonymousClass4EnumConstInPackage_12_2_corematch_blackBFBBFFFB(
			org.eclipse.uml2.uml.Class feature, org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer,
			Match match) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		for (JavaPackage2UmlPackage p2p : org.moflon.core.utilities.eMoflonEMFUtil.getOppositeReferenceTyped(uPackage,
				JavaPackage2UmlPackage.class, "target")) {
			org.eclipse.modisco.java.Package jPackage = p2p.getSource();
			if (jPackage != null) {
				for (ASTNode2Element ne2ne : org.moflon.core.utilities.eMoflonEMFUtil
						.getOppositeReferenceTyped(uContainer, ASTNode2Element.class, "target")) {
					ASTNode tmpJContainer = ne2ne.getSource();
					if (tmpJContainer instanceof EnumDeclaration) {
						EnumDeclaration jContainer = (EnumDeclaration) tmpJContainer;
						_result.add(new Object[] { feature, jPackage, uPackage, uContainer, jContainer, ne2ne, p2p,
								match });
					}

				}
			}

		}
		return _result;
	}

	public static final Iterable<Object[]> pattern_AnonymousClass4EnumConstInPackage_12_3_findcontext_blackBBBBFBBB(
			org.eclipse.uml2.uml.Class feature, org.eclipse.modisco.java.Package jPackage,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer, EnumDeclaration jContainer,
			ASTNode2Element ne2ne, JavaPackage2UmlPackage p2p) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		if (jPackage.equals(p2p.getSource())) {
			if (jContainer.equals(ne2ne.getSource())) {
				if (uPackage.equals(p2p.getTarget())) {
					if (uPackage.equals(feature.getPackage())) {
						if (uPackage.equals(uContainer.getPackage())) {
							if (jPackage.equals(jContainer.getPackage())) {
								if (uContainer.equals(ne2ne.getTarget())) {
									for (EnumConstantDeclaration mMember : jContainer.getEnumConstants()) {
										_result.add(new Object[] { feature, jPackage, uPackage, uContainer, mMember,
												jContainer, ne2ne, p2p });
									}
								}
							}
						}
					}
				}
			}
		}
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_12_3_findcontext_greenBBBBBBBBFFFFFFFFFFFF(
			org.eclipse.uml2.uml.Class feature, org.eclipse.modisco.java.Package jPackage,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer, EnumConstantDeclaration mMember,
			EnumDeclaration jContainer, ASTNode2Element ne2ne, JavaPackage2UmlPackage p2p) {
		IsApplicableMatch isApplicableMatch = RuntimeFactory.eINSTANCE.createIsApplicableMatch();
		EMoflonEdge p2p__jPackage____source = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge ne2ne__jContainer____source = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge p2p__uPackage____target = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge feature__uPackage____package = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge uPackage__feature____ownedType = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge uContainer__uPackage____package = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge uPackage__uContainer____ownedType = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge jContainer__jPackage____package = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge jPackage__jContainer____ownedElements = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge jContainer__mMember____enumConstants = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge ne2ne__uContainer____target = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		String p2p__jPackage____source_name_prime = "source";
		String ne2ne__jContainer____source_name_prime = "source";
		String p2p__uPackage____target_name_prime = "target";
		String feature__uPackage____package_name_prime = "package";
		String uPackage__feature____ownedType_name_prime = "ownedType";
		String uContainer__uPackage____package_name_prime = "package";
		String uPackage__uContainer____ownedType_name_prime = "ownedType";
		String jContainer__jPackage____package_name_prime = "package";
		String jPackage__jContainer____ownedElements_name_prime = "ownedElements";
		String jContainer__mMember____enumConstants_name_prime = "enumConstants";
		String ne2ne__uContainer____target_name_prime = "target";
		isApplicableMatch.getAllContextElements().add(feature);
		isApplicableMatch.getAllContextElements().add(jPackage);
		isApplicableMatch.getAllContextElements().add(uPackage);
		isApplicableMatch.getAllContextElements().add(uContainer);
		isApplicableMatch.getAllContextElements().add(mMember);
		isApplicableMatch.getAllContextElements().add(jContainer);
		isApplicableMatch.getAllContextElements().add(ne2ne);
		isApplicableMatch.getAllContextElements().add(p2p);
		p2p__jPackage____source.setSrc(p2p);
		p2p__jPackage____source.setTrg(jPackage);
		isApplicableMatch.getAllContextElements().add(p2p__jPackage____source);
		ne2ne__jContainer____source.setSrc(ne2ne);
		ne2ne__jContainer____source.setTrg(jContainer);
		isApplicableMatch.getAllContextElements().add(ne2ne__jContainer____source);
		p2p__uPackage____target.setSrc(p2p);
		p2p__uPackage____target.setTrg(uPackage);
		isApplicableMatch.getAllContextElements().add(p2p__uPackage____target);
		feature__uPackage____package.setSrc(feature);
		feature__uPackage____package.setTrg(uPackage);
		isApplicableMatch.getAllContextElements().add(feature__uPackage____package);
		uPackage__feature____ownedType.setSrc(uPackage);
		uPackage__feature____ownedType.setTrg(feature);
		isApplicableMatch.getAllContextElements().add(uPackage__feature____ownedType);
		uContainer__uPackage____package.setSrc(uContainer);
		uContainer__uPackage____package.setTrg(uPackage);
		isApplicableMatch.getAllContextElements().add(uContainer__uPackage____package);
		uPackage__uContainer____ownedType.setSrc(uPackage);
		uPackage__uContainer____ownedType.setTrg(uContainer);
		isApplicableMatch.getAllContextElements().add(uPackage__uContainer____ownedType);
		jContainer__jPackage____package.setSrc(jContainer);
		jContainer__jPackage____package.setTrg(jPackage);
		isApplicableMatch.getAllContextElements().add(jContainer__jPackage____package);
		jPackage__jContainer____ownedElements.setSrc(jPackage);
		jPackage__jContainer____ownedElements.setTrg(jContainer);
		isApplicableMatch.getAllContextElements().add(jPackage__jContainer____ownedElements);
		jContainer__mMember____enumConstants.setSrc(jContainer);
		jContainer__mMember____enumConstants.setTrg(mMember);
		isApplicableMatch.getAllContextElements().add(jContainer__mMember____enumConstants);
		ne2ne__uContainer____target.setSrc(ne2ne);
		ne2ne__uContainer____target.setTrg(uContainer);
		isApplicableMatch.getAllContextElements().add(ne2ne__uContainer____target);
		p2p__jPackage____source.setName(p2p__jPackage____source_name_prime);
		ne2ne__jContainer____source.setName(ne2ne__jContainer____source_name_prime);
		p2p__uPackage____target.setName(p2p__uPackage____target_name_prime);
		feature__uPackage____package.setName(feature__uPackage____package_name_prime);
		uPackage__feature____ownedType.setName(uPackage__feature____ownedType_name_prime);
		uContainer__uPackage____package.setName(uContainer__uPackage____package_name_prime);
		uPackage__uContainer____ownedType.setName(uPackage__uContainer____ownedType_name_prime);
		jContainer__jPackage____package.setName(jContainer__jPackage____package_name_prime);
		jPackage__jContainer____ownedElements.setName(jPackage__jContainer____ownedElements_name_prime);
		jContainer__mMember____enumConstants.setName(jContainer__mMember____enumConstants_name_prime);
		ne2ne__uContainer____target.setName(ne2ne__uContainer____target_name_prime);
		return new Object[] { feature, jPackage, uPackage, uContainer, mMember, jContainer, ne2ne, p2p,
				isApplicableMatch, p2p__jPackage____source, ne2ne__jContainer____source, p2p__uPackage____target,
				feature__uPackage____package, uPackage__feature____ownedType, uContainer__uPackage____package,
				uPackage__uContainer____ownedType, jContainer__jPackage____package,
				jPackage__jContainer____ownedElements, jContainer__mMember____enumConstants,
				ne2ne__uContainer____target };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_12_4_solveCSP_bindingFBBBBBBBBBB(
			AnonymousClass4EnumConstInPackage _this, IsApplicableMatch isApplicableMatch,
			org.eclipse.uml2.uml.Class feature, org.eclipse.modisco.java.Package jPackage,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer, EnumConstantDeclaration mMember,
			EnumDeclaration jContainer, ASTNode2Element ne2ne, JavaPackage2UmlPackage p2p) {
		CSP _localVariable_0 = _this.isApplicable_solveCsp_BWD(isApplicableMatch, feature, jPackage, uPackage,
				uContainer, mMember, jContainer, ne2ne, p2p);
		CSP csp = _localVariable_0;
		if (csp != null) {
			return new Object[] { csp, _this, isApplicableMatch, feature, jPackage, uPackage, uContainer, mMember,
					jContainer, ne2ne, p2p };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_12_4_solveCSP_blackB(CSP csp) {
		return new Object[] { csp };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_12_4_solveCSP_bindingAndBlackFBBBBBBBBBB(
			AnonymousClass4EnumConstInPackage _this, IsApplicableMatch isApplicableMatch,
			org.eclipse.uml2.uml.Class feature, org.eclipse.modisco.java.Package jPackage,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer, EnumConstantDeclaration mMember,
			EnumDeclaration jContainer, ASTNode2Element ne2ne, JavaPackage2UmlPackage p2p) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_12_4_solveCSP_binding = pattern_AnonymousClass4EnumConstInPackage_12_4_solveCSP_bindingFBBBBBBBBBB(
				_this, isApplicableMatch, feature, jPackage, uPackage, uContainer, mMember, jContainer, ne2ne, p2p);
		if (result_pattern_AnonymousClass4EnumConstInPackage_12_4_solveCSP_binding != null) {
			CSP csp = (CSP) result_pattern_AnonymousClass4EnumConstInPackage_12_4_solveCSP_binding[0];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_12_4_solveCSP_black = pattern_AnonymousClass4EnumConstInPackage_12_4_solveCSP_blackB(
					csp);
			if (result_pattern_AnonymousClass4EnumConstInPackage_12_4_solveCSP_black != null) {

				return new Object[] { csp, _this, isApplicableMatch, feature, jPackage, uPackage, uContainer, mMember,
						jContainer, ne2ne, p2p };
			}
		}
		return null;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_12_5_checkCSP_expressionFBB(
			AnonymousClass4EnumConstInPackage _this, CSP csp) {
		boolean _localVariable_0 = _this.isApplicable_checkCsp_BWD(csp);
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_12_6_addmatchtoruleresult_blackBB(
			IsApplicableRuleResult ruleresult, IsApplicableMatch isApplicableMatch) {
		return new Object[] { ruleresult, isApplicableMatch };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_12_6_addmatchtoruleresult_greenBB(
			IsApplicableRuleResult ruleresult, IsApplicableMatch isApplicableMatch) {
		ruleresult.getIsApplicableMatch().add(isApplicableMatch);
		boolean ruleresult_success_prime = Boolean.valueOf(true);
		String isApplicableMatch_ruleName_prime = "AnonymousClass4EnumConstInPackage";
		ruleresult.setSuccess(Boolean.valueOf(ruleresult_success_prime));
		isApplicableMatch.setRuleName(isApplicableMatch_ruleName_prime);
		return new Object[] { ruleresult, isApplicableMatch };
	}

	public static final IsApplicableRuleResult pattern_AnonymousClass4EnumConstInPackage_12_7_expressionFB(
			IsApplicableRuleResult ruleresult) {
		IsApplicableRuleResult _result = ruleresult;
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_bindingFB(
			AnonymousClass4EnumConstInPackage _this) {
		EClass _localVariable_0 = _this.eClass();
		EClass __eClass = _localVariable_0;
		if (__eClass != null) {
			return new Object[] { __eClass, _this };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_blackFBBF(
			EClass __eClass, AnonymousClass4EnumConstInPackage _this) {
		for (EOperation __performOperation : __eClass.getEOperations()) {
			String __performOperation_name = __performOperation.getName();
			if (__performOperation_name.equals("isApplicable_BWD")) {
				for (EOperation isApplicableCC : __eClass.getEOperations()) {
					if (!__performOperation.equals(isApplicableCC)) {
						String isApplicableCC_name = isApplicableCC.getName();
						if (isApplicableCC_name.equals("isApplicable_CC")) {
							return new Object[] { __performOperation, __eClass, _this, isApplicableCC };
						}

					}
				}
			}

		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_bindingAndBlackFFBF(
			AnonymousClass4EnumConstInPackage _this) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_binding = pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_bindingFB(
				_this);
		if (result_pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_binding != null) {
			EClass __eClass = (EClass) result_pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_binding[0];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_black = pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_blackFBBF(
					__eClass, _this);
			if (result_pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_black != null) {
				EOperation __performOperation = (EOperation) result_pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_black[0];
				EOperation isApplicableCC = (EOperation) result_pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_black[3];

				return new Object[] { __performOperation, __eClass, _this, isApplicableCC };
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_20_1_preparereturnvalue_greenF() {
		EObjectContainer __result = RuntimeFactory.eINSTANCE.createEObjectContainer();
		return new Object[] { __result };
	}

	public static final Iterable<Object[]> pattern_AnonymousClass4EnumConstInPackage_20_2_testcorematchandDECs_blackFFFB(
			EMoflonEdge _edge_package) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		EObject tmpFeature = _edge_package.getSrc();
		if (tmpFeature instanceof org.eclipse.uml2.uml.Class) {
			org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) tmpFeature;
			EObject tmpUPackage = _edge_package.getTrg();
			if (tmpUPackage instanceof org.eclipse.uml2.uml.Package) {
				org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) tmpUPackage;
				if (uPackage.equals(feature.getPackage())) {
					for (Type tmpUContainer : uPackage.getOwnedTypes()) {
						if (tmpUContainer instanceof Enumeration) {
							Enumeration uContainer = (Enumeration) tmpUContainer;
							_result.add(new Object[] { feature, uPackage, uContainer, _edge_package });
						}
					}
				}
			}

		}

		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_20_2_testcorematchandDECs_greenFB(
			EClass __eClass) {
		Match match = RuntimeFactory.eINSTANCE.createMatch();
		String __eClass_name = __eClass.getName();
		String match_ruleName_prime = __eClass_name;
		match.setRuleName(match_ruleName_prime);
		return new Object[] { match, __eClass };

	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_20_3_bookkeepingwithgenericisAppropriatemethod_expressionFBBBBB(
			AnonymousClass4EnumConstInPackage _this, Match match, org.eclipse.uml2.uml.Class feature,
			org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer) {
		boolean _localVariable_0 = _this.isAppropriate_BWD(match, feature, uPackage, uContainer);
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_20_4_Ensurethatthecorrecttypesofelementsarematched_expressionFBB(
			AnonymousClass4EnumConstInPackage _this, Match match) {
		boolean _localVariable_0 = _this.checkTypes_BWD(match);
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_20_5_Addmatchtoruleresult_blackBBBB(
			Match match, EOperation __performOperation, EObjectContainer __result, EOperation isApplicableCC) {
		if (!__performOperation.equals(isApplicableCC)) {
			return new Object[] { match, __performOperation, __result, isApplicableCC };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_20_5_Addmatchtoruleresult_greenBBBB(
			Match match, EOperation __performOperation, EObjectContainer __result, EOperation isApplicableCC) {
		__result.getContents().add(match);
		match.setIsApplicableOperation(__performOperation);
		match.setIsApplicableCCOperation(isApplicableCC);
		return new Object[] { match, __performOperation, __result, isApplicableCC };
	}

	public static final EObjectContainer pattern_AnonymousClass4EnumConstInPackage_20_6_expressionFB(
			EObjectContainer __result) {
		EObjectContainer _result = __result;
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_bindingFB(
			AnonymousClass4EnumConstInPackage _this) {
		EClass _localVariable_0 = _this.eClass();
		EClass __eClass = _localVariable_0;
		if (__eClass != null) {
			return new Object[] { __eClass, _this };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_blackFBBF(
			EClass __eClass, AnonymousClass4EnumConstInPackage _this) {
		for (EOperation __performOperation : __eClass.getEOperations()) {
			String __performOperation_name = __performOperation.getName();
			if (__performOperation_name.equals("isApplicable_FWD")) {
				for (EOperation isApplicableCC : __eClass.getEOperations()) {
					if (!__performOperation.equals(isApplicableCC)) {
						String isApplicableCC_name = isApplicableCC.getName();
						if (isApplicableCC_name.equals("isApplicable_CC")) {
							return new Object[] { __performOperation, __eClass, _this, isApplicableCC };
						}

					}
				}
			}

		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_bindingAndBlackFFBF(
			AnonymousClass4EnumConstInPackage _this) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_binding = pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_bindingFB(
				_this);
		if (result_pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_binding != null) {
			EClass __eClass = (EClass) result_pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_binding[0];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_black = pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_blackFBBF(
					__eClass, _this);
			if (result_pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_black != null) {
				EOperation __performOperation = (EOperation) result_pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_black[0];
				EOperation isApplicableCC = (EOperation) result_pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_black[3];

				return new Object[] { __performOperation, __eClass, _this, isApplicableCC };
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_21_1_preparereturnvalue_greenF() {
		EObjectContainer __result = RuntimeFactory.eINSTANCE.createEObjectContainer();
		return new Object[] { __result };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_21_2_testcorematchandDECs_black_nac_0B(
			MAnonymousClass mAnon) {
		ClassInstanceCreation __DEC_mAnon_anonymousClassDeclaration_65573 = mAnon.getClassInstanceCreation();
		if (__DEC_mAnon_anonymousClassDeclaration_65573 != null) {
			return new Object[] { mAnon };
		}

		return null;
	}

	public static final Iterable<Object[]> pattern_AnonymousClass4EnumConstInPackage_21_2_testcorematchandDECs_blackFFFFB(
			EMoflonEdge _edge_anonymousClassDeclaration) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		EObject tmpMMember = _edge_anonymousClassDeclaration.getSrc();
		if (tmpMMember instanceof EnumConstantDeclaration) {
			EnumConstantDeclaration mMember = (EnumConstantDeclaration) tmpMMember;
			EObject tmpMAnon = _edge_anonymousClassDeclaration.getTrg();
			if (tmpMAnon instanceof MAnonymousClass) {
				MAnonymousClass mAnon = (MAnonymousClass) tmpMAnon;
				if (mAnon.equals(mMember.getAnonymousClassDeclaration())) {
					if (pattern_AnonymousClass4EnumConstInPackage_21_2_testcorematchandDECs_black_nac_0B(
							mAnon) == null) {
						for (EnumDeclaration jContainer : org.moflon.core.utilities.eMoflonEMFUtil
								.getOppositeReferenceTyped(mMember, EnumDeclaration.class, "enumConstants")) {
							org.eclipse.modisco.java.Package jPackage = jContainer.getPackage();
							if (jPackage != null) {
								_result.add(new Object[] { jPackage, mAnon, mMember, jContainer,
										_edge_anonymousClassDeclaration });
							}

						}
					}
				}
			}

		}

		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_21_2_testcorematchandDECs_greenFB(
			EClass __eClass) {
		Match match = RuntimeFactory.eINSTANCE.createMatch();
		String __eClass_name = __eClass.getName();
		String match_ruleName_prime = __eClass_name;
		match.setRuleName(match_ruleName_prime);
		return new Object[] { match, __eClass };

	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_21_3_bookkeepingwithgenericisAppropriatemethod_expressionFBBBBBB(
			AnonymousClass4EnumConstInPackage _this, Match match, org.eclipse.modisco.java.Package jPackage,
			MAnonymousClass mAnon, EnumConstantDeclaration mMember, EnumDeclaration jContainer) {
		boolean _localVariable_0 = _this.isAppropriate_FWD(match, jPackage, mAnon, mMember, jContainer);
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_21_4_Ensurethatthecorrecttypesofelementsarematched_expressionFBB(
			AnonymousClass4EnumConstInPackage _this, Match match) {
		boolean _localVariable_0 = _this.checkTypes_FWD(match);
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_21_5_Addmatchtoruleresult_blackBBBB(
			Match match, EOperation __performOperation, EObjectContainer __result, EOperation isApplicableCC) {
		if (!__performOperation.equals(isApplicableCC)) {
			return new Object[] { match, __performOperation, __result, isApplicableCC };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_21_5_Addmatchtoruleresult_greenBBBB(
			Match match, EOperation __performOperation, EObjectContainer __result, EOperation isApplicableCC) {
		__result.getContents().add(match);
		match.setIsApplicableOperation(__performOperation);
		match.setIsApplicableCCOperation(isApplicableCC);
		return new Object[] { match, __performOperation, __result, isApplicableCC };
	}

	public static final EObjectContainer pattern_AnonymousClass4EnumConstInPackage_21_6_expressionFB(
			EObjectContainer __result) {
		EObjectContainer _result = __result;
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_1_prepare_blackB(
			AnonymousClass4EnumConstInPackage _this) {
		return new Object[] { _this };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_1_prepare_greenF() {
		IsApplicableRuleResult result = RuntimeFactory.eINSTANCE.createIsApplicableRuleResult();
		return new Object[] { result };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_bindingFFFFFFFBB(
			Match targetMatch, Match sourceMatch) {
		EObject _localVariable_0 = targetMatch.getObject("feature");
		EObject _localVariable_1 = sourceMatch.getObject("jPackage");
		EObject _localVariable_2 = targetMatch.getObject("uPackage");
		EObject _localVariable_3 = sourceMatch.getObject("mAnon");
		EObject _localVariable_4 = targetMatch.getObject("uContainer");
		EObject _localVariable_5 = sourceMatch.getObject("mMember");
		EObject _localVariable_6 = sourceMatch.getObject("jContainer");
		EObject tmpFeature = _localVariable_0;
		EObject tmpJPackage = _localVariable_1;
		EObject tmpUPackage = _localVariable_2;
		EObject tmpMAnon = _localVariable_3;
		EObject tmpUContainer = _localVariable_4;
		EObject tmpMMember = _localVariable_5;
		EObject tmpJContainer = _localVariable_6;
		if (tmpFeature instanceof org.eclipse.uml2.uml.Class) {
			org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) tmpFeature;
			if (tmpJPackage instanceof org.eclipse.modisco.java.Package) {
				org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) tmpJPackage;
				if (tmpUPackage instanceof org.eclipse.uml2.uml.Package) {
					org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) tmpUPackage;
					if (tmpMAnon instanceof MAnonymousClass) {
						MAnonymousClass mAnon = (MAnonymousClass) tmpMAnon;
						if (tmpUContainer instanceof Enumeration) {
							Enumeration uContainer = (Enumeration) tmpUContainer;
							if (tmpMMember instanceof EnumConstantDeclaration) {
								EnumConstantDeclaration mMember = (EnumConstantDeclaration) tmpMMember;
								if (tmpJContainer instanceof EnumDeclaration) {
									EnumDeclaration jContainer = (EnumDeclaration) tmpJContainer;
									return new Object[] { feature, jPackage, uPackage, mAnon, uContainer, mMember,
											jContainer, targetMatch, sourceMatch };
								}
							}
						}
					}
				}
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_blackBBBBBBBBB(
			org.eclipse.uml2.uml.Class feature, org.eclipse.modisco.java.Package jPackage,
			org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon, Enumeration uContainer,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer, Match sourceMatch, Match targetMatch) {
		if (!sourceMatch.equals(targetMatch)) {
			return new Object[] { feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer, sourceMatch,
					targetMatch };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_bindingAndBlackFFFFFFFBB(
			Match sourceMatch, Match targetMatch) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_binding = pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_bindingFFFFFFFBB(
				targetMatch, sourceMatch);
		if (result_pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_binding != null) {
			org.eclipse.uml2.uml.Class feature = (org.eclipse.uml2.uml.Class) result_pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_binding[0];
			org.eclipse.modisco.java.Package jPackage = (org.eclipse.modisco.java.Package) result_pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_binding[1];
			org.eclipse.uml2.uml.Package uPackage = (org.eclipse.uml2.uml.Package) result_pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_binding[2];
			MAnonymousClass mAnon = (MAnonymousClass) result_pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_binding[3];
			Enumeration uContainer = (Enumeration) result_pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_binding[4];
			EnumConstantDeclaration mMember = (EnumConstantDeclaration) result_pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_binding[5];
			EnumDeclaration jContainer = (EnumDeclaration) result_pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_binding[6];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_black = pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_blackBBBBBBBBB(
					feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer, sourceMatch, targetMatch);
			if (result_pattern_AnonymousClass4EnumConstInPackage_24_2_matchsrctrgcontext_black != null) {

				return new Object[] { feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer, sourceMatch,
						targetMatch };
			}
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_3_solvecsp_bindingFBBBBBBBBBB(
			AnonymousClass4EnumConstInPackage _this, org.eclipse.uml2.uml.Class feature,
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon,
			Enumeration uContainer, EnumConstantDeclaration mMember, EnumDeclaration jContainer, Match sourceMatch,
			Match targetMatch) {
		CSP _localVariable_7 = _this.isApplicable_solveCsp_CC(feature, jPackage, uPackage, mAnon, uContainer, mMember,
				jContainer, sourceMatch, targetMatch);
		CSP csp = _localVariable_7;
		if (csp != null) {
			return new Object[] { csp, _this, feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer,
					sourceMatch, targetMatch };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_3_solvecsp_blackB(CSP csp) {
		return new Object[] { csp };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_3_solvecsp_bindingAndBlackFBBBBBBBBBB(
			AnonymousClass4EnumConstInPackage _this, org.eclipse.uml2.uml.Class feature,
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon,
			Enumeration uContainer, EnumConstantDeclaration mMember, EnumDeclaration jContainer, Match sourceMatch,
			Match targetMatch) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_24_3_solvecsp_binding = pattern_AnonymousClass4EnumConstInPackage_24_3_solvecsp_bindingFBBBBBBBBBB(
				_this, feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer, sourceMatch, targetMatch);
		if (result_pattern_AnonymousClass4EnumConstInPackage_24_3_solvecsp_binding != null) {
			CSP csp = (CSP) result_pattern_AnonymousClass4EnumConstInPackage_24_3_solvecsp_binding[0];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_24_3_solvecsp_black = pattern_AnonymousClass4EnumConstInPackage_24_3_solvecsp_blackB(
					csp);
			if (result_pattern_AnonymousClass4EnumConstInPackage_24_3_solvecsp_black != null) {

				return new Object[] { csp, _this, feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer,
						sourceMatch, targetMatch };
			}
		}
		return null;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_24_4_checkCSP_expressionFB(CSP csp) {
		boolean _localVariable_0 = csp.check();
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

	public static final Iterable<Object[]> pattern_AnonymousClass4EnumConstInPackage_24_5_matchcorrcontext_blackBBBBFFBB(
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer,
			EnumDeclaration jContainer, Match sourceMatch, Match targetMatch) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		if (!sourceMatch.equals(targetMatch)) {
			for (JavaPackage2UmlPackage p2p : org.moflon.core.utilities.eMoflonEMFUtil
					.getOppositeReferenceTyped(jPackage, JavaPackage2UmlPackage.class, "source")) {
				if (uPackage.equals(p2p.getTarget())) {
					for (ASTNode2Element ne2ne : org.moflon.core.utilities.eMoflonEMFUtil
							.getOppositeReferenceTyped(jContainer, ASTNode2Element.class, "source")) {
						if (uContainer.equals(ne2ne.getTarget())) {
							_result.add(new Object[] { jPackage, uPackage, uContainer, jContainer, ne2ne, p2p,
									sourceMatch, targetMatch });
						}
					}
				}
			}
		}
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_5_matchcorrcontext_greenBBBBF(
			ASTNode2Element ne2ne, JavaPackage2UmlPackage p2p, Match sourceMatch, Match targetMatch) {
		CCMatch ccMatch = RuntimeFactory.eINSTANCE.createCCMatch();
		String ccMatch_ruleName_prime = "AnonymousClass4EnumConstInPackage";
		ccMatch.setSourceMatch(sourceMatch);
		ccMatch.setTargetMatch(targetMatch);
		ccMatch.getAllContextElements().add(ne2ne);
		ccMatch.getAllContextElements().add(p2p);
		ccMatch.setRuleName(ccMatch_ruleName_prime);
		return new Object[] { ne2ne, p2p, sourceMatch, targetMatch, ccMatch };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_6_createcorrespondence_blackBBBBBBBB(
			org.eclipse.uml2.uml.Class feature, org.eclipse.modisco.java.Package jPackage,
			org.eclipse.uml2.uml.Package uPackage, MAnonymousClass mAnon, Enumeration uContainer,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer, CCMatch ccMatch) {
		return new Object[] { feature, jPackage, uPackage, mAnon, uContainer, mMember, jContainer, ccMatch };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_6_createcorrespondence_greenFBBB(
			org.eclipse.uml2.uml.Class feature, MAnonymousClass mAnon, CCMatch ccMatch) {
		ASTNode2Element a2a = UmlFactory.eINSTANCE.createASTNode2Element();
		a2a.setTarget(feature);
		a2a.setSource(mAnon);
		ccMatch.getCreateCorr().add(a2a);
		return new Object[] { a2a, feature, mAnon, ccMatch };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_7_addtoreturnedresult_blackBB(
			IsApplicableRuleResult result, CCMatch ccMatch) {
		return new Object[] { result, ccMatch };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_24_7_addtoreturnedresult_greenBB(
			IsApplicableRuleResult result, CCMatch ccMatch) {
		result.getIsApplicableMatch().add(ccMatch);
		boolean result_success_prime = Boolean.valueOf(true);
		String ccMatch_ruleName_prime = "AnonymousClass4EnumConstInPackage";
		result.setSuccess(Boolean.valueOf(result_success_prime));
		ccMatch.setRuleName(ccMatch_ruleName_prime);
		return new Object[] { result, ccMatch };
	}

	public static final IsApplicableRuleResult pattern_AnonymousClass4EnumConstInPackage_24_8_expressionFB(
			IsApplicableRuleResult result) {
		IsApplicableRuleResult _result = result;
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_27_1_matchtggpattern_black_nac_0B(
			MAnonymousClass mAnon) {
		ClassInstanceCreation __DEC_mAnon_anonymousClassDeclaration_779794 = mAnon.getClassInstanceCreation();
		if (__DEC_mAnon_anonymousClassDeclaration_779794 != null) {
			return new Object[] { mAnon };
		}

		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_27_1_matchtggpattern_blackBBBB(
			org.eclipse.modisco.java.Package jPackage, MAnonymousClass mAnon, EnumConstantDeclaration mMember,
			EnumDeclaration jContainer) {
		if (jPackage.equals(jContainer.getPackage())) {
			if (mAnon.equals(mMember.getAnonymousClassDeclaration())) {
				if (jContainer.getEnumConstants().contains(mMember)) {
					if (pattern_AnonymousClass4EnumConstInPackage_27_1_matchtggpattern_black_nac_0B(mAnon) == null) {
						return new Object[] { jPackage, mAnon, mMember, jContainer };
					}
				}
			}
		}
		return null;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_27_2_expressionF() {
		boolean _result = Boolean.valueOf(true);
		return _result;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_27_3_expressionF() {
		boolean _result = Boolean.valueOf(false);
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_28_1_matchtggpattern_blackBBB(
			org.eclipse.uml2.uml.Class feature, org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer) {
		if (uPackage.equals(feature.getPackage())) {
			if (uPackage.equals(uContainer.getPackage())) {
				return new Object[] { feature, uPackage, uContainer };
			}
		}
		return null;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_28_2_expressionF() {
		boolean _result = Boolean.valueOf(true);
		return _result;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_28_3_expressionF() {
		boolean _result = Boolean.valueOf(false);
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_1_createresult_blackB(
			AnonymousClass4EnumConstInPackage _this) {
		return new Object[] { _this };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_1_createresult_greenFF() {
		IsApplicableMatch isApplicableMatch = RuntimeFactory.eINSTANCE.createIsApplicableMatch();
		ModelgeneratorRuleResult ruleResult = RuntimeFactory.eINSTANCE.createModelgeneratorRuleResult();
		boolean ruleResult_success_prime = Boolean.valueOf(false);
		ruleResult.setSuccess(Boolean.valueOf(ruleResult_success_prime));
		return new Object[] { isApplicableMatch, ruleResult };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_0BB(
			ModelgeneratorRuleResult ruleResult, org.eclipse.modisco.java.Package jPackage) {
		if (ruleResult.getSourceObjects().contains(jPackage)) {
			return new Object[] { ruleResult, jPackage };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_1BB(
			ModelgeneratorRuleResult ruleResult, EnumDeclaration jContainer) {
		if (ruleResult.getSourceObjects().contains(jContainer)) {
			return new Object[] { ruleResult, jContainer };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_2BB(
			ModelgeneratorRuleResult ruleResult, EnumConstantDeclaration mMember) {
		if (ruleResult.getSourceObjects().contains(mMember)) {
			return new Object[] { ruleResult, mMember };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_3BB(
			ModelgeneratorRuleResult ruleResult, ASTNode2Element ne2ne) {
		if (ruleResult.getCorrObjects().contains(ne2ne)) {
			return new Object[] { ruleResult, ne2ne };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_4BB(
			ModelgeneratorRuleResult ruleResult, Enumeration uContainer) {
		if (ruleResult.getTargetObjects().contains(uContainer)) {
			return new Object[] { ruleResult, uContainer };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_5BB(
			ModelgeneratorRuleResult ruleResult, org.eclipse.uml2.uml.Package uPackage) {
		if (ruleResult.getTargetObjects().contains(uPackage)) {
			return new Object[] { ruleResult, uPackage };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_6BB(
			ModelgeneratorRuleResult ruleResult, JavaPackage2UmlPackage p2p) {
		if (ruleResult.getCorrObjects().contains(p2p)) {
			return new Object[] { ruleResult, p2p };
		}
		return null;
	}

	public static final Iterable<Object[]> pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_blackFFFFFFFFBB(
			RuleEntryContainer ruleEntryContainer, ModelgeneratorRuleResult ruleResult) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		for (RuleEntryList ne2neList : ruleEntryContainer.getRuleEntryList()) {
			for (EObject tmpNe2ne : ne2neList.getEntryObjects()) {
				if (tmpNe2ne instanceof ASTNode2Element) {
					ASTNode2Element ne2ne = (ASTNode2Element) tmpNe2ne;
					ASTNode tmpJContainer = ne2ne.getSource();
					if (tmpJContainer instanceof EnumDeclaration) {
						EnumDeclaration jContainer = (EnumDeclaration) tmpJContainer;
						Element tmpUContainer = ne2ne.getTarget();
						if (tmpUContainer instanceof Enumeration) {
							Enumeration uContainer = (Enumeration) tmpUContainer;
							org.eclipse.modisco.java.Package jPackage = jContainer.getPackage();
							if (jPackage != null) {
								org.eclipse.uml2.uml.Package uPackage = uContainer.getPackage();
								if (uPackage != null) {
									if (pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_3BB(
											ruleResult, ne2ne) == null) {
										if (pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_1BB(
												ruleResult, jContainer) == null) {
											if (pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_4BB(
													ruleResult, uContainer) == null) {
												if (pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_0BB(
														ruleResult, jPackage) == null) {
													if (pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_5BB(
															ruleResult, uPackage) == null) {
														for (EnumConstantDeclaration mMember : jContainer
																.getEnumConstants()) {
															if (pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_2BB(
																	ruleResult, mMember) == null) {
																for (JavaPackage2UmlPackage p2p : org.moflon.core.utilities.eMoflonEMFUtil
																		.getOppositeReferenceTyped(jPackage,
																				JavaPackage2UmlPackage.class,
																				"source")) {
																	if (uPackage.equals(p2p.getTarget())) {
																		if (pattern_AnonymousClass4EnumConstInPackage_29_2_isapplicablecore_black_nac_6BB(
																				ruleResult, p2p) == null) {
																			_result.add(new Object[] { ne2neList,
																					jPackage, jContainer, mMember,
																					ne2ne, uContainer, uPackage, p2p,
																					ruleEntryContainer, ruleResult });
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}

							}

						}

					}

				}
			}
		}
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_3_solveCSP_bindingFBBBBBBBBBB(
			AnonymousClass4EnumConstInPackage _this, IsApplicableMatch isApplicableMatch,
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p, ModelgeneratorRuleResult ruleResult) {
		CSP _localVariable_0 = _this.generateModel_solveCsp_BWD(isApplicableMatch, jPackage, uPackage, uContainer,
				mMember, jContainer, ne2ne, p2p, ruleResult);
		CSP csp = _localVariable_0;
		if (csp != null) {
			return new Object[] { csp, _this, isApplicableMatch, jPackage, uPackage, uContainer, mMember, jContainer,
					ne2ne, p2p, ruleResult };
		}
		return null;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_3_solveCSP_blackB(CSP csp) {
		return new Object[] { csp };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_3_solveCSP_bindingAndBlackFBBBBBBBBBB(
			AnonymousClass4EnumConstInPackage _this, IsApplicableMatch isApplicableMatch,
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p, ModelgeneratorRuleResult ruleResult) {
		Object[] result_pattern_AnonymousClass4EnumConstInPackage_29_3_solveCSP_binding = pattern_AnonymousClass4EnumConstInPackage_29_3_solveCSP_bindingFBBBBBBBBBB(
				_this, isApplicableMatch, jPackage, uPackage, uContainer, mMember, jContainer, ne2ne, p2p, ruleResult);
		if (result_pattern_AnonymousClass4EnumConstInPackage_29_3_solveCSP_binding != null) {
			CSP csp = (CSP) result_pattern_AnonymousClass4EnumConstInPackage_29_3_solveCSP_binding[0];

			Object[] result_pattern_AnonymousClass4EnumConstInPackage_29_3_solveCSP_black = pattern_AnonymousClass4EnumConstInPackage_29_3_solveCSP_blackB(
					csp);
			if (result_pattern_AnonymousClass4EnumConstInPackage_29_3_solveCSP_black != null) {

				return new Object[] { csp, _this, isApplicableMatch, jPackage, uPackage, uContainer, mMember,
						jContainer, ne2ne, p2p, ruleResult };
			}
		}
		return null;
	}

	public static final boolean pattern_AnonymousClass4EnumConstInPackage_29_4_checkCSP_expressionFBB(
			AnonymousClass4EnumConstInPackage _this, CSP csp) {
		boolean _localVariable_0 = _this.generateModel_checkCsp_BWD(csp);
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_5_checknacs_blackBBBBBBB(
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p) {
		return new Object[] { jPackage, uPackage, uContainer, mMember, jContainer, ne2ne, p2p };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_6_perform_blackBBBBBBBB(
			org.eclipse.modisco.java.Package jPackage, org.eclipse.uml2.uml.Package uPackage, Enumeration uContainer,
			EnumConstantDeclaration mMember, EnumDeclaration jContainer, ASTNode2Element ne2ne,
			JavaPackage2UmlPackage p2p, ModelgeneratorRuleResult ruleResult) {
		return new Object[] { jPackage, uPackage, uContainer, mMember, jContainer, ne2ne, p2p, ruleResult };
	}

	public static final Object[] pattern_AnonymousClass4EnumConstInPackage_29_6_perform_greenFFBFBBB(
			org.eclipse.uml2.uml.Package uPackage, EnumConstantDeclaration mMember, ModelgeneratorRuleResult ruleResult,
			CSP csp) {
		ASTNode2Element a2a = UmlFactory.eINSTANCE.createASTNode2Element();
		org.eclipse.uml2.uml.Class feature = UMLFactory.eINSTANCE.createClass();
		MAnonymousClass mAnon = ModiscoFactory.eINSTANCE.createMAnonymousClass();
		Object _localVariable_0 = csp.getValue("feature", "name");
		boolean ruleResult_success_prime = Boolean.valueOf(true);
		int _localVariable_1 = ruleResult.getIncrementedPerformCount();
		ruleResult.getCorrObjects().add(a2a);
		a2a.setTarget(feature);
		feature.setPackage(uPackage);
		ruleResult.getTargetObjects().add(feature);
		mMember.setAnonymousClassDeclaration(mAnon);
		a2a.setSource(mAnon);
		ruleResult.getSourceObjects().add(mAnon);
		String feature_name_prime = (String) _localVariable_0;
		ruleResult.setSuccess(Boolean.valueOf(ruleResult_success_prime));
		int ruleResult_performCount_prime = Integer.valueOf(_localVariable_1);
		feature.setName(feature_name_prime);
		ruleResult.setPerformCount(Integer.valueOf(ruleResult_performCount_prime));
		return new Object[] { a2a, feature, uPackage, mAnon, mMember, ruleResult, csp };
	}

	public static final ModelgeneratorRuleResult pattern_AnonymousClass4EnumConstInPackage_29_7_expressionFB(
			ModelgeneratorRuleResult ruleResult) {
		ModelgeneratorRuleResult _result = ruleResult;
		return _result;
	}

	// <-- [user code injected with eMoflon]

	// [user code injected with eMoflon] -->
} //AnonymousClass4EnumConstInPackageImpl
