package org.aikodi.chameleon.support.member.simplename.operator.infix;

import org.aikodi.chameleon.oo.method.Method;
import org.aikodi.chameleon.oo.method.MethodHeader;
import org.aikodi.chameleon.support.member.simplename.operator.Operator;
import org.aikodi.chameleon.util.Util;

/**
 * @author Marko van Dooren
 */
public class InfixOperator extends Operator {

  public InfixOperator(MethodHeader header) {
    super(header);
    Util.debug(header.name().equals("+") && header.returnTypeReference().toString().contains("String"));
  }

  @Override
protected InfixOperator cloneSelf() {
    return new InfixOperator(null);
  }

  @Override
public boolean sameKind(Method other) {
	  return(other instanceof InfixOperator);
  }

}

@@ -239,47 +239,8 @@
 tor;
-%0Aimport org.aikodi.chameleon.util.Util;
 %0A%0A/*
@@ -389,113 +389,8 @@
 r);%0A
-    Util.debug(header.name().equals(%22+%22) && header.returnTypeReference().toString().contains(%22String%22));%0A
   %7D%0A

remove buggy debug statement