Ejemplo n.º 1
0
    def addField(self, fType, name):
        if name == "color":
            return F0(fType, self)

        if name == "edges":
            return F1(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 2
0
    def addField(self, fType, name):
        if name == "bool":
            return F0(fType, self)

        if name == "boolean":
            return F1(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 3
0
    def addField(self, fType, name):
        if name == "for":
            return F2(fType, self)

        if name == "if":
            return F3(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 4
0
    def addField(self, fType, name):
        if name == "f":
            return F7(fType, self)

        if name == "n":
            return F8(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 5
0
    def addField(self, fType, name):
        if name == "arguments":
            return F17(fType, self)

        if name == "operator":
            return F18(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 6
0
    def addField(self, fType, name):
        if name == "edges":
            return F2(fType, self)

        if name == "map":
            return F3(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 7
0
    def addField(self, fType, name):
        if name == "float32":
            return F3(fType, self)

        if name == "float64":
            return F4(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 8
0
    def addField(self, fType, name):
        if name == "anabstractnode":
            return F0(fType, self)

        if name == "anannotation":
            return F1(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 9
0
    def addField(self, fType, name):
        if name == "name":
            return F9(fType, self)

        if name == "version":
            return F10(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 10
0
    def addField(self, fType, name):
        if name == "age":
            return F0(fType, self)

        if name == "name":
            return F1(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 11
0
    def addField(self, fType, name):
        if name == "ignoreddata":
            return F1(fType, self)

        if name == "reflectivelyinvisible":
            return F2(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 12
0
    def addField(self, fType, name):
        if name == "next":
            return F1(fType, self)

        if name == "name":
            raise SkillException(
                "The file contains a field declaration %s.%s, but there is an auto field of similar name!"
                .format(self.name(), name))
        else:
            return LazyField(fType, name, self)
Ejemplo n.º 13
0
    def addField(self, fType, name):
        if name == "next":
            return F4(fType, self)

        if name == "color":
            return F5(fType, self)

        if name == "mark":
            return F6(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 14
0
    def addField(self, fType, name):
        if name == "one":
            return F0(fType, self)

        if name == "three":
            return F1(fType, self)

        if name == "two":
            return F2(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 15
0
    def addField(self, fType, name):
        if name == "property":
            return F0(fType, self)

        if name == "target":
            return F1(fType, self)

        if name == "text":
            return F2(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 16
0
    def addField(self, fType, name):
        if name == "age":
            return F6(fType, self)

        if name == "name":
            return F7(fType, self)

        if name == "reflectivelyvisible":
            return F8(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 17
0
    def addField(self, fType, name):
        if name == "int16":
            return F10(fType, self)

        if name == "int32":
            return F11(fType, self)

        if name == "int64i":
            return F12(fType, self)

        if name == "int64v":
            return F13(fType, self)

        if name == "int8":
            return F14(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 18
0
    def addField(self, fType, name):
        if name == "minuszero":
            return F5(fType, self)

        if name == "nan":
            return F6(fType, self)

        if name == "pi":
            return F7(fType, self)

        if name == "two":
            return F8(fType, self)

        if name == "zero":
            return F9(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 19
0
    def addField(self, fType, name):
        if name == "minuszero":
            return F0(fType, self)

        if name == "nan":
            return F1(fType, self)

        if name == "pi":
            return F2(fType, self)

        if name == "two":
            return F3(fType, self)

        if name == "zero":
            return F4(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 20
0
    def addField(self, fType, name):
        if name == "a":
            return F0(fType, self)

        if name == "b":
            return F1(fType, self)

        if name == "c":
            return F2(fType, self)

        if name == "d":
            return F3(fType, self)

        if name == "e":
            return F4(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 21
0
    def addField(self, fType, name):
        if name == "float":
            return F3(fType, self)

        if name == "message":
            return F4(fType, self)

        if name == "none":
            return F5(fType, self)

        if name == "nopdefault":
            return F6(fType, self)

        elif name == "system":
            raise SkillException(
                "The file contains a field declaration %s.%s, but there is an auto field of similar name!".format(
                    self.name(), name))
        else:
            return LazyField(fType, name, self)
Ejemplo n.º 22
0
    def addField(self, fType, name):
        if name == "degrees":
            return F11(fType, self)

        if name == "degrees2":
            return F12(fType, self)

        if name == "negative":
            return F13(fType, self)

        if name == "negative2":
            return F14(fType, self)

        if name == "positive":
            return F15(fType, self)

        if name == "positive2":
            return F16(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 23
0
    def addField(self, fType, name):
        if name == "arr":
            return F0(fType, self)

        if name == "f":
            return F1(fType, self)

        if name == "l":
            return F2(fType, self)

        if name == "s":
            return F3(fType, self)

        if name == "someset":
            return F4(fType, self)

        if name == "varr":
            return F5(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 24
0
    def addField(self, fType, name):
        if name == "number":
            return F0(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 25
0
    def addField(self, fType, name):
        if name == "ä":
            return F1(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 26
0
    def addField(self, fType, name):
        if name == "value":
            return F2(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 27
0
    def addField(self, fType, name):
        if name == "basicstring":
            return F15(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 28
0
    def addField(self, fType, name):
        if name == "amap":
            return F3(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 29
0
    def addField(self, fType, name):
        if name == "basicint":
            return F9(fType, self)

        else:
            return LazyField(fType, name, self)
Ejemplo n.º 30
0
    def addField(self, fType, name):
        if name == "basicbool":
            return F0(fType, self)

        else:
            return LazyField(fType, name, self)