diff options
Diffstat (limited to 'extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/jetsrc/org/eclipse/papyrus/cpp/codegen/jet/util/CppClassOperationsImplementation.java')
-rw-r--r-- | extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/jetsrc/org/eclipse/papyrus/cpp/codegen/jet/util/CppClassOperationsImplementation.java | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/jetsrc/org/eclipse/papyrus/cpp/codegen/jet/util/CppClassOperationsImplementation.java b/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/jetsrc/org/eclipse/papyrus/cpp/codegen/jet/util/CppClassOperationsImplementation.java deleted file mode 100644 index 377e7f579bf..00000000000 --- a/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/jetsrc/org/eclipse/papyrus/cpp/codegen/jet/util/CppClassOperationsImplementation.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 CEA List. - * All rights reserved. This program and the accompanying materials - * are property of the CEA, their use is subject to specific agreement - * with the CEA. - * - * Contributors: - * CEA List - initial API and implementation - *******************************************************************************/ - -package org.eclipse.papyrus.cpp.codegen.jet.util; - -import org.eclipse.uml2.uml.*; -import java.util.Iterator; -import org.eclipse.papyrus.cpp.codegen.utils.GenUtils; -import Cpp.*; - -public class CppClassOperationsImplementation -{ - protected static String nl; - public static synchronized CppClassOperationsImplementation create(String lineSeparator) - { - nl = lineSeparator; - CppClassOperationsImplementation result = new CppClassOperationsImplementation(); - nl = null; - return result; - } - - public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; - protected final String TEXT_1 = ""; - - public String generate(Object argument) - { - final StringBuffer stringBuffer = new StringBuffer(); - -////////////////////////////////////////////////////////////////////////////////////////// -// Java preparation -////////////////////////////////////////////////////////////////////////////////////////// - - // Retrieve the class - Classifier currentClass = (Classifier) argument; - String opDecl = ""; - - // Retrieve operations - Iterator<Operation> operations = currentClass.getOperations().iterator(); - while (operations.hasNext()) { - Operation currentOp = operations.next(); - if (!GenUtils.hasStereotype (currentOp, CppInline.class) && - !GenUtils.hasStereotype (currentOp, CppNoCodeGen.class) && - !currentOp.isAbstract()) { - CppOperationImplementation jetOpImpl = new CppOperationImplementation(); - opDecl = opDecl+jetOpImpl.generate(currentOp); - } - } - -////////////////////////////////////////////////////////////////////////////////////////// -// The following part contains the template -////////////////////////////////////////////////////////////////////////////////////////// - stringBuffer.append(TEXT_1); - stringBuffer.append( opDecl ); - return stringBuffer.toString(); - } -}
\ No newline at end of file |