コード例 #1
0
 def _mapComponent(self, softpkg):
     javacomp = {}
     if self.package == '':
         javacomp['package'] = softpkg.basename() + '.java'
     else:
         javacomp['package'] = self.package
     userclass = softpkg.basename()
     baseclass = userclass + '_base'
     javacomp['baseclass'] = {
         'name': baseclass,
         'file': baseclass + '.java'
     }
     javacomp['userclass'] = {
         'name': userclass,
         'file': userclass + '.java'
     }
     javacomp['superclass'] = self.superclass(softpkg)
     javacomp['mainclass'] = java.qualifiedName(userclass,
                                                javacomp['package'])
     javacomp['jarfile'] = softpkg.basename() + '.jar'
     javacomp['interfacedeps'] = list(
         self.getInterfaceDependencies(softpkg))
     javacomp['interfacejars'] = self.getInterfaceJars(softpkg)
     javacomp['hasmultioutport'] = self.hasMultioutPort(softpkg)
     javacomp['hasfrontendprovides'] = self.hasFrontendProvidesPorts(
         softpkg)
     javacomp['hastunerstatusstructure'] = self.hasTunerStatusStructure(
         softpkg)
     javacomp['implements'] = self.getImplementedInterfaces(softpkg)
     return javacomp
コード例 #2
0
 def _mapComponent(self, softpkg):
     javacomp = {}
     javacomp['package'] = self.package
     userclass = softpkg.name()
     baseclass = userclass + '_base'
     javacomp['baseclass'] = {'name': baseclass,
                              'file': baseclass+'.java'}
     javacomp['userclass'] = {'name': userclass,
                              'file': userclass+'.java'}
     javacomp['superclass'] = self.superclass(softpkg)
     javacomp['mainclass'] = java.qualifiedName(userclass, self.package)
     javacomp['jarfile'] = softpkg.name() + '.jar'
     javacomp['interfacedeps'] = list(self.getInterfaceDependencies(softpkg))
     javacomp['interfacejars'] = self.getInterfaceJars(softpkg)
     javacomp['hasbulkio'] = self.hasBulkioPorts(softpkg)
     return javacomp
コード例 #3
0
 def _mapComponent(self, softpkg):
     javacomp = {}
     if self.package == '':
         javacomp['package'] = softpkg.basename()+'.java'
     else:
         javacomp['package'] = self.package
     userclass = softpkg.basename()
     baseclass = userclass + '_base'
     javacomp['baseclass'] = {'name': baseclass,
                              'file': baseclass+'.java'}
     javacomp['userclass'] = {'name': userclass,
                              'file': userclass+'.java'}
     javacomp['superclass'] = self.superclass(softpkg)
     javacomp['mainclass'] = java.qualifiedName(userclass, javacomp['package'])
     javacomp['jarfile'] = softpkg.basename() + '.jar'
     javacomp['interfacedeps'] = list(self.getInterfaceDependencies(softpkg))
     javacomp['interfacejars'] = self.getInterfaceJars(softpkg)
     javacomp['hasmultioutport'] = self.hasMultioutPort(softpkg)
     return javacomp
コード例 #4
0
 def _mapComponent(self, softpkg):
     javacomp = {}
     idl = IDLInterface(softpkg.descriptor().repid().repid)
     javacomp['interface'] = idl.interface()
     javacomp['operations'] = self.operations(idl)
     javacomp['attributes'] = self.attributes(idl)
     javacomp.update(self.getNamespace(idl))
    
     javacomp['package'] = self.package
     userclass = softpkg.name()
     baseclass = userclass + '_base'
     javacomp['baseclass'] = {'name': baseclass,
                              'file': baseclass+'.java'}
     javacomp['userclass'] = {'name': userclass,
                              'file': userclass+'.java'}
     javacomp['superclass'] = self.superclass(softpkg)
     javacomp['mainclass'] = java.qualifiedName(userclass, self.package)
     javacomp['jarfile'] = softpkg.name() + '.jar'
     javacomp['interfacedeps'] = list(self.getInterfaceDependencies(softpkg))
     javacomp['interfacejars'] = self.getInterfaceJars(softpkg)
     return javacomp
コード例 #5
0
 def _mapComponent(self, softpkg):
     javacomp = {}
     idl = IDLInterface(softpkg.descriptor().repid().repid)
     javacomp['interface'] = idl.interface()
     javacomp['operations'] = self.operations(idl)
     javacomp['attributes'] = self.attributes(idl)
     javacomp.update(self.getNamespace(idl))
    
     if self.package == '':
         javacomp['package'] = softpkg.basename()+'.java'
     else:
         javacomp['package'] = self.package
     userclass = softpkg.basename()
     baseclass = userclass + '_base'
     javacomp['baseclass'] = {'name': baseclass,
                              'file': baseclass+'.java'}
     javacomp['userclass'] = {'name': userclass,
                              'file': userclass+'.java'}
     javacomp['superclass'] = self.superclass(softpkg)
     javacomp['mainclass'] = java.qualifiedName(userclass, javacomp['package'])
     javacomp['jarfile'] = softpkg.basename() + '.jar'
     javacomp['interfacedeps'] = list(self.getInterfaceDependencies(softpkg))
     javacomp['interfacejars'] = self.getInterfaceJars(softpkg)
     return javacomp