Пример #1
0
  @Override
  public Boolean visit(final PrimitiveType n1, final Node arg) {
    final PrimitiveType n2 = (PrimitiveType) arg;

    if (n1.getType() != n2.getType()) {
      return Boolean.FALSE;
    }
    if (!nodesEquals(n1.getAnnotations(), n2.getAnnotations())) {
      return Boolean.FALSE;
    }
    return Boolean.TRUE;
  }
 @Override
 public void visit(final PrimitiveType n, final A arg) {
   visitComment(n.getComment(), arg);
   visitAnnotations(n, arg);
 }