예제 #1
0
  @Override
  public Boolean visit(final InstanceOfExpr n1, final Node arg) {
    final InstanceOfExpr n2 = (InstanceOfExpr) arg;

    if (!nodeEquals(n1.getExpr(), n2.getExpr())) {
      return Boolean.FALSE;
    }

    if (!nodeEquals(n1.getType(), n2.getType())) {
      return Boolean.FALSE;
    }

    return Boolean.TRUE;
  }
 @Override
 public void visit(final InstanceOfExpr n, final A arg) {
   visitComment(n.getComment(), arg);
   n.getExpr().accept(this, arg);
   n.getType().accept(this, arg);
 }