@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof DescendantNodeJoinCondition) { DescendantNodeJoinCondition that = (DescendantNodeJoinCondition)obj; if (this.hc != that.hc) return false; if (!this.descendantSelectorName.equals(that.descendantSelectorName)) return false; if (!this.ancestorSelectorName.equals(that.ancestorSelectorName)) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof ChildNodeJoinCondition) { ChildNodeJoinCondition that = (ChildNodeJoinCondition)obj; if (this.hc != that.hc) return false; if (!this.childSelectorName.equals(that.childSelectorName)) return false; if (!this.parentSelectorName.equals(that.parentSelectorName)) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof DescendantNodeJoinCondition) { DescendantNodeJoinCondition that = (DescendantNodeJoinCondition)obj; if (this.hc != that.hc) return false; if (!this.descendantSelectorName.equals(that.descendantSelectorName)) return false; if (!this.ancestorSelectorName.equals(that.ancestorSelectorName)) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof ChildNodeJoinCondition) { ChildNodeJoinCondition that = (ChildNodeJoinCondition)obj; if (this.hc != that.hc) return false; if (!this.childSelectorName.equals(that.childSelectorName)) return false; if (!this.parentSelectorName.equals(that.parentSelectorName)) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof PropertyExistence) { PropertyExistence that = (PropertyExistence)obj; if (this.hc != that.hc) return false; return this.selectorName.equals(that.selectorName) && this.propertyName.equals(that.propertyName); } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof SameNode) { SameNode that = (SameNode)obj; if (this.hc != that.hc) return false; if (!this.selectorName.equals(that.selectorName)) return false; if (!this.path.equals(that.path)) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof DescendantNode) { DescendantNode that = (DescendantNode)obj; if (!this.selectorName.equals(that.selectorName)) return false; if (!this.ancestorPath.equals(that.ancestorPath)) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof DescendantNode) { DescendantNode that = (DescendantNode)obj; if (!this.selectorName.equals(that.selectorName)) return false; if (!this.ancestorPath.equals(that.ancestorPath)) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof PropertyExistence) { PropertyExistence that = (PropertyExistence)obj; if (this.hc != that.hc) return false; return this.selectorName.equals(that.selectorName) && this.propertyName.equals(that.propertyName); } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof ChildNode) { ChildNode that = (ChildNode)obj; if (this.hc != that.hc) return false; if (!this.selectorName.equals(that.selectorName)) return false; if (!this.parentPath.equals(that.parentPath)) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof SameNode) { SameNode that = (SameNode)obj; if (this.hc != that.hc) return false; if (!this.selectorName.equals(that.selectorName)) return false; if (!this.path.equals(that.path)) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof ChildNode) { ChildNode that = (ChildNode)obj; if (this.hc != that.hc) return false; if (!this.selectorName.equals(that.selectorName)) return false; if (!this.parentPath.equals(that.parentPath)) return false; return true; } return false; }
@Override public void visit( NamedSelector selector ) { if (notFound.get() && selector.aliasOrName().equals(name)) notFound.set(false); } });
@Override public void visit( NamedSelector selector ) { if (notFound.get() && selector.aliasOrName().equals(name)) notFound.set(false); } });
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Column) { Column that = (Column)obj; if (!this.selectorName.equals(that.selectorName)) return false; if (!ObjectUtil.isEqualWithNulls(this.propertyName, that.propertyName)) return false; if (!ObjectUtil.isEqualWithNulls(this.columnName, that.columnName)) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Column) { Column that = (Column)obj; if (!this.selectorName.equals(that.selectorName)) return false; if (!ObjectUtil.isEqualWithNulls(this.propertyName, that.propertyName)) return false; if (!ObjectUtil.isEqualWithNulls(this.columnName, that.columnName)) return false; return true; } return false; }
protected boolean usesSelector( Join join, SelectorName selector ) { Source left = join.getLeft(); if (left instanceof Selector && selector.equals(((Selector)left).aliasOrName())) return true; if (left instanceof Join && usesSelector((Join)left, selector)) return true; Source right = join.getRight(); if (right instanceof Selector && selector.equals(((Selector)right).aliasOrName())) return true; if (right instanceof Join && usesSelector((Join)right, selector)) return true; return false; }
protected boolean usesSelector( Join join, SelectorName selector ) { Source left = join.getLeft(); if (left instanceof Selector && selector.equals(((Selector)left).aliasOrName())) return true; if (left instanceof Join && usesSelector((Join)left, selector)) return true; Source right = join.getRight(); if (right instanceof Selector && selector.equals(((Selector)right).aliasOrName())) return true; if (right instanceof Join && usesSelector((Join)right, selector)) return true; return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Selector) { Selector that = (Selector)obj; if (!this.name().equals(that.name())) return false; if (!ObjectUtil.isEqualWithNulls(this.alias(), that.alias())) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Selector) { Selector that = (Selector)obj; if (!this.name().equals(that.name())) return false; if (!ObjectUtil.isEqualWithNulls(this.alias(), that.alias())) return false; return true; } return false; }