/**
 */
package org.gravity.tgg.modisco.pm.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.gravity.modisco.MEntry;
import org.gravity.modisco.MMethodSignature;
import org.gravity.modisco.MSignature;

import org.gravity.tgg.modisco.pm.MEntryToTParameter;
import org.gravity.tgg.modisco.pm.MSignatureToTSignature;

import org.gravity.tgg.modisco.pm.Rules.MethodParameterLinkFirst;
import org.gravity.tgg.modisco.pm.Rules.RulesPackage;

import org.gravity.typegraph.basic.TMethodSignature;
import org.gravity.typegraph.basic.TParameter;
import org.gravity.typegraph.basic.TSignature;

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.pm.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>Method Parameter Link First</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * </p>
 *
 * @generated
 */
public class MethodParameterLinkFirstImpl extends AbstractRuleImpl implements MethodParameterLinkFirst {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected MethodParameterLinkFirstImpl() {
		super();
	}

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

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isAppropriate_FWD(Match match, MEntry mEntry, MMethodSignature mParameterList) {

		Object[] result1_black = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_0_1_initialbindings_blackBBBB(this, match, mEntry, mParameterList);
		if (result1_black == null) {
			throw new RuntimeException(
					"Pattern matching failed." + " Variables: " + "[this] = " + this + ", " + "[match] = " + match
							+ ", " + "[mEntry] = " + mEntry + ", " + "[mParameterList] = " + mParameterList + ".");
		}

		Object[] result2_bindingAndBlack = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_0_2_SolveCSP_bindingAndBlackFBBBB(this, match, mEntry,
						mParameterList);
		if (result2_bindingAndBlack == null) {
			throw new RuntimeException(
					"Pattern matching failed." + " Variables: " + "[this] = " + this + ", " + "[match] = " + match
							+ ", " + "[mEntry] = " + mEntry + ", " + "[mParameterList] = " + mParameterList + ".");
		}
		CSP csp = (CSP) result2_bindingAndBlack[0];
		// 
		if (MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_0_3_CheckCSP_expressionFBB(this, csp)) {

			Object[] result4_black = MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_0_4_collectelementstobetranslated_blackBBB(match, mEntry,
							mParameterList);
			if (result4_black == null) {
				throw new RuntimeException("Pattern matching failed." + " Variables: " + "[match] = " + match + ", "
						+ "[mEntry] = " + mEntry + ", " + "[mParameterList] = " + mParameterList + ".");
			}
			MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_0_4_collectelementstobetranslated_greenBBBF(
					match, mEntry, mParameterList);
			//nothing EMoflonEdge mParameterList__mEntry____mFirstEntry = (EMoflonEdge) result4_green[3];

			Object[] result5_black = MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_0_5_collectcontextelements_blackBBB(match, mEntry,
							mParameterList);
			if (result5_black == null) {
				throw new RuntimeException("Pattern matching failed." + " Variables: " + "[match] = " + match + ", "
						+ "[mEntry] = " + mEntry + ", " + "[mParameterList] = " + mParameterList + ".");
			}
			MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_0_5_collectcontextelements_greenBBB(match,
					mEntry, mParameterList);

			// 
			MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_0_6_registerobjectstomatch_expressionBBBB(
					this, match, mEntry, mParameterList);
			return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_0_7_expressionF();
		} else {
			return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_0_8_expressionF();
		}

	}

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

		Object[] result1_bindingAndBlack = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_1_1_performtransformation_bindingAndBlackFFFFFFFBB(this,
						isApplicableMatch);
		if (result1_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[isApplicableMatch] = " + isApplicableMatch + ".");
		}
		TParameter tParameter = (TParameter) result1_bindingAndBlack[0];
		MEntryToTParameter eSingleVariableDeclarationToTParameter = (MEntryToTParameter) result1_bindingAndBlack[1];
		TMethodSignature tMethodSignature = (TMethodSignature) result1_bindingAndBlack[2];
		MEntry mEntry = (MEntry) result1_bindingAndBlack[3];
		MSignatureToTSignature mmethodSignatureToTMethodSignature = (MSignatureToTSignature) result1_bindingAndBlack[4];
		MMethodSignature mParameterList = (MMethodSignature) result1_bindingAndBlack[5];
		//nothing CSP csp = (CSP) result1_bindingAndBlack[6];
		MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_1_1_performtransformation_greenBB(tParameter,
				tMethodSignature);

		Object[] result2_green = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_1_2_collecttranslatedelements_greenF();
		if (result2_green == null) {
			throw new RuntimeException("Pattern matching failed.");
		}
		PerformRuleResult ruleresult = (PerformRuleResult) result2_green[0];

		Object[] result3_black = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_1_3_bookkeepingforedges_blackBBBBBBB(ruleresult, tParameter,
						eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
						mmethodSignatureToTMethodSignature, mParameterList);
		if (result3_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[ruleresult] = " + ruleresult
					+ ", " + "[tParameter] = " + tParameter + ", " + "[eSingleVariableDeclarationToTParameter] = "
					+ eSingleVariableDeclarationToTParameter + ", " + "[tMethodSignature] = " + tMethodSignature + ", "
					+ "[mEntry] = " + mEntry + ", " + "[mmethodSignatureToTMethodSignature] = "
					+ mmethodSignatureToTMethodSignature + ", " + "[mParameterList] = " + mParameterList + ".");
		}
		MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_1_3_bookkeepingforedges_greenBBBBBFF(ruleresult,
				tParameter, tMethodSignature, mEntry, mParameterList);
		//nothing EMoflonEdge tMethodSignature__tParameter____firstParameter = (EMoflonEdge) result3_green[5];
		//nothing EMoflonEdge mParameterList__mEntry____mFirstEntry = (EMoflonEdge) result3_green[6];

		// 
		// 
		MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_1_5_registerobjects_expressionBBBBBBBB(this,
				ruleresult, tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
				mmethodSignatureToTMethodSignature, mParameterList);
		return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_1_6_expressionFB(ruleresult);
	}

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

		Object[] result1_bindingAndBlack = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_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 = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_2_1_preparereturnvalue_greenBF(performOperation);
		IsApplicableRuleResult ruleresult = (IsApplicableRuleResult) result1_green[1];

		// ForEach 
		Object[] result2_binding = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_2_2_corematch_bindingFFB(match);
		if (result2_binding == null) {
			throw new RuntimeException(
					"Binding in node core match failed." + " Variables: " + "[match] = " + match + ".");
		}
		MEntry mEntry = (MEntry) result2_binding[0];
		MMethodSignature mParameterList = (MMethodSignature) result2_binding[1];
		for (Object[] result2_black : MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_2_2_corematch_blackFFFBFBB(mEntry, mParameterList, match)) {
			TParameter tParameter = (TParameter) result2_black[0];
			MEntryToTParameter eSingleVariableDeclarationToTParameter = (MEntryToTParameter) result2_black[1];
			TMethodSignature tMethodSignature = (TMethodSignature) result2_black[2];
			MSignatureToTSignature mmethodSignatureToTMethodSignature = (MSignatureToTSignature) result2_black[4];
			// ForEach 
			for (Object[] result3_black : MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_2_3_findcontext_blackBBBBBB(tParameter,
							eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
							mmethodSignatureToTMethodSignature, mParameterList)) {
				Object[] result3_green = MethodParameterLinkFirstImpl
						.pattern_MethodParameterLinkFirst_2_3_findcontext_greenBBBBBBFFFFFF(tParameter,
								eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
								mmethodSignatureToTMethodSignature, mParameterList);
				IsApplicableMatch isApplicableMatch = (IsApplicableMatch) result3_green[6];
				//nothing EMoflonEdge eSingleVariableDeclarationToTParameter__mEntry____source = (EMoflonEdge) result3_green[7];
				//nothing EMoflonEdge mmethodSignatureToTMethodSignature__tMethodSignature____target = (EMoflonEdge) result3_green[8];
				//nothing EMoflonEdge mParameterList__mEntry____mFirstEntry = (EMoflonEdge) result3_green[9];
				//nothing EMoflonEdge eSingleVariableDeclarationToTParameter__tParameter____target = (EMoflonEdge) result3_green[10];
				//nothing EMoflonEdge mmethodSignatureToTMethodSignature__mParameterList____source = (EMoflonEdge) result3_green[11];

				Object[] result4_bindingAndBlack = MethodParameterLinkFirstImpl
						.pattern_MethodParameterLinkFirst_2_4_solveCSP_bindingAndBlackFBBBBBBBB(this, isApplicableMatch,
								tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
								mmethodSignatureToTMethodSignature, mParameterList);
				if (result4_bindingAndBlack == null) {
					throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
							+ "[isApplicableMatch] = " + isApplicableMatch + ", " + "[tParameter] = " + tParameter
							+ ", " + "[eSingleVariableDeclarationToTParameter] = "
							+ eSingleVariableDeclarationToTParameter + ", " + "[tMethodSignature] = " + tMethodSignature
							+ ", " + "[mEntry] = " + mEntry + ", " + "[mmethodSignatureToTMethodSignature] = "
							+ mmethodSignatureToTMethodSignature + ", " + "[mParameterList] = " + mParameterList + ".");
				}
				CSP csp = (CSP) result4_bindingAndBlack[0];
				// 
				if (MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_2_5_checkCSP_expressionFBB(this,
						csp)) {

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

				} else {
				}

			}

		}
		return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_2_7_expressionFB(ruleresult);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void registerObjectsToMatch_FWD(Match match, MEntry mEntry, MMethodSignature mParameterList) {
		match.registerObject("mEntry", mEntry);
		match.registerObject("mParameterList", mParameterList);

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CSP isAppropriate_solveCsp_FWD(Match match, MEntry mEntry, MMethodSignature mParameterList) {// 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, TParameter tParameter,
			MEntryToTParameter eSingleVariableDeclarationToTParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, MMethodSignature mParameterList) {// 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("tParameter", tParameter);
		isApplicableMatch.registerObject("eSingleVariableDeclarationToTParameter",
				eSingleVariableDeclarationToTParameter);
		isApplicableMatch.registerObject("tMethodSignature", tMethodSignature);
		isApplicableMatch.registerObject("mEntry", mEntry);
		isApplicableMatch.registerObject("mmethodSignatureToTMethodSignature", mmethodSignatureToTMethodSignature);
		isApplicableMatch.registerObject("mParameterList", mParameterList);
		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 tParameter,
			EObject eSingleVariableDeclarationToTParameter, EObject tMethodSignature, EObject mEntry,
			EObject mmethodSignatureToTMethodSignature, EObject mParameterList) {
		ruleresult.registerObject("tParameter", tParameter);
		ruleresult.registerObject("eSingleVariableDeclarationToTParameter", eSingleVariableDeclarationToTParameter);
		ruleresult.registerObject("tMethodSignature", tMethodSignature);
		ruleresult.registerObject("mEntry", mEntry);
		ruleresult.registerObject("mmethodSignatureToTMethodSignature", mmethodSignatureToTMethodSignature);
		ruleresult.registerObject("mParameterList", mParameterList);

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean checkTypes_FWD(Match match) {
		return true;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isAppropriate_BWD(Match match, TParameter tParameter, TMethodSignature tMethodSignature) {

		Object[] result1_black = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_10_1_initialbindings_blackBBBB(this, match, tParameter,
						tMethodSignature);
		if (result1_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[match] = " + match + ", " + "[tParameter] = " + tParameter + ", " + "[tMethodSignature] = "
					+ tMethodSignature + ".");
		}

		Object[] result2_bindingAndBlack = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_10_2_SolveCSP_bindingAndBlackFBBBB(this, match, tParameter,
						tMethodSignature);
		if (result2_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[match] = " + match + ", " + "[tParameter] = " + tParameter + ", " + "[tMethodSignature] = "
					+ tMethodSignature + ".");
		}
		CSP csp = (CSP) result2_bindingAndBlack[0];
		// 
		if (MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_10_3_CheckCSP_expressionFBB(this, csp)) {

			Object[] result4_black = MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_10_4_collectelementstobetranslated_blackBBB(match, tParameter,
							tMethodSignature);
			if (result4_black == null) {
				throw new RuntimeException("Pattern matching failed." + " Variables: " + "[match] = " + match + ", "
						+ "[tParameter] = " + tParameter + ", " + "[tMethodSignature] = " + tMethodSignature + ".");
			}
			MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_10_4_collectelementstobetranslated_greenBBBF(
					match, tParameter, tMethodSignature);
			//nothing EMoflonEdge tMethodSignature__tParameter____firstParameter = (EMoflonEdge) result4_green[3];

			Object[] result5_black = MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_10_5_collectcontextelements_blackBBB(match, tParameter,
							tMethodSignature);
			if (result5_black == null) {
				throw new RuntimeException("Pattern matching failed." + " Variables: " + "[match] = " + match + ", "
						+ "[tParameter] = " + tParameter + ", " + "[tMethodSignature] = " + tMethodSignature + ".");
			}
			MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_10_5_collectcontextelements_greenBBB(match,
					tParameter, tMethodSignature);

			// 
			MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_10_6_registerobjectstomatch_expressionBBBB(
					this, match, tParameter, tMethodSignature);
			return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_10_7_expressionF();
		} else {
			return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_10_8_expressionF();
		}

	}

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

		Object[] result1_bindingAndBlack = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_11_1_performtransformation_bindingAndBlackFFFFFFFBB(this,
						isApplicableMatch);
		if (result1_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[isApplicableMatch] = " + isApplicableMatch + ".");
		}
		TParameter tParameter = (TParameter) result1_bindingAndBlack[0];
		MEntryToTParameter eSingleVariableDeclarationToTParameter = (MEntryToTParameter) result1_bindingAndBlack[1];
		TMethodSignature tMethodSignature = (TMethodSignature) result1_bindingAndBlack[2];
		MEntry mEntry = (MEntry) result1_bindingAndBlack[3];
		MSignatureToTSignature mmethodSignatureToTMethodSignature = (MSignatureToTSignature) result1_bindingAndBlack[4];
		MMethodSignature mParameterList = (MMethodSignature) result1_bindingAndBlack[5];
		//nothing CSP csp = (CSP) result1_bindingAndBlack[6];
		MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_11_1_performtransformation_greenBB(mEntry,
				mParameterList);

		Object[] result2_green = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_11_2_collecttranslatedelements_greenF();
		if (result2_green == null) {
			throw new RuntimeException("Pattern matching failed.");
		}
		PerformRuleResult ruleresult = (PerformRuleResult) result2_green[0];

		Object[] result3_black = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_11_3_bookkeepingforedges_blackBBBBBBB(ruleresult, tParameter,
						eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
						mmethodSignatureToTMethodSignature, mParameterList);
		if (result3_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[ruleresult] = " + ruleresult
					+ ", " + "[tParameter] = " + tParameter + ", " + "[eSingleVariableDeclarationToTParameter] = "
					+ eSingleVariableDeclarationToTParameter + ", " + "[tMethodSignature] = " + tMethodSignature + ", "
					+ "[mEntry] = " + mEntry + ", " + "[mmethodSignatureToTMethodSignature] = "
					+ mmethodSignatureToTMethodSignature + ", " + "[mParameterList] = " + mParameterList + ".");
		}
		MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_11_3_bookkeepingforedges_greenBBBBBFF(ruleresult,
				tParameter, tMethodSignature, mEntry, mParameterList);
		//nothing EMoflonEdge tMethodSignature__tParameter____firstParameter = (EMoflonEdge) result3_green[5];
		//nothing EMoflonEdge mParameterList__mEntry____mFirstEntry = (EMoflonEdge) result3_green[6];

		// 
		// 
		MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_11_5_registerobjects_expressionBBBBBBBB(this,
				ruleresult, tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
				mmethodSignatureToTMethodSignature, mParameterList);
		return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_11_6_expressionFB(ruleresult);
	}

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

		Object[] result1_bindingAndBlack = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_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 = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_12_1_preparereturnvalue_greenBF(performOperation);
		IsApplicableRuleResult ruleresult = (IsApplicableRuleResult) result1_green[1];

		// ForEach 
		Object[] result2_binding = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_12_2_corematch_bindingFFB(match);
		if (result2_binding == null) {
			throw new RuntimeException(
					"Binding in node core match failed." + " Variables: " + "[match] = " + match + ".");
		}
		TParameter tParameter = (TParameter) result2_binding[0];
		TMethodSignature tMethodSignature = (TMethodSignature) result2_binding[1];
		for (Object[] result2_black : MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_12_2_corematch_blackBFBFFFB(tParameter, tMethodSignature, match)) {
			MEntryToTParameter eSingleVariableDeclarationToTParameter = (MEntryToTParameter) result2_black[1];
			MEntry mEntry = (MEntry) result2_black[3];
			MSignatureToTSignature mmethodSignatureToTMethodSignature = (MSignatureToTSignature) result2_black[4];
			MMethodSignature mParameterList = (MMethodSignature) result2_black[5];
			// ForEach 
			for (Object[] result3_black : MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_12_3_findcontext_blackBBBBBB(tParameter,
							eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
							mmethodSignatureToTMethodSignature, mParameterList)) {
				Object[] result3_green = MethodParameterLinkFirstImpl
						.pattern_MethodParameterLinkFirst_12_3_findcontext_greenBBBBBBFFFFFF(tParameter,
								eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
								mmethodSignatureToTMethodSignature, mParameterList);
				IsApplicableMatch isApplicableMatch = (IsApplicableMatch) result3_green[6];
				//nothing EMoflonEdge eSingleVariableDeclarationToTParameter__mEntry____source = (EMoflonEdge) result3_green[7];
				//nothing EMoflonEdge mmethodSignatureToTMethodSignature__tMethodSignature____target = (EMoflonEdge) result3_green[8];
				//nothing EMoflonEdge tMethodSignature__tParameter____firstParameter = (EMoflonEdge) result3_green[9];
				//nothing EMoflonEdge eSingleVariableDeclarationToTParameter__tParameter____target = (EMoflonEdge) result3_green[10];
				//nothing EMoflonEdge mmethodSignatureToTMethodSignature__mParameterList____source = (EMoflonEdge) result3_green[11];

				Object[] result4_bindingAndBlack = MethodParameterLinkFirstImpl
						.pattern_MethodParameterLinkFirst_12_4_solveCSP_bindingAndBlackFBBBBBBBB(this,
								isApplicableMatch, tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature,
								mEntry, mmethodSignatureToTMethodSignature, mParameterList);
				if (result4_bindingAndBlack == null) {
					throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
							+ "[isApplicableMatch] = " + isApplicableMatch + ", " + "[tParameter] = " + tParameter
							+ ", " + "[eSingleVariableDeclarationToTParameter] = "
							+ eSingleVariableDeclarationToTParameter + ", " + "[tMethodSignature] = " + tMethodSignature
							+ ", " + "[mEntry] = " + mEntry + ", " + "[mmethodSignatureToTMethodSignature] = "
							+ mmethodSignatureToTMethodSignature + ", " + "[mParameterList] = " + mParameterList + ".");
				}
				CSP csp = (CSP) result4_bindingAndBlack[0];
				// 
				if (MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_12_5_checkCSP_expressionFBB(this,
						csp)) {

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

				} else {
				}

			}

		}
		return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_12_7_expressionFB(ruleresult);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void registerObjectsToMatch_BWD(Match match, TParameter tParameter, TMethodSignature tMethodSignature) {
		match.registerObject("tParameter", tParameter);
		match.registerObject("tMethodSignature", tMethodSignature);

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CSP isAppropriate_solveCsp_BWD(Match match, TParameter tParameter, TMethodSignature tMethodSignature) {// 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_BWD(CSP csp) {
		return csp.check();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CSP isApplicable_solveCsp_BWD(IsApplicableMatch isApplicableMatch, TParameter tParameter,
			MEntryToTParameter eSingleVariableDeclarationToTParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, MMethodSignature mParameterList) {// 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("tParameter", tParameter);
		isApplicableMatch.registerObject("eSingleVariableDeclarationToTParameter",
				eSingleVariableDeclarationToTParameter);
		isApplicableMatch.registerObject("tMethodSignature", tMethodSignature);
		isApplicableMatch.registerObject("mEntry", mEntry);
		isApplicableMatch.registerObject("mmethodSignatureToTMethodSignature", mmethodSignatureToTMethodSignature);
		isApplicableMatch.registerObject("mParameterList", mParameterList);
		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 tParameter,
			EObject eSingleVariableDeclarationToTParameter, EObject tMethodSignature, EObject mEntry,
			EObject mmethodSignatureToTMethodSignature, EObject mParameterList) {
		ruleresult.registerObject("tParameter", tParameter);
		ruleresult.registerObject("eSingleVariableDeclarationToTParameter", eSingleVariableDeclarationToTParameter);
		ruleresult.registerObject("tMethodSignature", tMethodSignature);
		ruleresult.registerObject("mEntry", mEntry);
		ruleresult.registerObject("mmethodSignatureToTMethodSignature", mmethodSignatureToTMethodSignature);
		ruleresult.registerObject("mParameterList", mParameterList);

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean checkTypes_BWD(Match match) {
		return true;
	}

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

		Object[] result1_bindingAndBlack = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_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 = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_20_1_preparereturnvalue_greenF();
		EObjectContainer __result = (EObjectContainer) result1_green[0];

		// ForEach 
		for (Object[] result2_black : MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_20_2_testcorematchandDECs_blackFFB(_edge_firstParameter)) {
			TParameter tParameter = (TParameter) result2_black[0];
			TMethodSignature tMethodSignature = (TMethodSignature) result2_black[1];
			Object[] result2_green = MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_20_2_testcorematchandDECs_greenFB(__eClass);
			Match match = (Match) result2_green[0];

			// 
			if (MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_20_3_bookkeepingwithgenericisAppropriatemethod_expressionFBBBB(
							this, match, tParameter, tMethodSignature)) {
				// 
				if (MethodParameterLinkFirstImpl
						.pattern_MethodParameterLinkFirst_20_4_Ensurethatthecorrecttypesofelementsarematched_expressionFBB(
								this, match)) {

					Object[] result5_black = MethodParameterLinkFirstImpl
							.pattern_MethodParameterLinkFirst_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 + ".");
					}
					MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_20_5_Addmatchtoruleresult_greenBBBB(
							match, __performOperation, __result, isApplicableCC);

				} else {
				}

			} else {
			}

		}
		return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_20_6_expressionFB(__result);
	}

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

		Object[] result1_bindingAndBlack = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_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 = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_21_1_preparereturnvalue_greenF();
		EObjectContainer __result = (EObjectContainer) result1_green[0];

		// ForEach 
		for (Object[] result2_black : MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_21_2_testcorematchandDECs_blackFFB(_edge_mFirstEntry)) {
			MEntry mEntry = (MEntry) result2_black[0];
			MMethodSignature mParameterList = (MMethodSignature) result2_black[1];
			Object[] result2_green = MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_21_2_testcorematchandDECs_greenFB(__eClass);
			Match match = (Match) result2_green[0];

			// 
			if (MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_21_3_bookkeepingwithgenericisAppropriatemethod_expressionFBBBB(
							this, match, mEntry, mParameterList)) {
				// 
				if (MethodParameterLinkFirstImpl
						.pattern_MethodParameterLinkFirst_21_4_Ensurethatthecorrecttypesofelementsarematched_expressionFBB(
								this, match)) {

					Object[] result5_black = MethodParameterLinkFirstImpl
							.pattern_MethodParameterLinkFirst_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 + ".");
					}
					MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_21_5_Addmatchtoruleresult_greenBBBB(
							match, __performOperation, __result, isApplicableCC);

				} else {
				}

			} else {
			}

		}
		return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_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("MethodParameterLinkFirst");
		ruleResult.setSuccess(true);

		CSP csp = CspFactory.eINSTANCE.createCSP();

		CheckAttributeHelper __helper = new CheckAttributeHelper(__tripleMatch);

		if (csp.check()) {
			ruleResult.setSuccess(true);
		} else {
			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 AttributeConstraintsRuleResult checkAttributes_BWD(TripleMatch __tripleMatch) {
		AttributeConstraintsRuleResult ruleResult = org.moflon.tgg.runtime.RuntimeFactory.eINSTANCE
				.createAttributeConstraintsRuleResult();
		ruleResult.setRule("MethodParameterLinkFirst");
		ruleResult.setSuccess(true);

		CSP csp = CspFactory.eINSTANCE.createCSP();

		CheckAttributeHelper __helper = new CheckAttributeHelper(__tripleMatch);

		if (csp.check()) {
			ruleResult.setSuccess(true);
		} else {
			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 = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_24_1_prepare_blackB(this);
		if (result1_black == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ".");
		}
		Object[] result1_green = MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_24_1_prepare_greenF();
		IsApplicableRuleResult result = (IsApplicableRuleResult) result1_green[0];

		Object[] result2_bindingAndBlack = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_bindingAndBlackFFFFBB(sourceMatch,
						targetMatch);
		if (result2_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[sourceMatch] = " + sourceMatch
					+ ", " + "[targetMatch] = " + targetMatch + ".");
		}
		TParameter tParameter = (TParameter) result2_bindingAndBlack[0];
		TMethodSignature tMethodSignature = (TMethodSignature) result2_bindingAndBlack[1];
		MEntry mEntry = (MEntry) result2_bindingAndBlack[2];
		MMethodSignature mParameterList = (MMethodSignature) result2_bindingAndBlack[3];

		Object[] result3_bindingAndBlack = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_24_3_solvecsp_bindingAndBlackFBBBBBBB(this, tParameter,
						tMethodSignature, mEntry, mParameterList, sourceMatch, targetMatch);
		if (result3_bindingAndBlack == null) {
			throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
					+ "[tParameter] = " + tParameter + ", " + "[tMethodSignature] = " + tMethodSignature + ", "
					+ "[mEntry] = " + mEntry + ", " + "[mParameterList] = " + mParameterList + ", " + "[sourceMatch] = "
					+ sourceMatch + ", " + "[targetMatch] = " + targetMatch + ".");
		}
		CSP csp = (CSP) result3_bindingAndBlack[0];
		// 
		if (MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_24_4_checkCSP_expressionFB(csp)) {
			// ForEach 
			for (Object[] result5_black : MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_24_5_matchcorrcontext_blackBFBBFBBB(tParameter, tMethodSignature,
							mEntry, mParameterList, sourceMatch, targetMatch)) {
				MEntryToTParameter eSingleVariableDeclarationToTParameter = (MEntryToTParameter) result5_black[1];
				MSignatureToTSignature mmethodSignatureToTMethodSignature = (MSignatureToTSignature) result5_black[4];
				Object[] result5_green = MethodParameterLinkFirstImpl
						.pattern_MethodParameterLinkFirst_24_5_matchcorrcontext_greenBBBBF(
								eSingleVariableDeclarationToTParameter, mmethodSignatureToTMethodSignature, sourceMatch,
								targetMatch);
				CCMatch ccMatch = (CCMatch) result5_green[4];

				Object[] result6_black = MethodParameterLinkFirstImpl
						.pattern_MethodParameterLinkFirst_24_6_createcorrespondence_blackBBBBB(tParameter,
								tMethodSignature, mEntry, mParameterList, ccMatch);
				if (result6_black == null) {
					throw new RuntimeException(
							"Pattern matching failed." + " Variables: " + "[tParameter] = " + tParameter + ", "
									+ "[tMethodSignature] = " + tMethodSignature + ", " + "[mEntry] = " + mEntry + ", "
									+ "[mParameterList] = " + mParameterList + ", " + "[ccMatch] = " + ccMatch + ".");
				}

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

			}

		} else {
		}
		return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_24_8_expressionFB(result);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CSP isApplicable_solveCsp_CC(TParameter tParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MMethodSignature mParameterList, Match sourceMatch, Match targetMatch) {// 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 isApplicable_checkCsp_CC(CSP csp) {
		return csp.check();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean checkDEC_FWD(MEntry mEntry, MMethodSignature mParameterList) {// 
		Object[] result1_black = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_27_1_matchtggpattern_blackBB(mEntry, mParameterList);
		if (result1_black != null) {
			return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_27_2_expressionF();
		} else {
			return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_27_3_expressionF();
		}

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean checkDEC_BWD(TParameter tParameter, TMethodSignature tMethodSignature) {// 
		Object[] result1_black = MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_28_1_matchtggpattern_blackBB(tParameter, tMethodSignature);
		if (result1_black != null) {
			return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_28_2_expressionF();
		} else {
			return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_28_3_expressionF();
		}

	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ModelgeneratorRuleResult generateModel(RuleEntryContainer ruleEntryContainer,
			MEntryToTParameter eSingleVariableDeclarationToTParameterParameter,
			MSignatureToTSignature mmethodSignatureToTMethodSignatureParameter) {

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

		// ForEach 
		for (Object[] result2_black : MethodParameterLinkFirstImpl
				.pattern_MethodParameterLinkFirst_29_2_isapplicablecore_blackFFFFFFFFBB(ruleEntryContainer,
						ruleResult)) {
			//nothing RuleEntryList eSingleVariableDeclarationToTParameterList = (RuleEntryList) result2_black[0];
			TParameter tParameter = (TParameter) result2_black[1];
			MEntryToTParameter eSingleVariableDeclarationToTParameter = (MEntryToTParameter) result2_black[2];
			MEntry mEntry = (MEntry) result2_black[3];
			//nothing RuleEntryList mmethodSignatureToTMethodSignatureList = (RuleEntryList) result2_black[4];
			TMethodSignature tMethodSignature = (TMethodSignature) result2_black[5];
			MSignatureToTSignature mmethodSignatureToTMethodSignature = (MSignatureToTSignature) result2_black[6];
			MMethodSignature mParameterList = (MMethodSignature) result2_black[7];

			Object[] result3_bindingAndBlack = MethodParameterLinkFirstImpl
					.pattern_MethodParameterLinkFirst_29_3_solveCSP_bindingAndBlackFBBBBBBBBB(this, isApplicableMatch,
							tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
							mmethodSignatureToTMethodSignature, mParameterList, ruleResult);
			if (result3_bindingAndBlack == null) {
				throw new RuntimeException("Pattern matching failed." + " Variables: " + "[this] = " + this + ", "
						+ "[isApplicableMatch] = " + isApplicableMatch + ", " + "[tParameter] = " + tParameter + ", "
						+ "[eSingleVariableDeclarationToTParameter] = " + eSingleVariableDeclarationToTParameter + ", "
						+ "[tMethodSignature] = " + tMethodSignature + ", " + "[mEntry] = " + mEntry + ", "
						+ "[mmethodSignatureToTMethodSignature] = " + mmethodSignatureToTMethodSignature + ", "
						+ "[mParameterList] = " + mParameterList + ", " + "[ruleResult] = " + ruleResult + ".");
			}
			CSP csp = (CSP) result3_bindingAndBlack[0];
			// 
			if (MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_29_4_checkCSP_expressionFBB(this, csp)) {
				// 
				Object[] result5_black = MethodParameterLinkFirstImpl
						.pattern_MethodParameterLinkFirst_29_5_checknacs_blackBBBBBB(tParameter,
								eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
								mmethodSignatureToTMethodSignature, mParameterList);
				if (result5_black != null) {

					Object[] result6_black = MethodParameterLinkFirstImpl
							.pattern_MethodParameterLinkFirst_29_6_perform_blackBBBBBBB(tParameter,
									eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
									mmethodSignatureToTMethodSignature, mParameterList, ruleResult);
					if (result6_black == null) {
						throw new RuntimeException("Pattern matching failed." + " Variables: " + "[tParameter] = "
								+ tParameter + ", " + "[eSingleVariableDeclarationToTParameter] = "
								+ eSingleVariableDeclarationToTParameter + ", " + "[tMethodSignature] = "
								+ tMethodSignature + ", " + "[mEntry] = " + mEntry + ", "
								+ "[mmethodSignatureToTMethodSignature] = " + mmethodSignatureToTMethodSignature + ", "
								+ "[mParameterList] = " + mParameterList + ", " + "[ruleResult] = " + ruleResult + ".");
					}
					MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_29_6_perform_greenBBBBB(tParameter,
							tMethodSignature, mEntry, mParameterList, ruleResult);

				} else {
				}

			} else {
			}

		}
		return MethodParameterLinkFirstImpl.pattern_MethodParameterLinkFirst_29_7_expressionFB(ruleResult);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CSP generateModel_solveCsp_BWD(IsApplicableMatch isApplicableMatch, TParameter tParameter,
			MEntryToTParameter eSingleVariableDeclarationToTParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, MMethodSignature mParameterList,
			ModelgeneratorRuleResult ruleResult) {// 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("tParameter", tParameter);
		isApplicableMatch.registerObject("eSingleVariableDeclarationToTParameter",
				eSingleVariableDeclarationToTParameter);
		isApplicableMatch.registerObject("tMethodSignature", tMethodSignature);
		isApplicableMatch.registerObject("mEntry", mEntry);
		isApplicableMatch.registerObject("mmethodSignatureToTMethodSignature", mmethodSignatureToTMethodSignature);
		isApplicableMatch.registerObject("mParameterList", mParameterList);
		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.METHOD_PARAMETER_LINK_FIRST___IS_APPROPRIATE_FWD__MATCH_MENTRY_MMETHODSIGNATURE:
				return isAppropriate_FWD((Match) arguments.get(0), (MEntry) arguments.get(1),
						(MMethodSignature) arguments.get(2));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___PERFORM_FWD__ISAPPLICABLEMATCH:
				return perform_FWD((IsApplicableMatch) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPLICABLE_FWD__MATCH:
				return isApplicable_FWD((Match) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___REGISTER_OBJECTS_TO_MATCH_FWD__MATCH_MENTRY_MMETHODSIGNATURE:
				registerObjectsToMatch_FWD((Match) arguments.get(0), (MEntry) arguments.get(1),
						(MMethodSignature) arguments.get(2));
				return null;
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPROPRIATE_SOLVE_CSP_FWD__MATCH_MENTRY_MMETHODSIGNATURE:
				return isAppropriate_solveCsp_FWD((Match) arguments.get(0), (MEntry) arguments.get(1),
						(MMethodSignature) arguments.get(2));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPROPRIATE_CHECK_CSP_FWD__CSP:
				return isAppropriate_checkCsp_FWD((CSP) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPLICABLE_SOLVE_CSP_FWD__ISAPPLICABLEMATCH_TPARAMETER_MENTRYTOTPARAMETER_TMETHODSIGNATURE_MENTRY_MSIGNATURETOTSIGNATURE_MMETHODSIGNATURE:
				return isApplicable_solveCsp_FWD((IsApplicableMatch) arguments.get(0), (TParameter) arguments.get(1),
						(MEntryToTParameter) arguments.get(2), (TMethodSignature) arguments.get(3),
						(MEntry) arguments.get(4), (MSignatureToTSignature) arguments.get(5),
						(MMethodSignature) arguments.get(6));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPLICABLE_CHECK_CSP_FWD__CSP:
				return isApplicable_checkCsp_FWD((CSP) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___REGISTER_OBJECTS_FWD__PERFORMRULERESULT_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));
				return null;
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___CHECK_TYPES_FWD__MATCH:
				return checkTypes_FWD((Match) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPROPRIATE_BWD__MATCH_TPARAMETER_TMETHODSIGNATURE:
				return isAppropriate_BWD((Match) arguments.get(0), (TParameter) arguments.get(1),
						(TMethodSignature) arguments.get(2));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___PERFORM_BWD__ISAPPLICABLEMATCH:
				return perform_BWD((IsApplicableMatch) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPLICABLE_BWD__MATCH:
				return isApplicable_BWD((Match) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___REGISTER_OBJECTS_TO_MATCH_BWD__MATCH_TPARAMETER_TMETHODSIGNATURE:
				registerObjectsToMatch_BWD((Match) arguments.get(0), (TParameter) arguments.get(1),
						(TMethodSignature) arguments.get(2));
				return null;
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPROPRIATE_SOLVE_CSP_BWD__MATCH_TPARAMETER_TMETHODSIGNATURE:
				return isAppropriate_solveCsp_BWD((Match) arguments.get(0), (TParameter) arguments.get(1),
						(TMethodSignature) arguments.get(2));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPROPRIATE_CHECK_CSP_BWD__CSP:
				return isAppropriate_checkCsp_BWD((CSP) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPLICABLE_SOLVE_CSP_BWD__ISAPPLICABLEMATCH_TPARAMETER_MENTRYTOTPARAMETER_TMETHODSIGNATURE_MENTRY_MSIGNATURETOTSIGNATURE_MMETHODSIGNATURE:
				return isApplicable_solveCsp_BWD((IsApplicableMatch) arguments.get(0), (TParameter) arguments.get(1),
						(MEntryToTParameter) arguments.get(2), (TMethodSignature) arguments.get(3),
						(MEntry) arguments.get(4), (MSignatureToTSignature) arguments.get(5),
						(MMethodSignature) arguments.get(6));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPLICABLE_CHECK_CSP_BWD__CSP:
				return isApplicable_checkCsp_BWD((CSP) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___REGISTER_OBJECTS_BWD__PERFORMRULERESULT_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));
				return null;
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___CHECK_TYPES_BWD__MATCH:
				return checkTypes_BWD((Match) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPROPRIATE_BWD_EMOFLON_EDGE_966__EMOFLONEDGE:
				return isAppropriate_BWD_EMoflonEdge_966((EMoflonEdge) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPROPRIATE_FWD_EMOFLON_EDGE_1061__EMOFLONEDGE:
				return isAppropriate_FWD_EMoflonEdge_1061((EMoflonEdge) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___CHECK_ATTRIBUTES_FWD__TRIPLEMATCH:
				return checkAttributes_FWD((TripleMatch) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___CHECK_ATTRIBUTES_BWD__TRIPLEMATCH:
				return checkAttributes_BWD((TripleMatch) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPLICABLE_CC__MATCH_MATCH:
				return isApplicable_CC((Match) arguments.get(0), (Match) arguments.get(1));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPLICABLE_SOLVE_CSP_CC__TPARAMETER_TMETHODSIGNATURE_MENTRY_MMETHODSIGNATURE_MATCH_MATCH:
				return isApplicable_solveCsp_CC((TParameter) arguments.get(0), (TMethodSignature) arguments.get(1),
						(MEntry) arguments.get(2), (MMethodSignature) arguments.get(3), (Match) arguments.get(4),
						(Match) arguments.get(5));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___IS_APPLICABLE_CHECK_CSP_CC__CSP:
				return isApplicable_checkCsp_CC((CSP) arguments.get(0));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___CHECK_DEC_FWD__MENTRY_MMETHODSIGNATURE:
				return checkDEC_FWD((MEntry) arguments.get(0), (MMethodSignature) arguments.get(1));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___CHECK_DEC_BWD__TPARAMETER_TMETHODSIGNATURE:
				return checkDEC_BWD((TParameter) arguments.get(0), (TMethodSignature) arguments.get(1));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___GENERATE_MODEL__RULEENTRYCONTAINER_MENTRYTOTPARAMETER_MSIGNATURETOTSIGNATURE:
				return generateModel((RuleEntryContainer) arguments.get(0), (MEntryToTParameter) arguments.get(1),
						(MSignatureToTSignature) arguments.get(2));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___GENERATE_MODEL_SOLVE_CSP_BWD__ISAPPLICABLEMATCH_TPARAMETER_MENTRYTOTPARAMETER_TMETHODSIGNATURE_MENTRY_MSIGNATURETOTSIGNATURE_MMETHODSIGNATURE_MODELGENERATORRULERESULT:
				return generateModel_solveCsp_BWD((IsApplicableMatch) arguments.get(0), (TParameter) arguments.get(1),
						(MEntryToTParameter) arguments.get(2), (TMethodSignature) arguments.get(3),
						(MEntry) arguments.get(4), (MSignatureToTSignature) arguments.get(5),
						(MMethodSignature) arguments.get(6), (ModelgeneratorRuleResult) arguments.get(7));
			case RulesPackage.METHOD_PARAMETER_LINK_FIRST___GENERATE_MODEL_CHECK_CSP_BWD__CSP:
				return generateModel_checkCsp_BWD((CSP) arguments.get(0));
		}
		return super.eInvoke(operationID, arguments);
	}

	public static final Object[] pattern_MethodParameterLinkFirst_0_1_initialbindings_blackBBBB(
			MethodParameterLinkFirst _this, Match match, MEntry mEntry, MMethodSignature mParameterList) {
		return new Object[] { _this, match, mEntry, mParameterList };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_0_2_SolveCSP_bindingFBBBB(
			MethodParameterLinkFirst _this, Match match, MEntry mEntry, MMethodSignature mParameterList) {
		CSP _localVariable_0 = _this.isAppropriate_solveCsp_FWD(match, mEntry, mParameterList);
		CSP csp = _localVariable_0;
		if (csp != null) {
			return new Object[] { csp, _this, match, mEntry, mParameterList };
		}
		return null;
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_0_2_SolveCSP_bindingAndBlackFBBBB(
			MethodParameterLinkFirst _this, Match match, MEntry mEntry, MMethodSignature mParameterList) {
		Object[] result_pattern_MethodParameterLinkFirst_0_2_SolveCSP_binding = pattern_MethodParameterLinkFirst_0_2_SolveCSP_bindingFBBBB(
				_this, match, mEntry, mParameterList);
		if (result_pattern_MethodParameterLinkFirst_0_2_SolveCSP_binding != null) {
			CSP csp = (CSP) result_pattern_MethodParameterLinkFirst_0_2_SolveCSP_binding[0];

			Object[] result_pattern_MethodParameterLinkFirst_0_2_SolveCSP_black = pattern_MethodParameterLinkFirst_0_2_SolveCSP_blackB(
					csp);
			if (result_pattern_MethodParameterLinkFirst_0_2_SolveCSP_black != null) {

				return new Object[] { csp, _this, match, mEntry, mParameterList };
			}
		}
		return null;
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_0_4_collectelementstobetranslated_blackBBB(
			Match match, MEntry mEntry, MMethodSignature mParameterList) {
		return new Object[] { match, mEntry, mParameterList };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_0_4_collectelementstobetranslated_greenBBBF(
			Match match, MEntry mEntry, MMethodSignature mParameterList) {
		EMoflonEdge mParameterList__mEntry____mFirstEntry = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		String mParameterList__mEntry____mFirstEntry_name_prime = "mFirstEntry";
		mParameterList__mEntry____mFirstEntry.setSrc(mParameterList);
		mParameterList__mEntry____mFirstEntry.setTrg(mEntry);
		match.getToBeTranslatedEdges().add(mParameterList__mEntry____mFirstEntry);
		mParameterList__mEntry____mFirstEntry.setName(mParameterList__mEntry____mFirstEntry_name_prime);
		return new Object[] { match, mEntry, mParameterList, mParameterList__mEntry____mFirstEntry };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_0_5_collectcontextelements_blackBBB(Match match,
			MEntry mEntry, MMethodSignature mParameterList) {
		return new Object[] { match, mEntry, mParameterList };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_0_5_collectcontextelements_greenBBB(Match match,
			MEntry mEntry, MMethodSignature mParameterList) {
		match.getContextNodes().add(mEntry);
		match.getContextNodes().add(mParameterList);
		return new Object[] { match, mEntry, mParameterList };
	}

	public static final void pattern_MethodParameterLinkFirst_0_6_registerobjectstomatch_expressionBBBB(
			MethodParameterLinkFirst _this, Match match, MEntry mEntry, MMethodSignature mParameterList) {
		_this.registerObjectsToMatch_FWD(match, mEntry, mParameterList);

	}

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

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

	public static final Object[] pattern_MethodParameterLinkFirst_1_1_performtransformation_bindingFFFFFFB(
			IsApplicableMatch isApplicableMatch) {
		EObject _localVariable_0 = isApplicableMatch.getObject("tParameter");
		EObject _localVariable_1 = isApplicableMatch.getObject("eSingleVariableDeclarationToTParameter");
		EObject _localVariable_2 = isApplicableMatch.getObject("tMethodSignature");
		EObject _localVariable_3 = isApplicableMatch.getObject("mEntry");
		EObject _localVariable_4 = isApplicableMatch.getObject("mmethodSignatureToTMethodSignature");
		EObject _localVariable_5 = isApplicableMatch.getObject("mParameterList");
		EObject tmpTParameter = _localVariable_0;
		EObject tmpESingleVariableDeclarationToTParameter = _localVariable_1;
		EObject tmpTMethodSignature = _localVariable_2;
		EObject tmpMEntry = _localVariable_3;
		EObject tmpMmethodSignatureToTMethodSignature = _localVariable_4;
		EObject tmpMParameterList = _localVariable_5;
		if (tmpTParameter instanceof TParameter) {
			TParameter tParameter = (TParameter) tmpTParameter;
			if (tmpESingleVariableDeclarationToTParameter instanceof MEntryToTParameter) {
				MEntryToTParameter eSingleVariableDeclarationToTParameter = (MEntryToTParameter) tmpESingleVariableDeclarationToTParameter;
				if (tmpTMethodSignature instanceof TMethodSignature) {
					TMethodSignature tMethodSignature = (TMethodSignature) tmpTMethodSignature;
					if (tmpMEntry instanceof MEntry) {
						MEntry mEntry = (MEntry) tmpMEntry;
						if (tmpMmethodSignatureToTMethodSignature instanceof MSignatureToTSignature) {
							MSignatureToTSignature mmethodSignatureToTMethodSignature = (MSignatureToTSignature) tmpMmethodSignatureToTMethodSignature;
							if (tmpMParameterList instanceof MMethodSignature) {
								MMethodSignature mParameterList = (MMethodSignature) tmpMParameterList;
								return new Object[] { tParameter, eSingleVariableDeclarationToTParameter,
										tMethodSignature, mEntry, mmethodSignatureToTMethodSignature, mParameterList,
										isApplicableMatch };
							}
						}
					}
				}
			}
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_1_1_performtransformation_blackBBBBBBFBB(
			TParameter tParameter, MEntryToTParameter eSingleVariableDeclarationToTParameter,
			TMethodSignature tMethodSignature, MEntry mEntry, MSignatureToTSignature mmethodSignatureToTMethodSignature,
			MMethodSignature mParameterList, MethodParameterLinkFirst _this, IsApplicableMatch isApplicableMatch) {
		for (EObject tmpCsp : isApplicableMatch.getAttributeInfo()) {
			if (tmpCsp instanceof CSP) {
				CSP csp = (CSP) tmpCsp;
				return new Object[] { tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
						mmethodSignatureToTMethodSignature, mParameterList, csp, _this, isApplicableMatch };
			}
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_1_1_performtransformation_bindingAndBlackFFFFFFFBB(
			MethodParameterLinkFirst _this, IsApplicableMatch isApplicableMatch) {
		Object[] result_pattern_MethodParameterLinkFirst_1_1_performtransformation_binding = pattern_MethodParameterLinkFirst_1_1_performtransformation_bindingFFFFFFB(
				isApplicableMatch);
		if (result_pattern_MethodParameterLinkFirst_1_1_performtransformation_binding != null) {
			TParameter tParameter = (TParameter) result_pattern_MethodParameterLinkFirst_1_1_performtransformation_binding[0];
			MEntryToTParameter eSingleVariableDeclarationToTParameter = (MEntryToTParameter) result_pattern_MethodParameterLinkFirst_1_1_performtransformation_binding[1];
			TMethodSignature tMethodSignature = (TMethodSignature) result_pattern_MethodParameterLinkFirst_1_1_performtransformation_binding[2];
			MEntry mEntry = (MEntry) result_pattern_MethodParameterLinkFirst_1_1_performtransformation_binding[3];
			MSignatureToTSignature mmethodSignatureToTMethodSignature = (MSignatureToTSignature) result_pattern_MethodParameterLinkFirst_1_1_performtransformation_binding[4];
			MMethodSignature mParameterList = (MMethodSignature) result_pattern_MethodParameterLinkFirst_1_1_performtransformation_binding[5];

			Object[] result_pattern_MethodParameterLinkFirst_1_1_performtransformation_black = pattern_MethodParameterLinkFirst_1_1_performtransformation_blackBBBBBBFBB(
					tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
					mmethodSignatureToTMethodSignature, mParameterList, _this, isApplicableMatch);
			if (result_pattern_MethodParameterLinkFirst_1_1_performtransformation_black != null) {
				CSP csp = (CSP) result_pattern_MethodParameterLinkFirst_1_1_performtransformation_black[6];

				return new Object[] { tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
						mmethodSignatureToTMethodSignature, mParameterList, csp, _this, isApplicableMatch };
			}
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_1_1_performtransformation_greenBB(
			TParameter tParameter, TMethodSignature tMethodSignature) {
		tMethodSignature.setFirstParameter(tParameter);
		return new Object[] { tParameter, tMethodSignature };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_1_2_collecttranslatedelements_greenF() {
		PerformRuleResult ruleresult = RuntimeFactory.eINSTANCE.createPerformRuleResult();
		return new Object[] { ruleresult };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_1_3_bookkeepingforedges_blackBBBBBBB(
			PerformRuleResult ruleresult, EObject tParameter, EObject eSingleVariableDeclarationToTParameter,
			EObject tMethodSignature, EObject mEntry, EObject mmethodSignatureToTMethodSignature,
			EObject mParameterList) {
		if (!eSingleVariableDeclarationToTParameter.equals(tParameter)) {
			if (!eSingleVariableDeclarationToTParameter.equals(tMethodSignature)) {
				if (!eSingleVariableDeclarationToTParameter.equals(mEntry)) {
					if (!eSingleVariableDeclarationToTParameter.equals(mmethodSignatureToTMethodSignature)) {
						if (!eSingleVariableDeclarationToTParameter.equals(mParameterList)) {
							if (!tMethodSignature.equals(tParameter)) {
								if (!mEntry.equals(tParameter)) {
									if (!mEntry.equals(tMethodSignature)) {
										if (!mEntry.equals(mmethodSignatureToTMethodSignature)) {
											if (!mEntry.equals(mParameterList)) {
												if (!mmethodSignatureToTMethodSignature.equals(tParameter)) {
													if (!mmethodSignatureToTMethodSignature.equals(tMethodSignature)) {
														if (!mParameterList.equals(tParameter)) {
															if (!mParameterList.equals(tMethodSignature)) {
																if (!mParameterList
																		.equals(mmethodSignatureToTMethodSignature)) {
																	return new Object[] { ruleresult, tParameter,
																			eSingleVariableDeclarationToTParameter,
																			tMethodSignature, mEntry,
																			mmethodSignatureToTMethodSignature,
																			mParameterList };
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_1_3_bookkeepingforedges_greenBBBBBFF(
			PerformRuleResult ruleresult, EObject tParameter, EObject tMethodSignature, EObject mEntry,
			EObject mParameterList) {
		EMoflonEdge tMethodSignature__tParameter____firstParameter = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge mParameterList__mEntry____mFirstEntry = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		String ruleresult_ruleName_prime = "MethodParameterLinkFirst";
		String tMethodSignature__tParameter____firstParameter_name_prime = "firstParameter";
		String mParameterList__mEntry____mFirstEntry_name_prime = "mFirstEntry";
		tMethodSignature__tParameter____firstParameter.setSrc(tMethodSignature);
		tMethodSignature__tParameter____firstParameter.setTrg(tParameter);
		ruleresult.getCreatedEdges().add(tMethodSignature__tParameter____firstParameter);
		mParameterList__mEntry____mFirstEntry.setSrc(mParameterList);
		mParameterList__mEntry____mFirstEntry.setTrg(mEntry);
		ruleresult.getTranslatedEdges().add(mParameterList__mEntry____mFirstEntry);
		ruleresult.setRuleName(ruleresult_ruleName_prime);
		tMethodSignature__tParameter____firstParameter
				.setName(tMethodSignature__tParameter____firstParameter_name_prime);
		mParameterList__mEntry____mFirstEntry.setName(mParameterList__mEntry____mFirstEntry_name_prime);
		return new Object[] { ruleresult, tParameter, tMethodSignature, mEntry, mParameterList,
				tMethodSignature__tParameter____firstParameter, mParameterList__mEntry____mFirstEntry };
	}

	public static final void pattern_MethodParameterLinkFirst_1_5_registerobjects_expressionBBBBBBBB(
			MethodParameterLinkFirst _this, PerformRuleResult ruleresult, EObject tParameter,
			EObject eSingleVariableDeclarationToTParameter, EObject tMethodSignature, EObject mEntry,
			EObject mmethodSignatureToTMethodSignature, EObject mParameterList) {
		_this.registerObjects_FWD(ruleresult, tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature,
				mEntry, mmethodSignatureToTMethodSignature, mParameterList);

	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_2_1_preparereturnvalue_bindingFB(
			MethodParameterLinkFirst _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_MethodParameterLinkFirst_2_1_preparereturnvalue_blackFBB(EClass eClass,
			MethodParameterLinkFirst _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_MethodParameterLinkFirst_2_1_preparereturnvalue_bindingAndBlackFFB(
			MethodParameterLinkFirst _this) {
		Object[] result_pattern_MethodParameterLinkFirst_2_1_preparereturnvalue_binding = pattern_MethodParameterLinkFirst_2_1_preparereturnvalue_bindingFB(
				_this);
		if (result_pattern_MethodParameterLinkFirst_2_1_preparereturnvalue_binding != null) {
			EClass eClass = (EClass) result_pattern_MethodParameterLinkFirst_2_1_preparereturnvalue_binding[0];

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

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

	public static final Object[] pattern_MethodParameterLinkFirst_2_1_preparereturnvalue_greenBF(
			EOperation performOperation) {
		IsApplicableRuleResult ruleresult = RuntimeFactory.eINSTANCE.createIsApplicableRuleResult();
		boolean ruleresult_success_prime = Boolean.valueOf(false);
		String ruleresult_rule_prime = "MethodParameterLinkFirst";
		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_MethodParameterLinkFirst_2_2_corematch_bindingFFB(Match match) {
		EObject _localVariable_0 = match.getObject("mEntry");
		EObject _localVariable_1 = match.getObject("mParameterList");
		EObject tmpMEntry = _localVariable_0;
		EObject tmpMParameterList = _localVariable_1;
		if (tmpMEntry instanceof MEntry) {
			MEntry mEntry = (MEntry) tmpMEntry;
			if (tmpMParameterList instanceof MMethodSignature) {
				MMethodSignature mParameterList = (MMethodSignature) tmpMParameterList;
				return new Object[] { mEntry, mParameterList, match };
			}
		}
		return null;
	}

	public static final Iterable<Object[]> pattern_MethodParameterLinkFirst_2_2_corematch_blackFFFBFBB(MEntry mEntry,
			MMethodSignature mParameterList, Match match) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		for (MEntryToTParameter eSingleVariableDeclarationToTParameter : org.moflon.core.utilities.eMoflonEMFUtil
				.getOppositeReferenceTyped(mEntry, MEntryToTParameter.class, "source")) {
			TParameter tParameter = eSingleVariableDeclarationToTParameter.getTarget();
			if (tParameter != null) {
				for (MSignatureToTSignature mmethodSignatureToTMethodSignature : org.moflon.core.utilities.eMoflonEMFUtil
						.getOppositeReferenceTyped(mParameterList, MSignatureToTSignature.class, "source")) {
					TSignature tmpTMethodSignature = mmethodSignatureToTMethodSignature.getTarget();
					if (tmpTMethodSignature instanceof TMethodSignature) {
						TMethodSignature tMethodSignature = (TMethodSignature) tmpTMethodSignature;
						_result.add(new Object[] { tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature,
								mEntry, mmethodSignatureToTMethodSignature, mParameterList, match });
					}

				}
			}

		}
		return _result;
	}

	public static final Iterable<Object[]> pattern_MethodParameterLinkFirst_2_3_findcontext_blackBBBBBB(
			TParameter tParameter, MEntryToTParameter eSingleVariableDeclarationToTParameter,
			TMethodSignature tMethodSignature, MEntry mEntry, MSignatureToTSignature mmethodSignatureToTMethodSignature,
			MMethodSignature mParameterList) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		if (mEntry.equals(eSingleVariableDeclarationToTParameter.getSource())) {
			if (tMethodSignature.equals(mmethodSignatureToTMethodSignature.getTarget())) {
				if (mEntry.equals(mParameterList.getMFirstEntry())) {
					if (tParameter.equals(eSingleVariableDeclarationToTParameter.getTarget())) {
						if (mParameterList.equals(mmethodSignatureToTMethodSignature.getSource())) {
							_result.add(new Object[] { tParameter, eSingleVariableDeclarationToTParameter,
									tMethodSignature, mEntry, mmethodSignatureToTMethodSignature, mParameterList });
						}
					}
				}
			}
		}
		return _result;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_2_3_findcontext_greenBBBBBBFFFFFF(
			TParameter tParameter, MEntryToTParameter eSingleVariableDeclarationToTParameter,
			TMethodSignature tMethodSignature, MEntry mEntry, MSignatureToTSignature mmethodSignatureToTMethodSignature,
			MMethodSignature mParameterList) {
		IsApplicableMatch isApplicableMatch = RuntimeFactory.eINSTANCE.createIsApplicableMatch();
		EMoflonEdge eSingleVariableDeclarationToTParameter__mEntry____source = RuntimeFactory.eINSTANCE
				.createEMoflonEdge();
		EMoflonEdge mmethodSignatureToTMethodSignature__tMethodSignature____target = RuntimeFactory.eINSTANCE
				.createEMoflonEdge();
		EMoflonEdge mParameterList__mEntry____mFirstEntry = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge eSingleVariableDeclarationToTParameter__tParameter____target = RuntimeFactory.eINSTANCE
				.createEMoflonEdge();
		EMoflonEdge mmethodSignatureToTMethodSignature__mParameterList____source = RuntimeFactory.eINSTANCE
				.createEMoflonEdge();
		String eSingleVariableDeclarationToTParameter__mEntry____source_name_prime = "source";
		String mmethodSignatureToTMethodSignature__tMethodSignature____target_name_prime = "target";
		String mParameterList__mEntry____mFirstEntry_name_prime = "mFirstEntry";
		String eSingleVariableDeclarationToTParameter__tParameter____target_name_prime = "target";
		String mmethodSignatureToTMethodSignature__mParameterList____source_name_prime = "source";
		isApplicableMatch.getAllContextElements().add(tParameter);
		isApplicableMatch.getAllContextElements().add(eSingleVariableDeclarationToTParameter);
		isApplicableMatch.getAllContextElements().add(tMethodSignature);
		isApplicableMatch.getAllContextElements().add(mEntry);
		isApplicableMatch.getAllContextElements().add(mmethodSignatureToTMethodSignature);
		isApplicableMatch.getAllContextElements().add(mParameterList);
		eSingleVariableDeclarationToTParameter__mEntry____source.setSrc(eSingleVariableDeclarationToTParameter);
		eSingleVariableDeclarationToTParameter__mEntry____source.setTrg(mEntry);
		isApplicableMatch.getAllContextElements().add(eSingleVariableDeclarationToTParameter__mEntry____source);
		mmethodSignatureToTMethodSignature__tMethodSignature____target.setSrc(mmethodSignatureToTMethodSignature);
		mmethodSignatureToTMethodSignature__tMethodSignature____target.setTrg(tMethodSignature);
		isApplicableMatch.getAllContextElements().add(mmethodSignatureToTMethodSignature__tMethodSignature____target);
		mParameterList__mEntry____mFirstEntry.setSrc(mParameterList);
		mParameterList__mEntry____mFirstEntry.setTrg(mEntry);
		isApplicableMatch.getAllContextElements().add(mParameterList__mEntry____mFirstEntry);
		eSingleVariableDeclarationToTParameter__tParameter____target.setSrc(eSingleVariableDeclarationToTParameter);
		eSingleVariableDeclarationToTParameter__tParameter____target.setTrg(tParameter);
		isApplicableMatch.getAllContextElements().add(eSingleVariableDeclarationToTParameter__tParameter____target);
		mmethodSignatureToTMethodSignature__mParameterList____source.setSrc(mmethodSignatureToTMethodSignature);
		mmethodSignatureToTMethodSignature__mParameterList____source.setTrg(mParameterList);
		isApplicableMatch.getAllContextElements().add(mmethodSignatureToTMethodSignature__mParameterList____source);
		eSingleVariableDeclarationToTParameter__mEntry____source
				.setName(eSingleVariableDeclarationToTParameter__mEntry____source_name_prime);
		mmethodSignatureToTMethodSignature__tMethodSignature____target
				.setName(mmethodSignatureToTMethodSignature__tMethodSignature____target_name_prime);
		mParameterList__mEntry____mFirstEntry.setName(mParameterList__mEntry____mFirstEntry_name_prime);
		eSingleVariableDeclarationToTParameter__tParameter____target
				.setName(eSingleVariableDeclarationToTParameter__tParameter____target_name_prime);
		mmethodSignatureToTMethodSignature__mParameterList____source
				.setName(mmethodSignatureToTMethodSignature__mParameterList____source_name_prime);
		return new Object[] { tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
				mmethodSignatureToTMethodSignature, mParameterList, isApplicableMatch,
				eSingleVariableDeclarationToTParameter__mEntry____source,
				mmethodSignatureToTMethodSignature__tMethodSignature____target, mParameterList__mEntry____mFirstEntry,
				eSingleVariableDeclarationToTParameter__tParameter____target,
				mmethodSignatureToTMethodSignature__mParameterList____source };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_2_4_solveCSP_bindingFBBBBBBBB(
			MethodParameterLinkFirst _this, IsApplicableMatch isApplicableMatch, TParameter tParameter,
			MEntryToTParameter eSingleVariableDeclarationToTParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, MMethodSignature mParameterList) {
		CSP _localVariable_0 = _this.isApplicable_solveCsp_FWD(isApplicableMatch, tParameter,
				eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry, mmethodSignatureToTMethodSignature,
				mParameterList);
		CSP csp = _localVariable_0;
		if (csp != null) {
			return new Object[] { csp, _this, isApplicableMatch, tParameter, eSingleVariableDeclarationToTParameter,
					tMethodSignature, mEntry, mmethodSignatureToTMethodSignature, mParameterList };
		}
		return null;
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_2_4_solveCSP_bindingAndBlackFBBBBBBBB(
			MethodParameterLinkFirst _this, IsApplicableMatch isApplicableMatch, TParameter tParameter,
			MEntryToTParameter eSingleVariableDeclarationToTParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, MMethodSignature mParameterList) {
		Object[] result_pattern_MethodParameterLinkFirst_2_4_solveCSP_binding = pattern_MethodParameterLinkFirst_2_4_solveCSP_bindingFBBBBBBBB(
				_this, isApplicableMatch, tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
				mmethodSignatureToTMethodSignature, mParameterList);
		if (result_pattern_MethodParameterLinkFirst_2_4_solveCSP_binding != null) {
			CSP csp = (CSP) result_pattern_MethodParameterLinkFirst_2_4_solveCSP_binding[0];

			Object[] result_pattern_MethodParameterLinkFirst_2_4_solveCSP_black = pattern_MethodParameterLinkFirst_2_4_solveCSP_blackB(
					csp);
			if (result_pattern_MethodParameterLinkFirst_2_4_solveCSP_black != null) {

				return new Object[] { csp, _this, isApplicableMatch, tParameter, eSingleVariableDeclarationToTParameter,
						tMethodSignature, mEntry, mmethodSignatureToTMethodSignature, mParameterList };
			}
		}
		return null;
	}

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

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

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

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

	public static final Object[] pattern_MethodParameterLinkFirst_10_1_initialbindings_blackBBBB(
			MethodParameterLinkFirst _this, Match match, TParameter tParameter, TMethodSignature tMethodSignature) {
		return new Object[] { _this, match, tParameter, tMethodSignature };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_10_2_SolveCSP_bindingFBBBB(
			MethodParameterLinkFirst _this, Match match, TParameter tParameter, TMethodSignature tMethodSignature) {
		CSP _localVariable_0 = _this.isAppropriate_solveCsp_BWD(match, tParameter, tMethodSignature);
		CSP csp = _localVariable_0;
		if (csp != null) {
			return new Object[] { csp, _this, match, tParameter, tMethodSignature };
		}
		return null;
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_10_2_SolveCSP_bindingAndBlackFBBBB(
			MethodParameterLinkFirst _this, Match match, TParameter tParameter, TMethodSignature tMethodSignature) {
		Object[] result_pattern_MethodParameterLinkFirst_10_2_SolveCSP_binding = pattern_MethodParameterLinkFirst_10_2_SolveCSP_bindingFBBBB(
				_this, match, tParameter, tMethodSignature);
		if (result_pattern_MethodParameterLinkFirst_10_2_SolveCSP_binding != null) {
			CSP csp = (CSP) result_pattern_MethodParameterLinkFirst_10_2_SolveCSP_binding[0];

			Object[] result_pattern_MethodParameterLinkFirst_10_2_SolveCSP_black = pattern_MethodParameterLinkFirst_10_2_SolveCSP_blackB(
					csp);
			if (result_pattern_MethodParameterLinkFirst_10_2_SolveCSP_black != null) {

				return new Object[] { csp, _this, match, tParameter, tMethodSignature };
			}
		}
		return null;
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_10_4_collectelementstobetranslated_blackBBB(
			Match match, TParameter tParameter, TMethodSignature tMethodSignature) {
		return new Object[] { match, tParameter, tMethodSignature };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_10_4_collectelementstobetranslated_greenBBBF(
			Match match, TParameter tParameter, TMethodSignature tMethodSignature) {
		EMoflonEdge tMethodSignature__tParameter____firstParameter = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		String tMethodSignature__tParameter____firstParameter_name_prime = "firstParameter";
		tMethodSignature__tParameter____firstParameter.setSrc(tMethodSignature);
		tMethodSignature__tParameter____firstParameter.setTrg(tParameter);
		match.getToBeTranslatedEdges().add(tMethodSignature__tParameter____firstParameter);
		tMethodSignature__tParameter____firstParameter
				.setName(tMethodSignature__tParameter____firstParameter_name_prime);
		return new Object[] { match, tParameter, tMethodSignature, tMethodSignature__tParameter____firstParameter };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_10_5_collectcontextelements_blackBBB(Match match,
			TParameter tParameter, TMethodSignature tMethodSignature) {
		return new Object[] { match, tParameter, tMethodSignature };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_10_5_collectcontextelements_greenBBB(Match match,
			TParameter tParameter, TMethodSignature tMethodSignature) {
		match.getContextNodes().add(tParameter);
		match.getContextNodes().add(tMethodSignature);
		return new Object[] { match, tParameter, tMethodSignature };
	}

	public static final void pattern_MethodParameterLinkFirst_10_6_registerobjectstomatch_expressionBBBB(
			MethodParameterLinkFirst _this, Match match, TParameter tParameter, TMethodSignature tMethodSignature) {
		_this.registerObjectsToMatch_BWD(match, tParameter, tMethodSignature);

	}

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

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

	public static final Object[] pattern_MethodParameterLinkFirst_11_1_performtransformation_bindingFFFFFFB(
			IsApplicableMatch isApplicableMatch) {
		EObject _localVariable_0 = isApplicableMatch.getObject("tParameter");
		EObject _localVariable_1 = isApplicableMatch.getObject("eSingleVariableDeclarationToTParameter");
		EObject _localVariable_2 = isApplicableMatch.getObject("tMethodSignature");
		EObject _localVariable_3 = isApplicableMatch.getObject("mEntry");
		EObject _localVariable_4 = isApplicableMatch.getObject("mmethodSignatureToTMethodSignature");
		EObject _localVariable_5 = isApplicableMatch.getObject("mParameterList");
		EObject tmpTParameter = _localVariable_0;
		EObject tmpESingleVariableDeclarationToTParameter = _localVariable_1;
		EObject tmpTMethodSignature = _localVariable_2;
		EObject tmpMEntry = _localVariable_3;
		EObject tmpMmethodSignatureToTMethodSignature = _localVariable_4;
		EObject tmpMParameterList = _localVariable_5;
		if (tmpTParameter instanceof TParameter) {
			TParameter tParameter = (TParameter) tmpTParameter;
			if (tmpESingleVariableDeclarationToTParameter instanceof MEntryToTParameter) {
				MEntryToTParameter eSingleVariableDeclarationToTParameter = (MEntryToTParameter) tmpESingleVariableDeclarationToTParameter;
				if (tmpTMethodSignature instanceof TMethodSignature) {
					TMethodSignature tMethodSignature = (TMethodSignature) tmpTMethodSignature;
					if (tmpMEntry instanceof MEntry) {
						MEntry mEntry = (MEntry) tmpMEntry;
						if (tmpMmethodSignatureToTMethodSignature instanceof MSignatureToTSignature) {
							MSignatureToTSignature mmethodSignatureToTMethodSignature = (MSignatureToTSignature) tmpMmethodSignatureToTMethodSignature;
							if (tmpMParameterList instanceof MMethodSignature) {
								MMethodSignature mParameterList = (MMethodSignature) tmpMParameterList;
								return new Object[] { tParameter, eSingleVariableDeclarationToTParameter,
										tMethodSignature, mEntry, mmethodSignatureToTMethodSignature, mParameterList,
										isApplicableMatch };
							}
						}
					}
				}
			}
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_11_1_performtransformation_blackBBBBBBFBB(
			TParameter tParameter, MEntryToTParameter eSingleVariableDeclarationToTParameter,
			TMethodSignature tMethodSignature, MEntry mEntry, MSignatureToTSignature mmethodSignatureToTMethodSignature,
			MMethodSignature mParameterList, MethodParameterLinkFirst _this, IsApplicableMatch isApplicableMatch) {
		for (EObject tmpCsp : isApplicableMatch.getAttributeInfo()) {
			if (tmpCsp instanceof CSP) {
				CSP csp = (CSP) tmpCsp;
				return new Object[] { tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
						mmethodSignatureToTMethodSignature, mParameterList, csp, _this, isApplicableMatch };
			}
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_11_1_performtransformation_bindingAndBlackFFFFFFFBB(
			MethodParameterLinkFirst _this, IsApplicableMatch isApplicableMatch) {
		Object[] result_pattern_MethodParameterLinkFirst_11_1_performtransformation_binding = pattern_MethodParameterLinkFirst_11_1_performtransformation_bindingFFFFFFB(
				isApplicableMatch);
		if (result_pattern_MethodParameterLinkFirst_11_1_performtransformation_binding != null) {
			TParameter tParameter = (TParameter) result_pattern_MethodParameterLinkFirst_11_1_performtransformation_binding[0];
			MEntryToTParameter eSingleVariableDeclarationToTParameter = (MEntryToTParameter) result_pattern_MethodParameterLinkFirst_11_1_performtransformation_binding[1];
			TMethodSignature tMethodSignature = (TMethodSignature) result_pattern_MethodParameterLinkFirst_11_1_performtransformation_binding[2];
			MEntry mEntry = (MEntry) result_pattern_MethodParameterLinkFirst_11_1_performtransformation_binding[3];
			MSignatureToTSignature mmethodSignatureToTMethodSignature = (MSignatureToTSignature) result_pattern_MethodParameterLinkFirst_11_1_performtransformation_binding[4];
			MMethodSignature mParameterList = (MMethodSignature) result_pattern_MethodParameterLinkFirst_11_1_performtransformation_binding[5];

			Object[] result_pattern_MethodParameterLinkFirst_11_1_performtransformation_black = pattern_MethodParameterLinkFirst_11_1_performtransformation_blackBBBBBBFBB(
					tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
					mmethodSignatureToTMethodSignature, mParameterList, _this, isApplicableMatch);
			if (result_pattern_MethodParameterLinkFirst_11_1_performtransformation_black != null) {
				CSP csp = (CSP) result_pattern_MethodParameterLinkFirst_11_1_performtransformation_black[6];

				return new Object[] { tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
						mmethodSignatureToTMethodSignature, mParameterList, csp, _this, isApplicableMatch };
			}
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_11_1_performtransformation_greenBB(MEntry mEntry,
			MMethodSignature mParameterList) {
		mParameterList.setMFirstEntry(mEntry);
		return new Object[] { mEntry, mParameterList };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_11_2_collecttranslatedelements_greenF() {
		PerformRuleResult ruleresult = RuntimeFactory.eINSTANCE.createPerformRuleResult();
		return new Object[] { ruleresult };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_11_3_bookkeepingforedges_blackBBBBBBB(
			PerformRuleResult ruleresult, EObject tParameter, EObject eSingleVariableDeclarationToTParameter,
			EObject tMethodSignature, EObject mEntry, EObject mmethodSignatureToTMethodSignature,
			EObject mParameterList) {
		if (!eSingleVariableDeclarationToTParameter.equals(tParameter)) {
			if (!eSingleVariableDeclarationToTParameter.equals(tMethodSignature)) {
				if (!eSingleVariableDeclarationToTParameter.equals(mEntry)) {
					if (!eSingleVariableDeclarationToTParameter.equals(mmethodSignatureToTMethodSignature)) {
						if (!eSingleVariableDeclarationToTParameter.equals(mParameterList)) {
							if (!tMethodSignature.equals(tParameter)) {
								if (!mEntry.equals(tParameter)) {
									if (!mEntry.equals(tMethodSignature)) {
										if (!mEntry.equals(mmethodSignatureToTMethodSignature)) {
											if (!mEntry.equals(mParameterList)) {
												if (!mmethodSignatureToTMethodSignature.equals(tParameter)) {
													if (!mmethodSignatureToTMethodSignature.equals(tMethodSignature)) {
														if (!mParameterList.equals(tParameter)) {
															if (!mParameterList.equals(tMethodSignature)) {
																if (!mParameterList
																		.equals(mmethodSignatureToTMethodSignature)) {
																	return new Object[] { ruleresult, tParameter,
																			eSingleVariableDeclarationToTParameter,
																			tMethodSignature, mEntry,
																			mmethodSignatureToTMethodSignature,
																			mParameterList };
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_11_3_bookkeepingforedges_greenBBBBBFF(
			PerformRuleResult ruleresult, EObject tParameter, EObject tMethodSignature, EObject mEntry,
			EObject mParameterList) {
		EMoflonEdge tMethodSignature__tParameter____firstParameter = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge mParameterList__mEntry____mFirstEntry = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		String ruleresult_ruleName_prime = "MethodParameterLinkFirst";
		String tMethodSignature__tParameter____firstParameter_name_prime = "firstParameter";
		String mParameterList__mEntry____mFirstEntry_name_prime = "mFirstEntry";
		tMethodSignature__tParameter____firstParameter.setSrc(tMethodSignature);
		tMethodSignature__tParameter____firstParameter.setTrg(tParameter);
		ruleresult.getTranslatedEdges().add(tMethodSignature__tParameter____firstParameter);
		mParameterList__mEntry____mFirstEntry.setSrc(mParameterList);
		mParameterList__mEntry____mFirstEntry.setTrg(mEntry);
		ruleresult.getCreatedEdges().add(mParameterList__mEntry____mFirstEntry);
		ruleresult.setRuleName(ruleresult_ruleName_prime);
		tMethodSignature__tParameter____firstParameter
				.setName(tMethodSignature__tParameter____firstParameter_name_prime);
		mParameterList__mEntry____mFirstEntry.setName(mParameterList__mEntry____mFirstEntry_name_prime);
		return new Object[] { ruleresult, tParameter, tMethodSignature, mEntry, mParameterList,
				tMethodSignature__tParameter____firstParameter, mParameterList__mEntry____mFirstEntry };
	}

	public static final void pattern_MethodParameterLinkFirst_11_5_registerobjects_expressionBBBBBBBB(
			MethodParameterLinkFirst _this, PerformRuleResult ruleresult, EObject tParameter,
			EObject eSingleVariableDeclarationToTParameter, EObject tMethodSignature, EObject mEntry,
			EObject mmethodSignatureToTMethodSignature, EObject mParameterList) {
		_this.registerObjects_BWD(ruleresult, tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature,
				mEntry, mmethodSignatureToTMethodSignature, mParameterList);

	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_12_1_preparereturnvalue_bindingFB(
			MethodParameterLinkFirst _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_MethodParameterLinkFirst_12_1_preparereturnvalue_blackFBB(EClass eClass,
			MethodParameterLinkFirst _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_MethodParameterLinkFirst_12_1_preparereturnvalue_bindingAndBlackFFB(
			MethodParameterLinkFirst _this) {
		Object[] result_pattern_MethodParameterLinkFirst_12_1_preparereturnvalue_binding = pattern_MethodParameterLinkFirst_12_1_preparereturnvalue_bindingFB(
				_this);
		if (result_pattern_MethodParameterLinkFirst_12_1_preparereturnvalue_binding != null) {
			EClass eClass = (EClass) result_pattern_MethodParameterLinkFirst_12_1_preparereturnvalue_binding[0];

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

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

	public static final Object[] pattern_MethodParameterLinkFirst_12_1_preparereturnvalue_greenBF(
			EOperation performOperation) {
		IsApplicableRuleResult ruleresult = RuntimeFactory.eINSTANCE.createIsApplicableRuleResult();
		boolean ruleresult_success_prime = Boolean.valueOf(false);
		String ruleresult_rule_prime = "MethodParameterLinkFirst";
		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_MethodParameterLinkFirst_12_2_corematch_bindingFFB(Match match) {
		EObject _localVariable_0 = match.getObject("tParameter");
		EObject _localVariable_1 = match.getObject("tMethodSignature");
		EObject tmpTParameter = _localVariable_0;
		EObject tmpTMethodSignature = _localVariable_1;
		if (tmpTParameter instanceof TParameter) {
			TParameter tParameter = (TParameter) tmpTParameter;
			if (tmpTMethodSignature instanceof TMethodSignature) {
				TMethodSignature tMethodSignature = (TMethodSignature) tmpTMethodSignature;
				return new Object[] { tParameter, tMethodSignature, match };
			}
		}
		return null;
	}

	public static final Iterable<Object[]> pattern_MethodParameterLinkFirst_12_2_corematch_blackBFBFFFB(
			TParameter tParameter, TMethodSignature tMethodSignature, Match match) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		for (MSignatureToTSignature mmethodSignatureToTMethodSignature : org.moflon.core.utilities.eMoflonEMFUtil
				.getOppositeReferenceTyped(tMethodSignature, MSignatureToTSignature.class, "target")) {
			MSignature tmpMParameterList = mmethodSignatureToTMethodSignature.getSource();
			if (tmpMParameterList instanceof MMethodSignature) {
				MMethodSignature mParameterList = (MMethodSignature) tmpMParameterList;
				for (MEntryToTParameter eSingleVariableDeclarationToTParameter : org.moflon.core.utilities.eMoflonEMFUtil
						.getOppositeReferenceTyped(tParameter, MEntryToTParameter.class, "target")) {
					MEntry mEntry = eSingleVariableDeclarationToTParameter.getSource();
					if (mEntry != null) {
						_result.add(new Object[] { tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature,
								mEntry, mmethodSignatureToTMethodSignature, mParameterList, match });
					}

				}
			}

		}
		return _result;
	}

	public static final Iterable<Object[]> pattern_MethodParameterLinkFirst_12_3_findcontext_blackBBBBBB(
			TParameter tParameter, MEntryToTParameter eSingleVariableDeclarationToTParameter,
			TMethodSignature tMethodSignature, MEntry mEntry, MSignatureToTSignature mmethodSignatureToTMethodSignature,
			MMethodSignature mParameterList) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		if (mEntry.equals(eSingleVariableDeclarationToTParameter.getSource())) {
			if (tMethodSignature.equals(mmethodSignatureToTMethodSignature.getTarget())) {
				if (tParameter.equals(tMethodSignature.getFirstParameter())) {
					if (tParameter.equals(eSingleVariableDeclarationToTParameter.getTarget())) {
						if (mParameterList.equals(mmethodSignatureToTMethodSignature.getSource())) {
							_result.add(new Object[] { tParameter, eSingleVariableDeclarationToTParameter,
									tMethodSignature, mEntry, mmethodSignatureToTMethodSignature, mParameterList });
						}
					}
				}
			}
		}
		return _result;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_12_3_findcontext_greenBBBBBBFFFFFF(
			TParameter tParameter, MEntryToTParameter eSingleVariableDeclarationToTParameter,
			TMethodSignature tMethodSignature, MEntry mEntry, MSignatureToTSignature mmethodSignatureToTMethodSignature,
			MMethodSignature mParameterList) {
		IsApplicableMatch isApplicableMatch = RuntimeFactory.eINSTANCE.createIsApplicableMatch();
		EMoflonEdge eSingleVariableDeclarationToTParameter__mEntry____source = RuntimeFactory.eINSTANCE
				.createEMoflonEdge();
		EMoflonEdge mmethodSignatureToTMethodSignature__tMethodSignature____target = RuntimeFactory.eINSTANCE
				.createEMoflonEdge();
		EMoflonEdge tMethodSignature__tParameter____firstParameter = RuntimeFactory.eINSTANCE.createEMoflonEdge();
		EMoflonEdge eSingleVariableDeclarationToTParameter__tParameter____target = RuntimeFactory.eINSTANCE
				.createEMoflonEdge();
		EMoflonEdge mmethodSignatureToTMethodSignature__mParameterList____source = RuntimeFactory.eINSTANCE
				.createEMoflonEdge();
		String eSingleVariableDeclarationToTParameter__mEntry____source_name_prime = "source";
		String mmethodSignatureToTMethodSignature__tMethodSignature____target_name_prime = "target";
		String tMethodSignature__tParameter____firstParameter_name_prime = "firstParameter";
		String eSingleVariableDeclarationToTParameter__tParameter____target_name_prime = "target";
		String mmethodSignatureToTMethodSignature__mParameterList____source_name_prime = "source";
		isApplicableMatch.getAllContextElements().add(tParameter);
		isApplicableMatch.getAllContextElements().add(eSingleVariableDeclarationToTParameter);
		isApplicableMatch.getAllContextElements().add(tMethodSignature);
		isApplicableMatch.getAllContextElements().add(mEntry);
		isApplicableMatch.getAllContextElements().add(mmethodSignatureToTMethodSignature);
		isApplicableMatch.getAllContextElements().add(mParameterList);
		eSingleVariableDeclarationToTParameter__mEntry____source.setSrc(eSingleVariableDeclarationToTParameter);
		eSingleVariableDeclarationToTParameter__mEntry____source.setTrg(mEntry);
		isApplicableMatch.getAllContextElements().add(eSingleVariableDeclarationToTParameter__mEntry____source);
		mmethodSignatureToTMethodSignature__tMethodSignature____target.setSrc(mmethodSignatureToTMethodSignature);
		mmethodSignatureToTMethodSignature__tMethodSignature____target.setTrg(tMethodSignature);
		isApplicableMatch.getAllContextElements().add(mmethodSignatureToTMethodSignature__tMethodSignature____target);
		tMethodSignature__tParameter____firstParameter.setSrc(tMethodSignature);
		tMethodSignature__tParameter____firstParameter.setTrg(tParameter);
		isApplicableMatch.getAllContextElements().add(tMethodSignature__tParameter____firstParameter);
		eSingleVariableDeclarationToTParameter__tParameter____target.setSrc(eSingleVariableDeclarationToTParameter);
		eSingleVariableDeclarationToTParameter__tParameter____target.setTrg(tParameter);
		isApplicableMatch.getAllContextElements().add(eSingleVariableDeclarationToTParameter__tParameter____target);
		mmethodSignatureToTMethodSignature__mParameterList____source.setSrc(mmethodSignatureToTMethodSignature);
		mmethodSignatureToTMethodSignature__mParameterList____source.setTrg(mParameterList);
		isApplicableMatch.getAllContextElements().add(mmethodSignatureToTMethodSignature__mParameterList____source);
		eSingleVariableDeclarationToTParameter__mEntry____source
				.setName(eSingleVariableDeclarationToTParameter__mEntry____source_name_prime);
		mmethodSignatureToTMethodSignature__tMethodSignature____target
				.setName(mmethodSignatureToTMethodSignature__tMethodSignature____target_name_prime);
		tMethodSignature__tParameter____firstParameter
				.setName(tMethodSignature__tParameter____firstParameter_name_prime);
		eSingleVariableDeclarationToTParameter__tParameter____target
				.setName(eSingleVariableDeclarationToTParameter__tParameter____target_name_prime);
		mmethodSignatureToTMethodSignature__mParameterList____source
				.setName(mmethodSignatureToTMethodSignature__mParameterList____source_name_prime);
		return new Object[] { tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
				mmethodSignatureToTMethodSignature, mParameterList, isApplicableMatch,
				eSingleVariableDeclarationToTParameter__mEntry____source,
				mmethodSignatureToTMethodSignature__tMethodSignature____target,
				tMethodSignature__tParameter____firstParameter,
				eSingleVariableDeclarationToTParameter__tParameter____target,
				mmethodSignatureToTMethodSignature__mParameterList____source };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_12_4_solveCSP_bindingFBBBBBBBB(
			MethodParameterLinkFirst _this, IsApplicableMatch isApplicableMatch, TParameter tParameter,
			MEntryToTParameter eSingleVariableDeclarationToTParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, MMethodSignature mParameterList) {
		CSP _localVariable_0 = _this.isApplicable_solveCsp_BWD(isApplicableMatch, tParameter,
				eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry, mmethodSignatureToTMethodSignature,
				mParameterList);
		CSP csp = _localVariable_0;
		if (csp != null) {
			return new Object[] { csp, _this, isApplicableMatch, tParameter, eSingleVariableDeclarationToTParameter,
					tMethodSignature, mEntry, mmethodSignatureToTMethodSignature, mParameterList };
		}
		return null;
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_12_4_solveCSP_bindingAndBlackFBBBBBBBB(
			MethodParameterLinkFirst _this, IsApplicableMatch isApplicableMatch, TParameter tParameter,
			MEntryToTParameter eSingleVariableDeclarationToTParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, MMethodSignature mParameterList) {
		Object[] result_pattern_MethodParameterLinkFirst_12_4_solveCSP_binding = pattern_MethodParameterLinkFirst_12_4_solveCSP_bindingFBBBBBBBB(
				_this, isApplicableMatch, tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
				mmethodSignatureToTMethodSignature, mParameterList);
		if (result_pattern_MethodParameterLinkFirst_12_4_solveCSP_binding != null) {
			CSP csp = (CSP) result_pattern_MethodParameterLinkFirst_12_4_solveCSP_binding[0];

			Object[] result_pattern_MethodParameterLinkFirst_12_4_solveCSP_black = pattern_MethodParameterLinkFirst_12_4_solveCSP_blackB(
					csp);
			if (result_pattern_MethodParameterLinkFirst_12_4_solveCSP_black != null) {

				return new Object[] { csp, _this, isApplicableMatch, tParameter, eSingleVariableDeclarationToTParameter,
						tMethodSignature, mEntry, mmethodSignatureToTMethodSignature, mParameterList };
			}
		}
		return null;
	}

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

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

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

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

	public static final Object[] pattern_MethodParameterLinkFirst_20_1_preparereturnvalue_bindingFB(
			MethodParameterLinkFirst _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_MethodParameterLinkFirst_20_1_preparereturnvalue_blackFBBF(EClass __eClass,
			MethodParameterLinkFirst _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_MethodParameterLinkFirst_20_1_preparereturnvalue_bindingAndBlackFFBF(
			MethodParameterLinkFirst _this) {
		Object[] result_pattern_MethodParameterLinkFirst_20_1_preparereturnvalue_binding = pattern_MethodParameterLinkFirst_20_1_preparereturnvalue_bindingFB(
				_this);
		if (result_pattern_MethodParameterLinkFirst_20_1_preparereturnvalue_binding != null) {
			EClass __eClass = (EClass) result_pattern_MethodParameterLinkFirst_20_1_preparereturnvalue_binding[0];

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

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

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

	public static final Iterable<Object[]> pattern_MethodParameterLinkFirst_20_2_testcorematchandDECs_blackFFB(
			EMoflonEdge _edge_firstParameter) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		EObject tmpTMethodSignature = _edge_firstParameter.getSrc();
		if (tmpTMethodSignature instanceof TMethodSignature) {
			TMethodSignature tMethodSignature = (TMethodSignature) tmpTMethodSignature;
			EObject tmpTParameter = _edge_firstParameter.getTrg();
			if (tmpTParameter instanceof TParameter) {
				TParameter tParameter = (TParameter) tmpTParameter;
				if (tParameter.equals(tMethodSignature.getFirstParameter())) {
					_result.add(new Object[] { tParameter, tMethodSignature, _edge_firstParameter });
				}
			}

		}

		return _result;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_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_MethodParameterLinkFirst_20_3_bookkeepingwithgenericisAppropriatemethod_expressionFBBBB(
			MethodParameterLinkFirst _this, Match match, TParameter tParameter, TMethodSignature tMethodSignature) {
		boolean _localVariable_0 = _this.isAppropriate_BWD(match, tParameter, tMethodSignature);
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_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_MethodParameterLinkFirst_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_MethodParameterLinkFirst_20_6_expressionFB(EObjectContainer __result) {
		EObjectContainer _result = __result;
		return _result;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_21_1_preparereturnvalue_bindingFB(
			MethodParameterLinkFirst _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_MethodParameterLinkFirst_21_1_preparereturnvalue_blackFBBF(EClass __eClass,
			MethodParameterLinkFirst _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_MethodParameterLinkFirst_21_1_preparereturnvalue_bindingAndBlackFFBF(
			MethodParameterLinkFirst _this) {
		Object[] result_pattern_MethodParameterLinkFirst_21_1_preparereturnvalue_binding = pattern_MethodParameterLinkFirst_21_1_preparereturnvalue_bindingFB(
				_this);
		if (result_pattern_MethodParameterLinkFirst_21_1_preparereturnvalue_binding != null) {
			EClass __eClass = (EClass) result_pattern_MethodParameterLinkFirst_21_1_preparereturnvalue_binding[0];

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

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

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

	public static final Iterable<Object[]> pattern_MethodParameterLinkFirst_21_2_testcorematchandDECs_blackFFB(
			EMoflonEdge _edge_mFirstEntry) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		EObject tmpMParameterList = _edge_mFirstEntry.getSrc();
		if (tmpMParameterList instanceof MMethodSignature) {
			MMethodSignature mParameterList = (MMethodSignature) tmpMParameterList;
			EObject tmpMEntry = _edge_mFirstEntry.getTrg();
			if (tmpMEntry instanceof MEntry) {
				MEntry mEntry = (MEntry) tmpMEntry;
				if (mEntry.equals(mParameterList.getMFirstEntry())) {
					_result.add(new Object[] { mEntry, mParameterList, _edge_mFirstEntry });
				}
			}

		}

		return _result;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_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_MethodParameterLinkFirst_21_3_bookkeepingwithgenericisAppropriatemethod_expressionFBBBB(
			MethodParameterLinkFirst _this, Match match, MEntry mEntry, MMethodSignature mParameterList) {
		boolean _localVariable_0 = _this.isAppropriate_FWD(match, mEntry, mParameterList);
		boolean _result = Boolean.valueOf(_localVariable_0);
		return _result;
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_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_MethodParameterLinkFirst_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_MethodParameterLinkFirst_21_6_expressionFB(EObjectContainer __result) {
		EObjectContainer _result = __result;
		return _result;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_24_1_prepare_blackB(MethodParameterLinkFirst _this) {
		return new Object[] { _this };
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_bindingFFFFBB(
			Match targetMatch, Match sourceMatch) {
		EObject _localVariable_0 = targetMatch.getObject("tParameter");
		EObject _localVariable_1 = targetMatch.getObject("tMethodSignature");
		EObject _localVariable_2 = sourceMatch.getObject("mEntry");
		EObject _localVariable_3 = sourceMatch.getObject("mParameterList");
		EObject tmpTParameter = _localVariable_0;
		EObject tmpTMethodSignature = _localVariable_1;
		EObject tmpMEntry = _localVariable_2;
		EObject tmpMParameterList = _localVariable_3;
		if (tmpTParameter instanceof TParameter) {
			TParameter tParameter = (TParameter) tmpTParameter;
			if (tmpTMethodSignature instanceof TMethodSignature) {
				TMethodSignature tMethodSignature = (TMethodSignature) tmpTMethodSignature;
				if (tmpMEntry instanceof MEntry) {
					MEntry mEntry = (MEntry) tmpMEntry;
					if (tmpMParameterList instanceof MMethodSignature) {
						MMethodSignature mParameterList = (MMethodSignature) tmpMParameterList;
						return new Object[] { tParameter, tMethodSignature, mEntry, mParameterList, targetMatch,
								sourceMatch };
					}
				}
			}
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_blackBBBBBB(
			TParameter tParameter, TMethodSignature tMethodSignature, MEntry mEntry, MMethodSignature mParameterList,
			Match sourceMatch, Match targetMatch) {
		if (!sourceMatch.equals(targetMatch)) {
			return new Object[] { tParameter, tMethodSignature, mEntry, mParameterList, sourceMatch, targetMatch };
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_bindingAndBlackFFFFBB(
			Match sourceMatch, Match targetMatch) {
		Object[] result_pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_binding = pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_bindingFFFFBB(
				targetMatch, sourceMatch);
		if (result_pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_binding != null) {
			TParameter tParameter = (TParameter) result_pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_binding[0];
			TMethodSignature tMethodSignature = (TMethodSignature) result_pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_binding[1];
			MEntry mEntry = (MEntry) result_pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_binding[2];
			MMethodSignature mParameterList = (MMethodSignature) result_pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_binding[3];

			Object[] result_pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_black = pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_blackBBBBBB(
					tParameter, tMethodSignature, mEntry, mParameterList, sourceMatch, targetMatch);
			if (result_pattern_MethodParameterLinkFirst_24_2_matchsrctrgcontext_black != null) {

				return new Object[] { tParameter, tMethodSignature, mEntry, mParameterList, sourceMatch, targetMatch };
			}
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_24_3_solvecsp_bindingFBBBBBBB(
			MethodParameterLinkFirst _this, TParameter tParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MMethodSignature mParameterList, Match sourceMatch, Match targetMatch) {
		CSP _localVariable_4 = _this.isApplicable_solveCsp_CC(tParameter, tMethodSignature, mEntry, mParameterList,
				sourceMatch, targetMatch);
		CSP csp = _localVariable_4;
		if (csp != null) {
			return new Object[] { csp, _this, tParameter, tMethodSignature, mEntry, mParameterList, sourceMatch,
					targetMatch };
		}
		return null;
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_24_3_solvecsp_bindingAndBlackFBBBBBBB(
			MethodParameterLinkFirst _this, TParameter tParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MMethodSignature mParameterList, Match sourceMatch, Match targetMatch) {
		Object[] result_pattern_MethodParameterLinkFirst_24_3_solvecsp_binding = pattern_MethodParameterLinkFirst_24_3_solvecsp_bindingFBBBBBBB(
				_this, tParameter, tMethodSignature, mEntry, mParameterList, sourceMatch, targetMatch);
		if (result_pattern_MethodParameterLinkFirst_24_3_solvecsp_binding != null) {
			CSP csp = (CSP) result_pattern_MethodParameterLinkFirst_24_3_solvecsp_binding[0];

			Object[] result_pattern_MethodParameterLinkFirst_24_3_solvecsp_black = pattern_MethodParameterLinkFirst_24_3_solvecsp_blackB(
					csp);
			if (result_pattern_MethodParameterLinkFirst_24_3_solvecsp_black != null) {

				return new Object[] { csp, _this, tParameter, tMethodSignature, mEntry, mParameterList, sourceMatch,
						targetMatch };
			}
		}
		return null;
	}

	public static final boolean pattern_MethodParameterLinkFirst_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_MethodParameterLinkFirst_24_5_matchcorrcontext_blackBFBBFBBB(
			TParameter tParameter, TMethodSignature tMethodSignature, MEntry mEntry, MMethodSignature mParameterList,
			Match sourceMatch, Match targetMatch) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		if (!sourceMatch.equals(targetMatch)) {
			for (MEntryToTParameter eSingleVariableDeclarationToTParameter : org.moflon.core.utilities.eMoflonEMFUtil
					.getOppositeReferenceTyped(mEntry, MEntryToTParameter.class, "source")) {
				if (tParameter.equals(eSingleVariableDeclarationToTParameter.getTarget())) {
					for (MSignatureToTSignature mmethodSignatureToTMethodSignature : org.moflon.core.utilities.eMoflonEMFUtil
							.getOppositeReferenceTyped(tMethodSignature, MSignatureToTSignature.class, "target")) {
						if (mParameterList.equals(mmethodSignatureToTMethodSignature.getSource())) {
							_result.add(new Object[] { tParameter, eSingleVariableDeclarationToTParameter,
									tMethodSignature, mEntry, mmethodSignatureToTMethodSignature, mParameterList,
									sourceMatch, targetMatch });
						}
					}
				}
			}
		}
		return _result;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_24_5_matchcorrcontext_greenBBBBF(
			MEntryToTParameter eSingleVariableDeclarationToTParameter,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, Match sourceMatch, Match targetMatch) {
		CCMatch ccMatch = RuntimeFactory.eINSTANCE.createCCMatch();
		String ccMatch_ruleName_prime = "MethodParameterLinkFirst";
		ccMatch.setSourceMatch(sourceMatch);
		ccMatch.setTargetMatch(targetMatch);
		ccMatch.getAllContextElements().add(eSingleVariableDeclarationToTParameter);
		ccMatch.getAllContextElements().add(mmethodSignatureToTMethodSignature);
		ccMatch.setRuleName(ccMatch_ruleName_prime);
		return new Object[] { eSingleVariableDeclarationToTParameter, mmethodSignatureToTMethodSignature, sourceMatch,
				targetMatch, ccMatch };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_24_6_createcorrespondence_blackBBBBB(
			TParameter tParameter, TMethodSignature tMethodSignature, MEntry mEntry, MMethodSignature mParameterList,
			CCMatch ccMatch) {
		return new Object[] { tParameter, tMethodSignature, mEntry, mParameterList, ccMatch };
	}

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

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

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

	public static final Object[] pattern_MethodParameterLinkFirst_27_1_matchtggpattern_blackBB(MEntry mEntry,
			MMethodSignature mParameterList) {
		if (mEntry.equals(mParameterList.getMFirstEntry())) {
			return new Object[] { mEntry, mParameterList };
		}
		return null;
	}

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

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

	public static final Object[] pattern_MethodParameterLinkFirst_28_1_matchtggpattern_blackBB(TParameter tParameter,
			TMethodSignature tMethodSignature) {
		if (tParameter.equals(tMethodSignature.getFirstParameter())) {
			return new Object[] { tParameter, tMethodSignature };
		}
		return null;
	}

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

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

	public static final Object[] pattern_MethodParameterLinkFirst_29_1_createresult_blackB(
			MethodParameterLinkFirst _this) {
		return new Object[] { _this };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_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_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_0BB(
			ModelgeneratorRuleResult ruleResult, TParameter tParameter) {
		if (ruleResult.getTargetObjects().contains(tParameter)) {
			return new Object[] { ruleResult, tParameter };
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_1BB(
			ModelgeneratorRuleResult ruleResult, MEntryToTParameter eSingleVariableDeclarationToTParameter) {
		if (ruleResult.getCorrObjects().contains(eSingleVariableDeclarationToTParameter)) {
			return new Object[] { ruleResult, eSingleVariableDeclarationToTParameter };
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_2BB(
			ModelgeneratorRuleResult ruleResult, MEntry mEntry) {
		if (ruleResult.getSourceObjects().contains(mEntry)) {
			return new Object[] { ruleResult, mEntry };
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_3BB(
			ModelgeneratorRuleResult ruleResult, TMethodSignature tMethodSignature) {
		if (ruleResult.getTargetObjects().contains(tMethodSignature)) {
			return new Object[] { ruleResult, tMethodSignature };
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_4BB(
			ModelgeneratorRuleResult ruleResult, MSignatureToTSignature mmethodSignatureToTMethodSignature) {
		if (ruleResult.getCorrObjects().contains(mmethodSignatureToTMethodSignature)) {
			return new Object[] { ruleResult, mmethodSignatureToTMethodSignature };
		}
		return null;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_5BB(
			ModelgeneratorRuleResult ruleResult, MMethodSignature mParameterList) {
		if (ruleResult.getSourceObjects().contains(mParameterList)) {
			return new Object[] { ruleResult, mParameterList };
		}
		return null;
	}

	public static final Iterable<Object[]> pattern_MethodParameterLinkFirst_29_2_isapplicablecore_blackFFFFFFFFBB(
			RuleEntryContainer ruleEntryContainer, ModelgeneratorRuleResult ruleResult) {
		LinkedList<Object[]> _result = new LinkedList<Object[]>();
		for (RuleEntryList eSingleVariableDeclarationToTParameterList : ruleEntryContainer.getRuleEntryList()) {
			for (RuleEntryList mmethodSignatureToTMethodSignatureList : ruleEntryContainer.getRuleEntryList()) {
				if (!eSingleVariableDeclarationToTParameterList.equals(mmethodSignatureToTMethodSignatureList)) {
					for (EObject tmpESingleVariableDeclarationToTParameter : eSingleVariableDeclarationToTParameterList
							.getEntryObjects()) {
						if (tmpESingleVariableDeclarationToTParameter instanceof MEntryToTParameter) {
							MEntryToTParameter eSingleVariableDeclarationToTParameter = (MEntryToTParameter) tmpESingleVariableDeclarationToTParameter;
							TParameter tParameter = eSingleVariableDeclarationToTParameter.getTarget();
							if (tParameter != null) {
								MEntry mEntry = eSingleVariableDeclarationToTParameter.getSource();
								if (mEntry != null) {
									if (pattern_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_1BB(ruleResult,
											eSingleVariableDeclarationToTParameter) == null) {
										if (pattern_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_0BB(
												ruleResult, tParameter) == null) {
											if (pattern_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_2BB(
													ruleResult, mEntry) == null) {
												for (EObject tmpMmethodSignatureToTMethodSignature : mmethodSignatureToTMethodSignatureList
														.getEntryObjects()) {
													if (tmpMmethodSignatureToTMethodSignature instanceof MSignatureToTSignature) {
														MSignatureToTSignature mmethodSignatureToTMethodSignature = (MSignatureToTSignature) tmpMmethodSignatureToTMethodSignature;
														TSignature tmpTMethodSignature = mmethodSignatureToTMethodSignature
																.getTarget();
														if (tmpTMethodSignature instanceof TMethodSignature) {
															TMethodSignature tMethodSignature = (TMethodSignature) tmpTMethodSignature;
															MSignature tmpMParameterList = mmethodSignatureToTMethodSignature
																	.getSource();
															if (tmpMParameterList instanceof MMethodSignature) {
																MMethodSignature mParameterList = (MMethodSignature) tmpMParameterList;
																if (pattern_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_4BB(
																		ruleResult,
																		mmethodSignatureToTMethodSignature) == null) {
																	if (pattern_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_3BB(
																			ruleResult, tMethodSignature) == null) {
																		if (pattern_MethodParameterLinkFirst_29_2_isapplicablecore_black_nac_5BB(
																				ruleResult, mParameterList) == null) {
																			_result.add(new Object[] {
																					eSingleVariableDeclarationToTParameterList,
																					tParameter,
																					eSingleVariableDeclarationToTParameter,
																					mEntry,
																					mmethodSignatureToTMethodSignatureList,
																					tMethodSignature,
																					mmethodSignatureToTMethodSignature,
																					mParameterList, ruleEntryContainer,
																					ruleResult });
																		}
																	}
																}
															}

														}

													}
												}
											}
										}
									}
								}

							}

						}
					}
				}
			}
		}
		return _result;
	}

	public static final Object[] pattern_MethodParameterLinkFirst_29_3_solveCSP_bindingFBBBBBBBBB(
			MethodParameterLinkFirst _this, IsApplicableMatch isApplicableMatch, TParameter tParameter,
			MEntryToTParameter eSingleVariableDeclarationToTParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, MMethodSignature mParameterList,
			ModelgeneratorRuleResult ruleResult) {
		CSP _localVariable_0 = _this.generateModel_solveCsp_BWD(isApplicableMatch, tParameter,
				eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry, mmethodSignatureToTMethodSignature,
				mParameterList, ruleResult);
		CSP csp = _localVariable_0;
		if (csp != null) {
			return new Object[] { csp, _this, isApplicableMatch, tParameter, eSingleVariableDeclarationToTParameter,
					tMethodSignature, mEntry, mmethodSignatureToTMethodSignature, mParameterList, ruleResult };
		}
		return null;
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_29_3_solveCSP_bindingAndBlackFBBBBBBBBB(
			MethodParameterLinkFirst _this, IsApplicableMatch isApplicableMatch, TParameter tParameter,
			MEntryToTParameter eSingleVariableDeclarationToTParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, MMethodSignature mParameterList,
			ModelgeneratorRuleResult ruleResult) {
		Object[] result_pattern_MethodParameterLinkFirst_29_3_solveCSP_binding = pattern_MethodParameterLinkFirst_29_3_solveCSP_bindingFBBBBBBBBB(
				_this, isApplicableMatch, tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
				mmethodSignatureToTMethodSignature, mParameterList, ruleResult);
		if (result_pattern_MethodParameterLinkFirst_29_3_solveCSP_binding != null) {
			CSP csp = (CSP) result_pattern_MethodParameterLinkFirst_29_3_solveCSP_binding[0];

			Object[] result_pattern_MethodParameterLinkFirst_29_3_solveCSP_black = pattern_MethodParameterLinkFirst_29_3_solveCSP_blackB(
					csp);
			if (result_pattern_MethodParameterLinkFirst_29_3_solveCSP_black != null) {

				return new Object[] { csp, _this, isApplicableMatch, tParameter, eSingleVariableDeclarationToTParameter,
						tMethodSignature, mEntry, mmethodSignatureToTMethodSignature, mParameterList, ruleResult };
			}
		}
		return null;
	}

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

	public static final Object[] pattern_MethodParameterLinkFirst_29_5_checknacs_blackBBBBBB(TParameter tParameter,
			MEntryToTParameter eSingleVariableDeclarationToTParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, MMethodSignature mParameterList) {
		return new Object[] { tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
				mmethodSignatureToTMethodSignature, mParameterList };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_29_6_perform_blackBBBBBBB(TParameter tParameter,
			MEntryToTParameter eSingleVariableDeclarationToTParameter, TMethodSignature tMethodSignature, MEntry mEntry,
			MSignatureToTSignature mmethodSignatureToTMethodSignature, MMethodSignature mParameterList,
			ModelgeneratorRuleResult ruleResult) {
		return new Object[] { tParameter, eSingleVariableDeclarationToTParameter, tMethodSignature, mEntry,
				mmethodSignatureToTMethodSignature, mParameterList, ruleResult };
	}

	public static final Object[] pattern_MethodParameterLinkFirst_29_6_perform_greenBBBBB(TParameter tParameter,
			TMethodSignature tMethodSignature, MEntry mEntry, MMethodSignature mParameterList,
			ModelgeneratorRuleResult ruleResult) {
		tMethodSignature.setFirstParameter(tParameter);
		mParameterList.setMFirstEntry(mEntry);
		boolean ruleResult_success_prime = Boolean.valueOf(true);
		int _localVariable_0 = ruleResult.getIncrementedPerformCount();
		ruleResult.setSuccess(Boolean.valueOf(ruleResult_success_prime));
		int ruleResult_performCount_prime = Integer.valueOf(_localVariable_0);
		ruleResult.setPerformCount(Integer.valueOf(ruleResult_performCount_prime));
		return new Object[] { tParameter, tMethodSignature, mEntry, mParameterList, ruleResult };
	}

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

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

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