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