note description: "Abstraction for a conversion." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" deferred class CONVERSION_INFO feature {NONE} -- Initialization make (a_target_type: like target_type) -- New instance of ANY to SYSTEM_OBJECT conversion. require a_target_type_not_void: a_target_type /= Void do target_type := a_target_type ensure target_type_set: target_type = a_target_type end feature -- Access target_type: TYPE_A -- Target type of a conversion feature -- Properties depend_unit: DEPEND_UNIT -- Associated depend unit used for incrementality require has_depend_unit: has_depend_unit do ensure depend_unit_not_void: Result /= Void end feature -- Status report has_depend_unit: BOOLEAN -- Can `depend_unit' be accessed? do end feature -- Byte code generation byte_node (an_expr: EXPR_B): EXPR_B -- Generate byte node needed to convert `an_expr' to `target_type' require an_expr_not_void: an_expr /= Void deferred ensure byte_node_not_void: Result /= Void end invariant target_type_not_void: target_type /= Void note copyright: "Copyright (c) 1984-2015, 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 -- class CONVERSION_INFO