note description: "Class domain item" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class EB_CLASS_DOMAIN_ITEM inherit EB_DOMAIN_ITEM redefine is_class_item, is_valid end create make feature -- Status report is_class_item: BOOLEAN = True -- Is current a class item? is_valid: BOOLEAN -- Does current represent a valid domain item? do update Result := conf_class /= Void end feature -- Access domain (a_scope: QL_SCOPE): QL_DOMAIN -- New query lanaguage domain representing current item do Result := ql_class.wrapped_domain end string_representation: STRING_32 -- Text of current item do update Result := string_representation_internal end ql_class: QL_CLASS -- QL_CLASS object representing current item require valid: is_valid do update Result := query_class_item end query_language_item: QL_ITEM -- Query language item representation of current domain item do Result := ql_class end group: QL_GROUP -- Group to which current domain item belongs -- Return the group where current class is located. do Result ?= query_language_item.parent ensure then result_attached: Result /= Void end sorting_order_index: INTEGER -- Sorting order index do Result := class_index end item_type_name: STRING_GENERAL -- Name of type of current item do Result := names.l_class_domain_item end feature{NONE} -- Implemenation update -- Update status of current item. do if not is_up_to_date then conf_class := class_of_id (id) if conf_class /= Void and then conf_class.is_valid then query_class_item := query_class_item_from_conf_class (conf_class) string_representation_internal := query_class_item.name else conf_class := Void if last_class_name /= Void and then not last_class_name.is_empty then string_representation_internal := last_class_name.twin else string_representation_internal := names.l_invalid_item end query_class_item := Void end update_last_compilation_count end end conf_class: CONF_CLASS -- Class represented by `id' query_class_item: QL_CLASS -- Query language class item represented by `id' invariant class_exists: is_valid implies conf_class /= Void note copyright: "Copyright (c) 1984-2018, 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 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end