note description: "represents a JVM feature (internal or external, inherited or not). this is a common heir." legal: "See notice at end of class." status: "See notice at end of class." author: "" date: "$Date$" revision: "$Revision$" deferred class JVM_FEATURE inherit SHARED_JVM_CLASS_REPOSITORY feature {ANY} -- Access feature_id: INTEGER -- id for feature in current class -- (if this is only a reflected feature this will not be the -- class where it is written, but the class where it is reflected) routine_id: INTEGER -- id for feature in inheritance tree -- use this id to look up precursors or redefinitions of -- this feature in descendants or heirs (feature will have -- same `routine_id' their) -- `-1' means the class does not have a routine id type_id: INTEGER -- is for class this feature is in -- (if this is only a reflected feature this will not be the -- class where it is written, but the class where it is reflected) -- `-1' means the class does not have a type id class_: JVM_CLASS -- the class corresponding to `type_id' require valid_type_id: type_id > 0 do Result := repository.item (type_id) ensure class_not_void: class_ /= Void end written_feature: JVM_WRITTEN_FEATURE -- Corresponding written feature -- May be `Current' in case this is not a reflected feature deferred ensure result_not_void: Result /= Void end feature {ANY} -- set_feature_id (i: INTEGER) -- set the feature id do feature_id := i ensure feature_id_set: feature_id = i end set_routine_id (i: INTEGER) -- set the routine id do routine_id := i ensure routine_id_set: routine_id = i end set_type_id (i: INTEGER) -- set the type_id do type_id := i ensure type_id_set: type_id = i 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