public CollidingGenOperationFilter() { GenClass extendsClass = getClassExtendsGenClass(); if (extendsClass != null) { extendsGenClassOperations = extendsClass.getAllGenOperations(); } else { extendsGenClassOperations = Collections.emptyList(); } }
public CollidingGenOperationFilter() { GenClass extendsClass = getClassExtendsGenClass(); if (extendsClass != null) { extendsGenClassOperations = extendsClass.getAllGenOperations(); extendsGenClassFeatures = extendsClass.getAllGenFeatures(); } else { extendsGenClassOperations = Collections.emptyList(); extendsGenClassFeatures = Collections.emptyList(); } }
public String getGetAccessor() { String capName = getCapName(); if (isMapEntryFeature()) return "getTyped" + capName; String result = isBooleanType() ? "is" + capName : "get" + ("Class".equals(capName) ? "Class_" : capName); if (isListType() && !isFeatureMapType() && !isMapType() && getGenModel().isArrayAccessors()) { result += "List"; } GenClass rootImplementsInterface = getGenModel().getRootImplementsInterfaceGenClass(); GenClass context = getContext(); if (rootImplementsInterface != null && !rootImplementsInterface.isEObject()) { for (GenOperation genOperation : rootImplementsInterface.getAllGenOperations()) { if (genOperation.getName().equals(result) && genOperation.getGenParameters().isEmpty() && !genOperation.getType(context).equals(getType(context))) { result = result + "_"; break; } } } return result; }
stringBuffer.append(TEXT_56); if (genModel.isOperationReflection()) { for (GenOperation genOperation : genClass.getAllGenOperations(false)) { if (genClass.getOverrideGenOperation(genOperation) == null) { stringBuffer.append(TEXT_63);
if (rootImplementsInterface != null && !rootImplementsInterface.isEObject()) for (GenOperation genOperation : rootImplementsInterface.getAllGenOperations())
boolean isUnchecked = false; boolean isRaw = false; LOOP: for (GenOperation genOperation : (genModel.isMinimalReflectiveMethods() ? genClass.getImplementedGenOperations() : genClass.getAllGenOperations())) { for (GenParameter genParameter : genOperation.getGenParameters()) { if (genParameter.isUncheckedCast()) { if (genParameter.getTypeGenDataType() == null || !genParameter.getTypeGenDataType().isObjectType()) { isUnchecked = true; } if (genParameter.usesOperationTypeParameters() && !genParameter.getEcoreParameter().getEGenericType().getETypeArguments().isEmpty()) { isRaw = true; break LOOP; }}}} if (isUnchecked) { stringBuffer.append(TEXT_630); stringBuffer.append(negativeOperationOffsetCorrection); stringBuffer.append(TEXT_502); for (GenOperation genOperation : (genModel.isMinimalReflectiveMethods() ? genClass.getImplementedGenOperations() : genClass.getAllGenOperations())) { List<GenParameter> genParameters = genOperation.getGenParameters(); int size = genParameters.size(); boolean hasCheckedException = genOperation.hasCheckedException(); String indent = hasCheckedException ? "\t" : ""; GenOperation overrideGenOperation = genClass.getOverrideGenOperation(genOperation); stringBuffer.append(TEXT_503); stringBuffer.append(genClass.getQualifiedOperationID(overrideGenOperation != null ? overrideGenOperation : genOperation));