public String getOperationValue(GenOperation genOperation) { List<GenOperation> allOperations = getAllGenOperations(false); int i = allOperations.indexOf(genOperation); GenClass base = getBaseGenClass(); if (base == null) { return Integer.toString(i); } int baseCount = base.getOperationCount(); if (i < baseCount) { return getGenPackage() == base.getGenPackage() ? base.getOperationID(genOperation, false) : base.getQualifiedOperationID(genOperation); } String baseCountID = getGenPackage() == base.getGenPackage() ? base.getOperationCountID() : base.getQualifiedOperationCountID(); return baseCountID + " + " + Integer.toString(i - baseCount); }
stringBuffer.append(genClass.getFormattedName()); stringBuffer.append(TEXT_24); stringBuffer.append(genClass.getOperationID(genOperation)); stringBuffer.append(TEXT_25); stringBuffer.append(++count);
stringBuffer.append(genClass.getFormattedName()); stringBuffer.append(TEXT_23); stringBuffer.append(genClass.getOperationID(genOperation)); stringBuffer.append(TEXT_24); stringBuffer.append(++count);
stringBuffer.append(publicStaticFinalFlag); stringBuffer.append(TEXT_54); stringBuffer.append(genClass.getOperationID(genOperation, false)); stringBuffer.append(TEXT_55); stringBuffer.append(genClass.getOperationValue(genOperation)); stringBuffer.append(genClass.getClassifierInstanceName()); stringBuffer.append(TEXT_197); stringBuffer.append(genClass.getOperationID(genOperation, false)); stringBuffer.append(TEXT_174); stringBuffer.append(genOperation.getImportedMetaType()); stringBuffer.append(TEXT_69); stringBuffer.append(genClass.getOperationID(genOperation, false)); stringBuffer.append(TEXT_330); stringBuffer.append(genOperation.getOperationAccessorName());
stringBuffer.append(opClass.getGenPackage().getImportedValidatorClassName()); stringBuffer.append(TEXT_1018); stringBuffer.append(opClass.getOperationID(genOperation)); stringBuffer.append(TEXT_1019); stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.plugin.EcorePlugin"));
stringBuffer.append(opClass.getGenPackage().getImportedValidatorClassName()); stringBuffer.append(TEXT_189); stringBuffer.append(opClass.getOperationID(genOperation)); stringBuffer.append(TEXT_146); } else { stringBuffer.append(opClass.getGenPackage().getImportedValidatorClassName()); stringBuffer.append(TEXT_189); stringBuffer.append(opClass.getOperationID(genOperation)); stringBuffer.append(TEXT_484); stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.plugin.EcorePlugin"));
public String getQualifiedOperationAccessor() { if (getGenModel().isOperationReflection()) { return getGenPackage().isLiteralsInterface() ? getGenPackage().getImportedPackageInterfaceName() + ".Literals." + getGenClass().getOperationID(this, false) : getQualifiedOperationAccessorName() + "()"; } else { return getGenClass().getQualifiedClassifierAccessor() + ".getEOperations().get(" + getGenClass().getLocalOperationIndex(this) + ")"; } }