1 # This file is part of NIT ( http://www.nitlanguage.org ).
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # This file is generated by nitserial
16 # Saved here for testing
17 module test_deserialization_serial
19 import test_deserialization
22 redef class Deserializer
23 redef fun deserialize_class
(name
)
25 # Module: test_deserialization
26 if name
== "Array[Object]" then return new Array[Object].from_deserializer
(self)
27 if name
== "Array[nullable Serializable]" then return new Array[nullable Serializable].from_deserializer
(self)
28 if name
== "F[Int]" then return new F
[Int].from_deserializer
(self)
29 if name
== "F[Float]" then return new F
[Float].from_deserializer
(self)
30 if name
== "HashSet[Int]" then return new HashSet[Int].from_deserializer
(self)
31 if name
== "ArraySet[String]" then return new ArraySet[String].from_deserializer
(self)
32 if name
== "HashMap[String, Int]" then return new HashMap[String, Int].from_deserializer
(self)
33 if name
== "ArrayMap[String, String]" then return new ArrayMap[String, String].from_deserializer
(self)
34 if name
== "Array[Serializable]" then return new Array[Serializable].from_deserializer
(self)
35 if name
== "Array[String]" then return new Array[String].from_deserializer
(self)
36 if name
== "Array[Couple[String, String]]" then return new Array[Couple[String, String]].from_deserializer
(self)