Back to index

rabbitmq-server  2.8.4
Public Member Functions | Public Attributes | Static Public Attributes
amqp_codegen.AmqpSpec Class Reference

List of all members.

Public Member Functions

def __init__
def allClasses
def allMethods
def resolveDomain

Public Attributes

 spec
 major
 minor
 revision
 port
 domains
 constants
 classes

Static Public Attributes

 ignore_conflicts = False

Detailed Description

Definition at line 132 of file amqp_codegen.py.


Constructor & Destructor Documentation

def amqp_codegen.AmqpSpec.__init__ (   self,
  filenames 
)

Definition at line 137 of file amqp_codegen.py.

00137 
00138     def __init__(self, filenames):
00139         self.spec = merge_load_specs(filenames, AmqpSpec.ignore_conflicts)
00140 
00141         self.major = self.spec['major-version']
00142         self.minor = self.spec['minor-version']
00143         self.revision = self.spec.has_key('revision') and self.spec['revision'] or 0
00144         self.port =  self.spec['port']
00145 
00146         self.domains = {}
00147         insert_base_types(self.domains)
00148         for entry in self.spec['domains']:
00149             self.domains[ entry[0] ] = entry[1]
00150 
00151         self.constants = []
00152         for d in self.spec['constants']:
00153             if d.has_key('class'):
00154                 klass = d['class']
00155             else:
00156                 klass = ''
00157             self.constants.append((d['name'], d['value'], klass))
00158 
00159         self.classes = []
00160         for element in self.spec['classes']:
00161             self.classes.append(AmqpClass(self, element))
        

Member Function Documentation

Definition at line 162 of file amqp_codegen.py.

00162 
00163     def allClasses(self):
00164         return self.classes
    

Definition at line 165 of file amqp_codegen.py.

00165 
00166     def allMethods(self):
00167         return [m for c in self.classes for m in c.allMethods()]

def amqp_codegen.AmqpSpec.resolveDomain (   self,
  n 
)

Definition at line 168 of file amqp_codegen.py.

00168 
00169     def resolveDomain(self, n):
00170         return self.domains[n]


Member Data Documentation

Definition at line 158 of file amqp_codegen.py.

Definition at line 150 of file amqp_codegen.py.

Definition at line 145 of file amqp_codegen.py.

Definition at line 135 of file amqp_codegen.py.

Definition at line 140 of file amqp_codegen.py.

Definition at line 141 of file amqp_codegen.py.

Definition at line 143 of file amqp_codegen.py.

Definition at line 142 of file amqp_codegen.py.

Definition at line 138 of file amqp_codegen.py.


The documentation for this class was generated from the following file: