/src/tools/semantics/types/liberty_delayed_resolver.e

http://github.com/tybor/Liberty · Specman e · 53 lines · 30 code · 6 blank · 17 comment · 0 complexity · e3dd23dff123b187f7ad770dd379ac0b 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. deferred class LIBERTY_DELAYED_RESOLVER
  16. --
  17. -- Design pattern: Strategy. Used by LIBERTY_DELAYED_TYPE to resolve a type.
  18. --
  19. insert
  20. HASHABLE
  21. undefine out_in_tagged_out_memory
  22. end
  23. LOGGING
  24. undefine out_in_tagged_out_memory, is_equal
  25. end
  26. feature {LIBERTY_DELAYED_TYPE}
  27. can_resolve: BOOLEAN is
  28. deferred
  29. end
  30. resolved: LIBERTY_KNOWN_TYPE is
  31. require
  32. can_resolve
  33. deferred
  34. ensure
  35. Result /= Void
  36. end
  37. full_name: FIXED_STRING is
  38. deferred
  39. end
  40. specialized_in (a_type: LIBERTY_ACTUAL_TYPE): like Current is
  41. require
  42. a_type /= Void
  43. deferred
  44. ensure
  45. Result /= Void
  46. end
  47. end -- class LIBERTY_DELAYED_RESOLVER