// This file is automatically generated by DemeterJ. SubgraphVisitor { {{ private java.util.Stack history = new java.util.Stack(); public SubgraphVisitor(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 {{ 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 temp2 = obj.get_bop(); if(temp2==null) { is_equal = false; return; } history.push(temp2); } }} after -> BinaryCompound, bop, BOp {{ if (is_equal) history.pop(); }} before -> BinaryCompound, arg1, Exp {{ if (is_equal) { BinaryCompound obj = (BinaryCompound) history.peek(); Object temp3 = obj.get_arg1(); if(temp3==null) { is_equal = false; return; } history.push(temp3); } }} after -> BinaryCompound, arg1, Exp {{ if (is_equal) history.pop(); }} before -> BinaryCompound, arg2, Exp {{ if (is_equal) { BinaryCompound obj = (BinaryCompound) history.peek(); Object temp4 = obj.get_arg2(); if(temp4==null) { is_equal = false; return; } history.push(temp4); } }} 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 temp5 = obj.get_uop(); if(temp5==null) { is_equal = false; return; } history.push(temp5); } }} after -> UnaryCompound, uop, UOp {{ if (is_equal) history.pop(); }} before -> UnaryCompound, arg1, Exp {{ if (is_equal) { UnaryCompound obj = (UnaryCompound) history.peek(); Object temp6 = obj.get_arg1(); if(temp6==null) { is_equal = false; return; } history.push(temp6); } }} 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 temp7 = obj.get_name(); if(temp7==null) { is_equal = false; return; } history.push(temp7); } }} 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 temp8 = host.get_ident(); Object temp9 = ((Name) obj).get_ident(); if(temp8 == null && temp9 == null) {} else if(temp8 == null || temp9 == null || !temp8.equals(temp9)) { is_equal = false; return; } }} before Main {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; Object temp10 = host.get_s(); Object temp11 = ((Main) obj).get_s(); if(temp10 == null && temp11 == null) {} else if(temp10 == null || temp11 == null || !temp10.equals(temp11)) { 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 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 temp12 = host.get_copy(); Object temp13 = ((CopyVisitor) obj).get_copy(); if(temp12 == null && temp13 == null) {} else if(temp12 == null || temp13 == null || !temp12.equals(temp13)) { 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 temp14 = obj.get_first(); if(temp14==null) { is_equal = false; return; } history.push(temp14); } }} 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 temp15 = obj.get_it(); if(temp15==null) { is_equal = false; return; } history.push(temp15); } }} 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 temp16 = obj.get_next(); if(temp16==null) { is_equal = false; return; } history.push(temp16); } }} 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 }} }