737 * merge operation, or <tt>false</tt> otherwise. 738 */ 739 public boolean merge(final Frame<? extends V> frame, final boolean[] access) { 740 boolean changes = false; 741 for (int i = 0; i < locals; ++i) { 742 if (!access[i] && !values[i].equals(frame.values[i])) { 743 values[i] = frame.values[i]; 744 changes = true; 745 } 746 } 747 return changes; 748 } 749 750 /** 751 * Returns a string representation of this frame. 752 * 753 * @return a string representation of this frame. 754 */ 755 @Override 756 public String toString() { 757 StringBuffer b = new StringBuffer(); 758 for (int i = 0; i < getLocals(); ++i) { 759 b.append(getLocal(i)); 760 } 761 b.append(' '); 762 for (int i = 0; i < getStackSize(); ++i) { 763 b.append(getStack(i).toString()); 764 } 765 return b.toString(); 766 } 767 } | 737 * merge operation, or <tt>false</tt> otherwise. 738 */ 739 public boolean merge(final Frame<? extends V> frame, final boolean[] access) { 740 boolean changes = false; 741 for (int i = 0; i < locals; ++i) { 742 if (!access[i] && !values[i].equals(frame.values[i])) { 743 values[i] = frame.values[i]; 744 changes = true; 745 } 746 } 747 return changes; 748 } 749 750 /** 751 * Returns a string representation of this frame. 752 * 753 * @return a string representation of this frame. 754 */ 755 @Override 756 public String toString() { 757 StringBuilder sb = new StringBuilder(); 758 for (int i = 0; i < getLocals(); ++i) { 759 sb.append(getLocal(i)); 760 } 761 sb.append(' '); 762 for (int i = 0; i < getStackSize(); ++i) { 763 sb.append(getStack(i).toString()); 764 } 765 return sb.toString(); 766 } 767 } |