code: def is_gentarget(self, target):
      
      if self.gentarget_type:
        return isinstance(target, self.gentarget_type)
      else:
        raise NotImplementedError
docs: Predicate which determines whether the target in question is relevant to this codegen task.
  
      E.g., the JaxbGen task considers JaxbLibrary targets to be relevant, and nothing else.
  
      :API: public
  
      :param Target target: The target to check.
      :return: True if this class can generate code for the given target, False otherwise.