Exemple #1
0
 def _mapPort(self, port, generator):
     javaport = {}
     javaport['javaname'] = java.identifier('port_' + port.name())
     javaport['javatype'] = generator.className()
     javaport['constructor'] = generator.constructor(port.name())
     javaport['multiout'] = generator.supportsMultiOut()
     return javaport
 def mapEnumeration(self, prop, label, value):
     javaenum = {}
     enumtype = self.javaType(prop.type())
     javaenum['javatype'] = enumtype
     javaenum['javalabel'] = java.identifier(label)
     javaenum['javavalue'] = java.literal(value, enumtype, prop.isComplex())
     return javaenum
 def mapProperty(self, prop):
     javaprop = {}
     if prop.hasName():
         name = prop.name()
     else:
         name = prop.identifier()
     javaprop['javaname'] = java.identifier(name)
     javaprop['javakinds'] = ['Kind.'+k.upper() for k in prop.kinds()]
     return javaprop
Exemple #4
0
 def mapProperty(self, prop):
     javaprop = {}
     if prop.hasName():
         name = prop.name()
     else:
         name = prop.identifier()
     javaprop['javaname'] = java.identifier(name)
     javaprop['javakinds'] = ['Kind.' + k.upper() for k in prop.kinds()]
     return javaprop
 def _mapPort(self, port, generator):
     javaport = {}
     javaport['javaname'] = java.identifier('port_'+port.name())
     javaport['javatype'] = generator.className()
     javaport['constructor'] = generator.constructor(port.name())
     javaport['start'] = generator.start()
     javaport['stop'] = generator.stop()
     javaport['multiout'] = generator.supportsMultiOut()
     return javaport
 def _mapPort(self, port, generator):
     javaport = {}
     javaport['javaname'] = java.identifier('port_'+port.name())
     javaport['javatype'] = generator.className()
     javaport['constructor'] = generator.constructor(port.name())
     return javaport