Lines Matching refs:ConcatenationRope
78 if (!(left instanceof ConcatenationRope)) {
79 if (right instanceof ConcatenationRope) {
80 final ConcatenationRope cRight = (ConcatenationRope) right;
82 return this.autoRebalance(new ConcatenationRope(new FlatCharSequenceRope(left.toString() + cRight.getLeft().toString()), cRight.getRight()));
85 if (!(right instanceof ConcatenationRope)) {
86 if (left instanceof ConcatenationRope) {
87 final ConcatenationRope cLeft = (ConcatenationRope) left;
89 return this.autoRebalance(new ConcatenationRope(cLeft.getLeft(), new FlatCharSequenceRope(cLeft.getRight().toString() + right.toString())));
93 return this.autoRebalance(new ConcatenationRope(left, right));
125 if (x instanceof ConcatenationRope) {
126 toExamine.push(((ConcatenationRope) x).getRight());
127 toExamine.push(((ConcatenationRope) x).getLeft());
142 return new ConcatenationRope(leafNodes.get(start), leafNodes.get(start + 1));
145 return new ConcatenationRope(merge(leafNodes, start, middle), merge(leafNodes, middle, end));
169 if (r instanceof ConcatenationRope) {
172 this.visualize(((ConcatenationRope)r).getLeft(), out, depth+1);
175 this.visualize(((ConcatenationRope)r).getRight(), out, depth+1);
187 if (x instanceof ConcatenationRope) {
189 toExamine.push(((ConcatenationRope) x).getRight());
190 toExamine.push(((ConcatenationRope) x).getLeft());