@Override public Exists clone() { return (Exists)super.clone(); } }
@Override public boolean equals(Object other) { return other instanceof Exists && super.equals(other); }
@Override public boolean equals(Object other) { if (other instanceof SubQueryValueOperator) { SubQueryValueOperator o = (SubQueryValueOperator)other; return subQuery.equals(o.getSubQuery()); } return false; }
@Override public SubQueryValueOperator clone() { SubQueryValueOperator clone = (SubQueryValueOperator)super.clone(); clone.setSubQuery(getSubQuery().clone()); return clone; } }
@Override public int hashCode() { return super.hashCode() ^ "Exists".hashCode(); }
public SubQueryValueOperator(TupleExpr subQuery) { setSubQuery(subQuery); }
@Override public void replaceChildNode(QueryModelNode current, QueryModelNode replacement) { if (arg == current) { setArg((ValueExpr)replacement); } else { super.replaceChildNode(current, replacement); } }
@Override public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X { arg.visit(visitor); super.visitChildren(visitor); }
@Override public SubQueryValueOperator clone() { SubQueryValueOperator clone = (SubQueryValueOperator)super.clone(); clone.setSubQuery(getSubQuery().clone()); return clone; } }
@Override public int hashCode() { return super.hashCode() ^ "Exists".hashCode(); }
public SubQueryValueOperator(TupleExpr subQuery) { setSubQuery(subQuery); }
@Override public void replaceChildNode(QueryModelNode current, QueryModelNode replacement) { if (arg == current) { setArg((ValueExpr)replacement); } else { super.replaceChildNode(current, replacement); } }
@Override public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X { arg.visit(visitor); super.visitChildren(visitor); }
@Override public boolean equals(Object other) { if (other instanceof SubQueryValueOperator) { SubQueryValueOperator o = (SubQueryValueOperator)other; return subQuery.equals(o.getSubQuery()); } return false; }
@Override public boolean equals(Object other) { return other instanceof Exists && super.equals(other); }
@Override public Exists clone() { return (Exists)super.clone(); } }
@Override public int hashCode() { return super.hashCode() ^ arg.hashCode(); }
@Override public void replaceChildNode(QueryModelNode current, QueryModelNode replacement) { if (subQuery == current) { setSubQuery((TupleExpr)replacement); } else { super.replaceChildNode(current, replacement); } }
@Override public Set<String> getBindingNames() { Set<String> result = getArg().getBindingNames(); if (condition instanceof SubQueryValueOperator) { result = Stream .concat(result.stream(), ((SubQueryValueOperator) condition).getSubQuery().getBindingNames().stream()) .collect(Collectors.toSet()); } return result; }
@Override public boolean equals(Object other) { if (other instanceof CompareSubQueryValueOperator && super.equals(other)) { CompareSubQueryValueOperator o = (CompareSubQueryValueOperator)other; return arg.equals(o.getArg()); } return false; }