@Override
 public void visit(final WildcardType n, final A arg) {
   visitComment(n.getComment(), arg);
   visitAnnotations(n, arg);
   if (n.getExtends() != null) {
     n.getExtends().accept(this, arg);
   }
   if (n.getSuper() != null) {
     n.getSuper().accept(this, arg);
   }
 }
示例#2
0
  @Override
  public Boolean visit(final WildcardType n1, final Node arg) {
    final WildcardType n2 = (WildcardType) arg;

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

    if (!nodeEquals(n1.getSuper(), n2.getSuper())) {
      return Boolean.FALSE;
    }
    if (!nodesEquals(n1.getAnnotations(), n2.getAnnotations())) {
      return Boolean.FALSE;
    }
    return Boolean.TRUE;
  }