/src/tools/interpreter/liberty_interpreter_object_boolean.e

http://github.com/tybor/Liberty · Specman e · 42 lines · 22 code · 6 blank · 14 comment · 1 complexity · b544115e349e719e21068537f7f42425 MD5 · raw file

  1. -- This file is part of Liberty Eiffel.
  2. --
  3. -- Liberty Eiffel is free software: you can redistribute it and/or modify
  4. -- it under the terms of the GNU General Public License as published by
  5. -- the Free Software Foundation, version 3 of the License.
  6. --
  7. -- Liberty Eiffel is distributed in the hope that it will be useful,
  8. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. -- GNU General Public License for more details.
  11. --
  12. -- You should have received a copy of the GNU General Public License
  13. -- along with Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>.
  14. --
  15. class LIBERTY_INTERPRETER_OBJECT_BOOLEAN
  16. inherit
  17. LIBERTY_INTERPRETER_OBJECT_NATIVE[BOOLEAN]
  18. creation {LIBERTY_INTERPRETER_OBJECT_CREATOR, LIBERTY_INTERPRETER_OBJECT_NATIVE, LIBERTY_INTERPRETER_NATIVE_ARRAY_ACCESSOR_FACTORY, LIBERTY_INTERPRETER}
  19. make, with_item
  20. feature {ANY}
  21. hash_code: INTEGER is
  22. do
  23. if item then
  24. Result := 97
  25. end
  26. end
  27. converted_to (target_type: LIBERTY_ACTUAL_TYPE): LIBERTY_INTERPRETER_OBJECT is
  28. do
  29. not_yet_implemented
  30. end
  31. feature {}
  32. expanded_twin: like Current is
  33. do
  34. create Result.with_item(interpreter, type, item, position)
  35. end
  36. end -- class LIBERTY_INTERPRETER_OBJECT_BOOLEAN