Пример #1
0
 protected String toString(int tab) {
   StringBuilder sb = new StringBuilder();
   sb.append(Assembly.toString(insn));
   for (AbstractNode n : this) {
     sb.append('\n');
     for (int i = 0; i < tab; i++) {
       sb.append('\t');
     }
     sb.append(n.toString(tab + 1));
   }
   return sb.toString();
 }
Пример #2
0
 @Override
 public boolean equals(Object obj) {
   return obj instanceof AbstractNode
       && Assembly.instructionsEqual(((AbstractNode) obj).insn(), insn());
 }