parameters: (self, methodCall)
return_statement: return template.substitute(object=object,
                                     method=method,
                                     arguments=translatedArgsList)
docstring: Translates a method call expression
          Args:
              methodCall: object like [identifierAST, identifierAST, argumentListAST]
docstring_summary: Translates a method call expression
          Args:
              methodCall: object like [identifierAST, identifierAST, argumentListAST]
docstring_tokens: Translates a method call expression Args : methodCall : object like [ identifierAST identifierAST argumentListAST ]
function: def translateMethodCall(self, methodCall):
          """ Translates a method call expression
          Args:
              methodCall: object like [identifierAST, identifierAST, argumentListAST]
          """
  
          object = methodCall[0]["Identifier"]
          method = methodCall[1]["Identifier"]
          argsList = None
          try:
              argsList = methodCall[2]
          except IndexError:
              pass
          translatedArgsList = self.translateArgumentList(argsList)
  
          if object not in self.variableTypes:
              raise TranslationFailure("Variable {} not initialised".format(object))
          template = Template(self.targetDict["Expr"]["MethodCall"]["Default"])
          if method in self.targetDict["Expr"]["MethodCall"]:
              template = Template(self.targetDict["Expr"]["MethodCall"][method])
  
          return template.substitute(object=object,
                                     method=method,
                                     arguments=translatedArgsList)
function_tokens: def translateMethodCall ( self , methodCall ) : object = methodCall [ 0 ] [ "Identifier" ] method = methodCall [ 1 ] [ "Identifier" ] argsList = None try : argsList = methodCall [ 2 ] except IndexError : pass translatedArgsList = self . translateArgumentList ( argsList ) if object not in self . variableTypes : raise TranslationFailure ( "Variable {} not initialised" . format ( object ) ) template = Template ( self . targetDict [ "Expr" ] [ "MethodCall" ] [ "Default" ] ) if method in self . targetDict [ "Expr" ] [ "MethodCall" ] : template = Template ( self . targetDict [ "Expr" ] [ "MethodCall" ] [ method ] ) return template . substitute ( object = object , method = method , arguments = translatedArgsList )