indexing description: "Stone representing a compiled Eiffel class." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision $" class CLASSC_STONE inherit CLASSI_STONE rename make as classi_make redefine is_valid, synchronized_stone, class_i, group, class_name, file_name, header, stone_signature, history_name end create make feature {NONE} -- Initialization make (a_class: CLASS_C) is -- Copy all information from argument -- OR KEEP A REFERENCE? do e_class := a_class end feature -- Properties e_class: CLASS_C group: CONF_GROUP is do Result := e_class.group end class_name: STRING is do Result := e_class.name end class_i: CLASS_I is do if e_class /= Void then Result := e_class.lace_class end end feature -- Access stone_signature: STRING is do Result := e_class.class_signature end history_name: STRING_GENERAL is do Result := Interface_names.s_Class_stone.as_string_32 + stone_signature end header: STRING_GENERAL is -- Display class name, class' cluster and class location in -- window title bar. do if e_class.is_precompiled then Result := interface_names.l_classc_header_precompiled (stone_signature, e_class.group.name) else Result := interface_names.l_classc_header (stone_signature, e_class.group.name, e_class.lace_class.file_name) end end file_name: FILE_NAME is -- The one from CLASSC do if e_class /= Void then create Result.make_from_string (e_class.file_name) end end feature -- Status report is_valid: BOOLEAN is -- Is `Current' a valid stone? do Result := e_class /= Void and then e_class.is_valid and then Precursor {CLASSI_STONE} end feature -- Synchronization synchronized_stone: CLASSI_STONE is -- Clone of `Current' stone after a recompilation -- (May be Void if not valid anymore. It may also be a -- classi_stone if the class is not compiled anymore) do if e_class /= Void then if e_class.is_valid then if is_valid then Result := Current else Result := create {CLASSC_STONE}.make (e_class) end else Result := Precursor {CLASSI_STONE} end end end indexing 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 CLASSC_STONE