<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rule_metric_names(self):
 """ Returns the rule metric names of the association rules. Only if implements AssociationRulesProducer. :return: the metric names :rtype: list """

        if not self.check_type(self.jobject, "weka.associations.AssociationRulesProducer"):
            return None
        return string_array_to_list(
            javabridge.call(self.jobject, "getRuleMetricNames", "()[Ljava/lang/String;"))