code: def language(self, target):
      
      self._check_target(target)
      return target.language or self._default_language
docs: Returns the target language to generate thrift stubs for.
  
      :param target: The target to extract the target language from.
      :type target: :class:`pants.backend.codegen.thrift.java.java_thrift_library.JavaThriftLibrary`
      :returns: The target language to generate stubs for.
      :rtype: string