class PurityMethodNode implements PurityNode {

  /** gives a unique id, for pretty-printing purposes */
  private static final Map<SootMethod, Integer> nMap = new HashMap<SootMethod, Integer>();
  private static int n = 0;

  /** Method that created the node */
  private SootMethod id;

  PurityMethodNode(SootMethod id) {
    this.id = id;
    if (!nMap.containsKey(id)) {
      nMap.put(id, n);
      n++;
    }
  }

  @Override
  public String toString() {
    return "M_" + nMap.get(id);
  }

  @Override
  public int hashCode() {
    return id.hashCode();
  }

  @Override
  public boolean equals(Object o) {<FILL_FUNCTION_BODY>}

  @Override
  public boolean isInside() {
    return true;
  }

  @Override
  public boolean isLoad() {
    return false;
  }

  @Override
  public boolean isParam() {
    return false;
  }
}

    if (o instanceof PurityMethodNode) {
      PurityMethodNode oo = (PurityMethodNode) o;
      return this.id.equals(oo.id);
    } else {
      return false;
    }
  
<no_super_class>