note description: "Information on an operation of the system for XMI export." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class XMI_OPERATION inherit XMI_FEATURE create make_op feature -- Initialization make_op (id: INTEGER; id_r: INTEGER; n: STRING; t: XMI_TYPE) -- Initialization of `Current'. do xmi_id := id id_return := id_r type := t name := n create arguments.make end feature -- Access arguments: LINKED_LIST [XMI_ARGUMENT] -- Formal arguments of `Current'. id_return: INTEGER -- XMI Id of `Current' Result. feature -- Element change add_argument (a: XMI_ARGUMENT) -- Adds `a' to `arguments'. require new_argument_not_void: a /= Void do arguments.extend (a) ensure new_argument_added: arguments.has (a) end feature -- Actions code: STRING -- XMI representation of the attribute. do Result := "%N% % ") Result.append (name) Result.append ("%N% % %N% % %N% % %N% % %N% % %N% % %N% % %N") from arguments.start until arguments.after loop Result.append (arguments.item.code) arguments.forth end if type.xmi_id /= 0 then Result.append ("%N% % ") Result.append (name) Result.append (".Return%N% % %N% % %N% % %N% % %N% % %N% % %N% % %N% % %N% % %N") if attached {XMI_CLASS} type as xmi_class then Result.append (" %N") else Result.append (" %N") end Result.append (" %N% % %N") end Result.append ("%N% % %N") end note copyright: "Copyright (c) 1984-2006, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class XMI_OPERATION