parameters: (file_path)
docstring: Gets the full package name including the file name for a given file path.
  
      Args:
        file_path: String representing the path to the Java source file.
  
      Returns:
        A string representing the full package name with file name appended or
          None if there is no package statement in the file.
docstring_summary: Gets the full package name including the file name for a given file path.
docstring_tokens: Gets the full package name including the file name for a given file path .
function: def GetPackageNameFromFile(file_path):
      """Gets the full package name including the file name for a given file path.
  
      Args:
        file_path: String representing the path to the Java source file.
  
      Returns:
        A string representing the full package name with file name appended or
          None if there is no package statement in the file.
      """
      with open(file_path) as f:
        file_content = f.read()
        package_match = re.search(_EmmaCoverageStats.RE_PACKAGE, file_content)
        if package_match:
          package = package_match.group(_EmmaCoverageStats.RE_PACKAGE_MATCH_GROUP)
          file_name = os.path.basename(file_path)
          return '%s.%s' % (package, file_name)
        return None
function_tokens: def GetPackageNameFromFile ( file_path ) : with open ( file_path ) as f : file_content = f . read ( ) package_match = re . search ( _EmmaCoverageStats . RE_PACKAGE , file_content ) if package_match : package = package_match . group ( _EmmaCoverageStats . RE_PACKAGE_MATCH_GROUP ) file_name = os . path . basename ( file_path ) return '%s.%s' % ( package , file_name ) return None