// This file is automatically generated by DemeterJ. EqualVisitor { {{ private java.util.Stack history = new java.util.Stack(); public EqualVisitor(Object obj) { history.push(obj); } }} before Main {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; Object temp1 = host.get_s(); Object temp2 = ((Main) obj).get_s(); if(temp1 == null && temp2 == null) {} else if(temp1 == null || temp2 == null || !temp1.equals(temp2)) { is_equal = false; return; } }} before -> XPath, xpexp_list, XPExp_List {{ if (is_equal) { XPath obj = (XPath) history.peek(); Object temp3 = obj.get_xpexp_list(); if(temp3==null) { is_equal = false; return; } history.push(temp3); } }} after -> XPath, xpexp_list, XPExp_List {{ if (is_equal) history.pop(); }} before XPath {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before XPExp {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Simple {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before ClassName {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; Object temp4 = host.get_ident(); Object temp5 = ((ClassName) obj).get_ident(); if(temp4 == null && temp5 == null) {} else if(temp4 == null || temp5 == null || !temp4.equals(temp5)) { is_equal = false; return; } }} before Star {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before -> Compound, op, Op {{ if (is_equal) { Compound obj = (Compound) history.peek(); Object temp6 = obj.get_op(); if(temp6==null) { is_equal = false; return; } history.push(temp6); } }} after -> Compound, op, Op {{ if (is_equal) history.pop(); }} before -> Compound, arg1, XPExp {{ if (is_equal) { Compound obj = (Compound) history.peek(); Object temp7 = obj.get_arg1(); if(temp7==null) { is_equal = false; return; } history.push(temp7); } }} after -> Compound, arg1, XPExp {{ if (is_equal) history.pop(); }} before -> Compound, arg2, XPExp {{ if (is_equal) { Compound obj = (Compound) history.peek(); Object temp8 = obj.get_arg2(); if(temp8==null) { is_equal = false; return; } history.push(temp8); } }} after -> Compound, arg2, XPExp {{ if (is_equal) history.pop(); }} before Compound {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Op {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Descendant {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Child {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Filter {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before PrintVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_indent() == ((PrintVisitor) obj).get_indent(); is_equal = is_equal && host.get_needSpace() == ((PrintVisitor) obj).get_needSpace(); }} before CopyVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; Object temp9 = host.get_copy(); Object temp10 = ((CopyVisitor) obj).get_copy(); if(temp9 == null && temp10 == null) {} else if(temp9 == null || temp10 == null || !temp9.equals(temp10)) { is_equal = false; return; } }} before SubgraphVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_is_equal() == ((SubgraphVisitor) obj).get_is_equal(); }} before EqualVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_is_equal() == ((EqualVisitor) obj).get_is_equal(); }} before DisplayVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_indent() == ((DisplayVisitor) obj).get_indent(); }} before TraceVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_indent() == ((TraceVisitor) obj).get_indent(); }} before UniversalVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before -> XPExp_List, first, Nonempty_XPExp_List {{ if (is_equal) { XPExp_List obj = (XPExp_List) history.peek(); Object temp11 = obj.get_first(); if(temp11==null) { is_equal = false; return; } history.push(temp11); } }} after -> XPExp_List, first, Nonempty_XPExp_List {{ if (is_equal) history.pop(); }} before XPExp_List {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before -> Nonempty_XPExp_List, it, XPExp {{ if (is_equal) { Nonempty_XPExp_List obj = (Nonempty_XPExp_List) history.peek(); Object temp12 = obj.get_it(); if(temp12==null) { is_equal = false; return; } history.push(temp12); } }} after -> Nonempty_XPExp_List, it, XPExp {{ if (is_equal) history.pop(); }} before -> Nonempty_XPExp_List, next, Nonempty_XPExp_List {{ if (is_equal) { Nonempty_XPExp_List obj = (Nonempty_XPExp_List) history.peek(); Object temp13 = obj.get_next(); if(temp13==null) { is_equal = false; return; } history.push(temp13); } }} after -> Nonempty_XPExp_List, next, Nonempty_XPExp_List {{ if (is_equal) history.pop(); }} before Nonempty_XPExp_List {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} return boolean {{ is_equal }} }