Lines Matching refs:self
32 def __init__(self, slicc, request_types, states, events, next_state,
34 super(TransitionDeclAST, self).__init__(slicc)
36 self.request_types = request_types
37 self.states = states
38 self.events = events
39 self.next_state = next_state
40 self.actions = actions
42 def __repr__(self):
45 def generate(self):
46 machine = self.symtab.state_machine
49 self.error("Transition declaration not part of a machine.")
51 for action in self.actions:
53 self.error("Invalid action: %s is not part of machine: %s" % \
56 for request_type in self.request_types:
58 self.error("Invalid protocol access type: " \
62 for state in self.states:
64 self.error("Invalid state: %s is not part of machine: %s" % \
66 next_state = self.next_state or state
67 for event in self.events:
69 self.error("Invalid event: %s is not part of machine: %s" % \
71 t = Transition(self.symtab, machine, state, event, next_state,
72 self.actions, self.request_types, self.location)