def _createIntfCode(self, inIntf, inUserCode): scope = Scope() scope.set_user_code(inUserCode) scope.addSymbol("interface", inIntf) scope.addSymbol("absName", self._absName) scope.addSymbol("argList", self._argList) return Parser(scope).parseFile(self._templatePath("intf.tmpl"))
def _createIntfCode(self, inIntf, inUserCode ): scope = Scope() self._initIntfScope(scope, inIntf) scope.set_user_code(inUserCode) parser = Parser(scope) return parser.parseFile(self._templatePath("intf.tmpl"))
def _createClassCode(self, inClass, inUserCode ): scope = Scope() self._initClassScope(scope, inClass) scope.set_user_code(inUserCode) parser = Parser(scope) return parser.parseFile(self._templatePath("class.tmpl"))
def _createClassCode(self, inClass, inUserCode): scope = Scope() scope.set_user_code(inUserCode) scope.addSymbol("class", inClass) scope.addSymbol("absName", self._absName) scope.addSymbol("argList", self._argList) scope.addSymbol("hasSuperClass", self._hasSuperClass) scope.addSymbol("intfList", self._intfList) scope.addSymbol("overwritten", self._overwrittenMethods(inClass)) scope.addSymbol("propertyType", self._propertyType) return Parser(scope).parseFile(self._templatePath("class.tmpl"))