private <T extends Node> boolean nodeEquals(T n1, T n2) { if (n1 == n2) { return true; } if (n1 == null) { if (n2 == null) { return true; } return false; } else if (n2 == null) { return false; } if (n1.getClass() != n2.getClass()) { return false; } return n1.accept(this, n2).booleanValue(); }
private <T extends Node> boolean nodeEquals(T n1, T n2) { if (n1 == n2) { return true; } if (n1 == null) { if (n2 == null) { return true; } return false; } else if (n2 == null) { return false; } if (n1.getClass() != n2.getClass()) { return false; } return n1.accept(this, n2).booleanValue(); }
/** * Return the String representation of this node. * * @return the String representation of this node */ @Override public final String toString() { DumpVisitor visitor = new DumpVisitor(); accept(visitor, null); return visitor.getSource(); }
/** * Return the String representation of this node. * * @return the String representation of this node */ @Override public final String toString() { DumpVisitor visitor = new DumpVisitor(); accept(visitor, null); return visitor.getSource(); }