private void after(Element elt) { if ( afterVisitor != null ) elt.visit(afterVisitor) ; }
@Override final public boolean equals(Object el2) { if ( this == el2 ) return true ; if ( ! ( el2 instanceof Element ) ) return false ; return equalTo((Element)el2, null) ; }
@Override public int hashCode() { int hash = Element.HashOptional ; hash = hash ^ getOptionalElement().hashCode() ; return hash ; }
private void before(Element elt) { if ( beforeVisitor != null ) elt.visit(beforeVisitor) ; }
@Override final public boolean equals(Object el2) { if ( this == el2 ) return true ; if ( ! ( el2 instanceof Element ) ) return false ; return equalTo((Element)el2, null) ; }
@Override public int hashCode() { int hash = Element.HashOptional ; hash = hash ^ getMinusElement().hashCode() ; return hash ; }
public Element expand(Element root, /*List<String> distinguishedVars,*/ Set<String> allVars) { this.allVars = allVars; //this.distinguishedVars = distinguishedVars; root.visit(this); return result; } @Override
@Override public boolean equalTo(Element el2, NodeIsomorphismMap isoMap) { if ( el2 == null ) return false ; if ( ! ( el2 instanceof ElementMinus ) ) return false ; ElementMinus opt2 = (ElementMinus)el2 ; return getMinusElement().equalTo(opt2.getMinusElement(), isoMap) ; }
@Override public int hashCode() { int hash = Element.HashOptional ; hash = hash ^ getMinusElement().hashCode() ; return hash ; }
public static void walk(Element el, Walker walker) { el.visit(walker) ; }
@Override public boolean equalTo(Element el2, NodeIsomorphismMap isoMap) { if ( el2 == null ) return false ; if ( ! ( el2 instanceof ElementOptional ) ) return false ; ElementOptional opt2 = (ElementOptional)el2 ; return getOptionalElement().equalTo(opt2.getOptionalElement(), isoMap) ; }
@Override public int hashCode() { int hash = Element.HashOptional ; hash = hash ^ getOptionalElement().hashCode() ; return hash ; }
@Override public void visit(ElementUnion el) { unionCount++; for (Iterator<Element> iterator = el.getElements().iterator(); iterator.hasNext();) { Element e = iterator.next(); e.visit(this); } }
@Override public boolean equalTo(Element el2, NodeIsomorphismMap isoMap) { if ( el2 == null ) return false ; if ( ! ( el2 instanceof ElementNotExists ) ) return false ; ElementNotExists unsaid2 = (ElementNotExists)el2 ; if ( ! this.getElement().equalTo(unsaid2.getElement(), isoMap) ) return false ; return true ; }
@Override public int hashCode() { return serviceNode.hashCode() ^ element.hashCode(); }
@Override public void visit(ElementGroup arg0) { for (Element e : arg0.getElements()) { e.visit(this); } }
@Override public boolean equalTo(Element el2, NodeIsomorphismMap isoMap) { if ( el2 == null ) return false ; if ( ! ( el2 instanceof ElementExists ) ) return false ; ElementExists unsaid2 = (ElementExists)el2 ; if ( ! this.getElement().equalTo(unsaid2.getElement(), isoMap) ) return false ; return true ; }
public void visitQueryPattern(Query query) { if ( query.getQueryPattern() != null ) x ^= query.getQueryPattern().hashCode() ; }
public static void walk(Element el, ElementVisitor visitor, ElementVisitor beforeVisitor, ElementVisitor afterVisitor) { Walker w = new Walker(visitor, beforeVisitor, afterVisitor) ; el.visit(w) ; }
@Override public boolean equalTo(Element el2, NodeIsomorphismMap isoMap) { if ( el2 == null ) return false ; if ( ! ( el2 instanceof ElementNotExists ) ) return false ; ElementNotExists unsaid2 = (ElementNotExists)el2 ; if ( ! this.getElement().equalTo(unsaid2.getElement(), isoMap) ) return false ; return true ; }