PageRenderTime 17ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/src/lib/parse/eiffel/typed_eiffel_image.e

http://github.com/tybor/Liberty
Specman e | 55 lines | 26 code | 6 blank | 23 comment | 0 complexity | 40fc8c930ba71366a725494b6d0ef6ee MD5 | raw file
 1-- This file is part of a Liberty Eiffel library.
 2-- See the full copyright at the end.
 3--
 4class TYPED_EIFFEL_IMAGE[E_]
 5
 6inherit
 7   EIFFEL_IMAGE
 8
 9creation {EIFFEL_GRAMMAR}
10   make
11
12feature {ANY}
13   decoded: E_
14
15feature {}
16   make (a_image: like image; a_decoded: like decoded; a_blanks: like blanks; a_position: like position) is
17      require
18         a_image /= Void
19         a_decoded /= Void
20      do
21         image := a_image
22         decoded := a_decoded
23         blanks := a_blanks
24         position := a_position
25      ensure
26         image = a_image
27         decoded = a_decoded
28         blanks = a_blanks
29         position = a_position
30      end
31
32invariant
33   decoded /= Void
34
35end -- class TYPED_EIFFEL_IMAGE
36--
37-- Copyright (c) 2009 by all the people cited in the AUTHORS file.
38--
39-- Permission is hereby granted, free of charge, to any person obtaining a copy
40-- of this software and associated documentation files (the "Software"), to deal
41-- in the Software without restriction, including without limitation the rights
42-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
43-- copies of the Software, and to permit persons to whom the Software is
44-- furnished to do so, subject to the following conditions:
45--
46-- The above copyright notice and this permission notice shall be included in
47-- all copies or substantial portions of the Software.
48--
49-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
52-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
54-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
55-- THE SOFTWARE.