// 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 -> XPath, exp_list, Exp_List {{ if (is_equal) { XPath obj = (XPath) history.peek(); Object temp1 = obj.get_exp_list(); if(temp1==null) { is_equal = false; return; } history.push(temp1); } }} after -> XPath, exp_list, Exp_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 -> Exp, parent, Exp {{ if (is_equal) { Exp obj = (Exp) history.peek(); Object temp2 = obj.get_parent(); if(temp2==null) { is_equal = false; return; } history.push(temp2); } }} after -> Exp, parent, Exp {{ if (is_equal) history.pop(); }} before Exp {{ 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 -> BinaryCompound, bop, BOp {{ if (is_equal) { BinaryCompound obj = (BinaryCompound) history.peek(); Object temp3 = obj.get_bop(); if(temp3==null) { is_equal = false; return; } history.push(temp3); } }} after -> BinaryCompound, bop, BOp {{ if (is_equal) history.pop(); }} before -> BinaryCompound, arg1, Exp {{ if (is_equal) { BinaryCompound obj = (BinaryCompound) history.peek(); Object temp4 = obj.get_arg1(); if(temp4==null) { is_equal = false; return; } history.push(temp4); } }} after -> BinaryCompound, arg1, Exp {{ if (is_equal) history.pop(); }} before -> BinaryCompound, arg2, Exp {{ if (is_equal) { BinaryCompound obj = (BinaryCompound) history.peek(); Object temp5 = obj.get_arg2(); if(temp5==null) { is_equal = false; return; } history.push(temp5); } }} after -> BinaryCompound, arg2, Exp {{ if (is_equal) history.pop(); }} before BinaryCompound {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before -> UnaryCompound, uop, UOp {{ if (is_equal) { UnaryCompound obj = (UnaryCompound) history.peek(); Object temp6 = obj.get_uop(); if(temp6==null) { is_equal = false; return; } history.push(temp6); } }} after -> UnaryCompound, uop, UOp {{ if (is_equal) history.pop(); }} before -> UnaryCompound, arg1, Exp {{ if (is_equal) { UnaryCompound obj = (UnaryCompound) history.peek(); Object temp7 = obj.get_arg1(); if(temp7==null) { is_equal = false; return; } history.push(temp7); } }} after -> UnaryCompound, arg1, Exp {{ if (is_equal) history.pop(); }} before UnaryCompound {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before BOp {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before UOp {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Chi {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Des {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Disjunction {{ 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 Descendant {{ 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 -> ElementTest, name, Name {{ if (is_equal) { ElementTest obj = (ElementTest) history.peek(); Object temp8 = obj.get_name(); if(temp8==null) { is_equal = false; return; } history.push(temp8); } }} after -> ElementTest, name, Name {{ if (is_equal) history.pop(); }} before ElementTest {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before WildCard {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Name {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; Object temp9 = host.get_ident(); Object temp10 = ((Name) obj).get_ident(); if(temp9 == null && temp10 == null) {} else if(temp9 == null || temp10 == null || !temp9.equals(temp10)) { is_equal = false; return; } }} before Main {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; Object temp11 = host.get_s(); Object temp12 = ((Main) obj).get_s(); if(temp11 == null && temp12 == null) {} else if(temp11 == null || temp12 == null || !temp11.equals(temp12)) { is_equal = false; return; } }} before CountingVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_c() == ((CountingVisitor) obj).get_c(); }} before ParentSettingVisitor {{ 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 temp13 = host.get_copy(); Object temp14 = ((CopyVisitor) obj).get_copy(); if(temp13 == null && temp14 == null) {} else if(temp13 == null || temp14 == null || !temp13.equals(temp14)) { 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 -> Exp_List, first, Nonempty_Exp_List {{ if (is_equal) { Exp_List obj = (Exp_List) history.peek(); Object temp15 = obj.get_first(); if(temp15==null) { is_equal = false; return; } history.push(temp15); } }} after -> Exp_List, first, Nonempty_Exp_List {{ if (is_equal) history.pop(); }} before Exp_List {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before -> Nonempty_Exp_List, it, Exp {{ if (is_equal) { Nonempty_Exp_List obj = (Nonempty_Exp_List) history.peek(); Object temp16 = obj.get_it(); if(temp16==null) { is_equal = false; return; } history.push(temp16); } }} after -> Nonempty_Exp_List, it, Exp {{ if (is_equal) history.pop(); }} before -> Nonempty_Exp_List, next, Nonempty_Exp_List {{ if (is_equal) { Nonempty_Exp_List obj = (Nonempty_Exp_List) history.peek(); Object temp17 = obj.get_next(); if(temp17==null) { is_equal = false; return; } history.push(temp17); } }} after -> Nonempty_Exp_List, next, Nonempty_Exp_List {{ if (is_equal) history.pop(); }} before Nonempty_Exp_List {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} return boolean {{ is_equal }} }