// 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 -> Start, exp_list, Exp_List {{ if (is_equal) { Start obj = (Start) history.peek(); Object temp3 = obj.get_exp_list(); if(temp3==null) { is_equal = false; return; } history.push(temp3); } }} after -> Start, exp_list, Exp_List {{ if (is_equal) history.pop(); }} before Start {{ 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; Object temp4 = host.get_integer(); Object temp5 = ((Simple) obj).get_integer(); if(temp4 == null && temp5 == null) {} else if(temp4 == null || temp5 == null || !temp4.equals(temp5)) { is_equal = false; 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, exp_list, Exp_List {{ if (is_equal) { Compound obj = (Compound) history.peek(); Object temp7 = obj.get_exp_list(); if(temp7==null) { is_equal = false; return; } history.push(temp7); } }} after -> Compound, exp_list, Exp_List {{ 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 NaryOp {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before UnaryOp {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Plus {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before UnaryPlus {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Minus {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before UnaryMinus {{ 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 temp8 = host.get_copy(); Object temp9 = ((CopyVisitor) obj).get_copy(); if(temp8 == null && temp9 == null) {} else if(temp8 == null || temp9 == null || !temp8.equals(temp9)) { 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 temp10 = obj.get_first(); if(temp10==null) { is_equal = false; return; } history.push(temp10); } }} 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 temp11 = obj.get_it(); if(temp11==null) { is_equal = false; return; } history.push(temp11); } }} 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 temp12 = obj.get_next(); if(temp12==null) { is_equal = false; return; } history.push(temp12); } }} 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 }} }