def __init__(self, line): self.log = Logger().get_instance(self) self.cols = line.split(";") self.owner = self.cols[0] self.name = self.cols[1]+"("+utils.cleanCol(self.cols[7])+")" sourceFile = self.cols[3] lineNr = self.cols[4].split(".")[0] self.sourceLocation = SourceLocation(sourceFile, lineNr, lineNr) self.isConstructor = False # TODO: parse visibility codes self.accessControlQualifier = "public" # TODO: static? self.hasClassScope = False # TODO: abstract? Interface? self.isAbstract = False params = self.cols[7] if "{}" == params: self.parameters = [] self.parameterNames = [] else: self.parameters = utils.cleanCol(params).split(",") self.parameterNames = utils.cleanCol(self.cols[8]).split(",") # to be resolved later self.package = None self.retType = None self.parentType = None # scope, visibility, abstract self.__resolveCharacteristics(self.cols[5])
def __init__(self, line): self.log = Logger().get_instance(self) self.cols = line.split(";") self.owner = self.cols[0] self.name = self.cols[1] + "(" + utils.cleanCol(self.cols[7]) + ")" sourceFile = self.cols[3] lineNr = self.cols[4].split(".")[0] self.sourceLocation = SourceLocation(sourceFile, lineNr, lineNr) self.isConstructor = False # TODO: parse visibility codes self.accessControlQualifier = "public" # TODO: static? self.hasClassScope = False # TODO: abstract? Interface? self.isAbstract = False params = self.cols[7] if "{}" == params: self.parameters = [] self.parameterNames = [] else: self.parameters = utils.cleanCol(params).split(",") self.parameterNames = utils.cleanCol(self.cols[8]).split(",") # to be resolved later self.package = None self.retType = None self.parentType = None # scope, visibility, abstract self.__resolveCharacteristics(self.cols[5])
def __init__(self, line): Entity.__init__(self, line) # entity will initalize self.line and self.cols self.log = Logger().get_instance(self) self.cols = line.split(";") self.dst_class = self.cols[0] self.dst_name = self.cols[1] self.src_class = self.cols[3] self.src_name = self.cols[4] self.sourceFile = self.cols[8] self.lineNr = utils.removeUpfrontZeroes(self.cols[7]) self.visibility = "public" self.src_param = utils.cleanCol(self.cols[10].strip()).split(",") self.dst_param = utils.cleanCol(self.cols[9]).split(",") # to be resolved later self.package = "" self.dst_package = "" self.srcLoc = "" self.srcLineNr = "0" self.dstLoc = "" self.dstLineNr = "0"
def __init__(self, line): self.log = Logger().get_instance(self) self.cols = line.split(";") self.dst_class = self.cols[0] self.dst_name = self.cols[1] self.src_class = self.cols[3] self.src_name = self.cols[4] self.acc_type = self.cols[5] self.sourceFile = self.cols[8] self.lineNr = utils.removeUpfrontZeroes(self.cols[7]) self.src_param = utils.cleanCol(self.cols[10].strip()).split(",") self.package = "" self.srcSourceLocation = SourceLocation("","0","0") self.dstSourceLocation = SourceLocation("","0","0")
def __init__(self, line): self.log = Logger().get_instance(self) self.cols = line.split(";") self.dst_class = self.cols[0] self.dst_name = self.cols[1] self.src_class = self.cols[3] self.src_name = self.cols[4] self.acc_type = self.cols[5] self.sourceFile = self.cols[8] self.lineNr = utils.removeUpfrontZeroes(self.cols[7]) self.src_param = utils.cleanCol(self.cols[10].strip()).split(",") self.package = "" self.srcSourceLocation = SourceLocation("", "0", "0") self.dstSourceLocation = SourceLocation("", "0", "0")
def resolveReturnType(self): self.retType = TypeReference() self.retType.resolvedName = utils.cleanCol(self.cols[6]) self.retType.referencedName = self.retType.resolvedName