def __init__(self, name, linespan=None, lexspan=None, p=None): super(FieldType, self).__init__(linespan=linespan, lexspan=lexspan, p=p) self._fields += ['name'] self.name = name Base.p(self.name, self)
def __init__(self, link_type, src_port, name, through, dst_port, linespan=None, lexspan=None, p=None): super(LinkDefinition, self).__init__(linespan=linespan, lexspan=lexspan, p=p) self._fields += [ 'link_type', 'src_port', 'name', 'dst_port', 'through' ] self.link_type = link_type Base.p(self.link_type, self) self.src_port = src_port Base.p(self.src_port, self) self.name = name Base.p(self.name, self) self.through = through Base.p(self.through, self) self.dst_port = dst_port Base.p(self.dst_port, self)
def __init__(self, name, linespan=None, lexspan=None, p=None): super(PackageStatement, self).__init__(linespan=linespan, lexspan=lexspan, p=p) self._fields += ['name'] self.name = name Base.p(self.name, self)
def __init__(self, body, linespan=None, lexspan=None, p=None): super(ProtoFile, self).__init__(linespan=linespan, lexspan=lexspan, p=p) self._fields += ['body'] self.body = body Base.p(self.body, self)
def __init__(self, name, value, linespan=None, lexspan=None, p=None): super(FieldDirective, self).__init__(linespan=linespan, lexspan=lexspan, p=p) self._fields += ['name', 'value'] self.name = name Base.p(self.name, self) self.value = value Base.p(self.value, self)
def __init__(self, fromVal, toVal, linespan=None, lexspan=None, p=None): super(ExtensionsDirective, self).__init__(linespan=linespan, lexspan=lexspan, p=p) self._fields += ['fromVal', 'toVal'] self.fromVal = fromVal Base.p(self.fromVal, self) self.toVal = toVal Base.p(self.toVal, self)
def __init__(self, name, body, linespan=None, lexspan=None, p=None): super(ServiceDefinition, self).__init__(linespan=linespan, lexspan=lexspan, p=p) self._fields += ['name', 'body'] self.name = name Base.p(self.name, self) self.body = body Base.p(self.body, self)
def __init__(self, name, value, linespan=None, lexspan=None, p=None): super(OptionStatement, self).__init__(linespan=linespan, lexspan=lexspan, p=p) self._fields += ['name', 'value'] self.name = name Base.p(self.name, self) self.value = value Base.p(self.value, self)
def __init__(self, name, fieldId, linespan=None, lexspan=None, p=None): super(EnumFieldDefinition, self).__init__(linespan=linespan, lexspan=lexspan, p=p) self._fields += ['name', 'fieldId'] self.name = name Base.p(self.name, self) self.fieldId = fieldId Base.p(self.fieldId, self)
def __init__(self, field_spec, link_spec, linespan=None, lexspan=None, p=None): super(LinkSpec, self).__init__(linespan=linespan, lexspan=lexspan, p=p) self._fields += ['link_def', 'field_def'] self.link_def = link_spec Base.p(self.link_def, self) self.field_def = field_spec Base.p(self.field_def, self)
def __init__( self, name, policy, bases, body, linespan=None, lexspan=None, p=None): super( MessageDefinition, self).__init__( linespan=linespan, lexspan=lexspan, p=p) self._fields += ['name', 'policy', 'bases', 'body'] self.name = name Base.p(self.name, self) self.policy = policy Base.p(self.policy, self) self.bases = bases Base.p(self.bases, self) self.body = body Base.p(self.body, self)
def __init__(self, name, name2, name3, linespan=None, lexspan=None, p=None): super(MethodDefinition, self).__init__(linespan=linespan, lexspan=lexspan, p=p) self._fields += ['name', 'name2', 'name3'] self.name = name Base.p(self.name, self) self.name2 = name2 Base.p(self.name, self) self.name3 = name3 Base.p(self.name, self)
def __init__( self, field_modifier, ftype, name, policy, fieldId, fieldDirective, linespan=None, lexspan=None, p=None): super( FieldDefinition, self).__init__( linespan=linespan, lexspan=lexspan, p=p) self._fields += ['field_modifier', 'ftype', 'name', 'fieldId', 'policy', 'fieldDirective'] self.name = name Base.p(self.name, self) self.field_modifier = field_modifier Base.p(self.field_modifier, self) self.ftype = ftype Base.p(self.ftype, self) self.fieldId = fieldId self.policy = policy Base.p(self.policy, self) Base.p(self.fieldId, self) self.fieldDirective = fieldDirective Base.p(self.fieldDirective, self)