Searched refs:ConcatenationRope (Results 1 - 5 of 5) sorted by relevance

/ropes-1.1.3/src/org/ahmadsoft/ropes/impl/
H A DConcatenationRopeIteratorImpl.java82 if (this.currentRope instanceof ConcatenationRope) {
83 this.toTraverse.push(((ConcatenationRope) this.currentRope).getRight());
84 this.toTraverse.push(((ConcatenationRope) this.currentRope).getLeft());
119 if (this.currentRope instanceof ConcatenationRope) {
120 this.toTraverse.push(((ConcatenationRope) this.currentRope).getRight());
121 this.toTraverse.push(((ConcatenationRope) this.currentRope).getLeft());
H A DConcatenationRopeReverseIteratorImpl.java84 if (this.currentRope instanceof ConcatenationRope) {
85 this.toTraverse.push(((ConcatenationRope) this.currentRope).getLeft());
86 this.toTraverse.push(((ConcatenationRope) this.currentRope).getRight());
118 if (this.currentRope instanceof ConcatenationRope) {
119 this.toTraverse.push(((ConcatenationRope) this.currentRope).getLeft());
120 this.toTraverse.push(((ConcatenationRope) this.currentRope).getRight());
H A DRopeUtilities.java76 if (left instanceof ConcatenationRope && right instanceof FlatRope) {
77 final ConcatenationRope cLeft = (ConcatenationRope) left;
83 return this.autoRebalance(new ConcatenationRope(cLeft.getLeft(), new FlatCharSequenceRope(fLeftRight.toString() + fRight.toString())));
87 if (left instanceof FlatRope && right instanceof ConcatenationRope) {
89 final ConcatenationRope cRight = (ConcatenationRope) right;
94 return this.autoRebalance(new ConcatenationRope(new FlatCharSequenceRope(fLeft.toString() + cRightLeft.toString()), cRight.getRight()));
98 return this.autoRebalance(new ConcatenationRope(left, right));
134 if (x instanceof ConcatenationRope) {
[all...]
H A DConcatenationRope.java2 * ConcatenationRope.java
35 public class ConcatenationRope extends AbstractRope { class in inherits:AbstractRope
47 public ConcatenationRope(final Rope left, final Rope right) { method in class:ConcatenationRope
161 return new ConcatenationRope(this.getRight().reverse(), this.getLeft().reverse());
/ropes-1.1.3/src/org/ahmadsoft/ropes/test/
H A DRopeTest.java35 import org.ahmadsoft.ropes.impl.ConcatenationRope;
50 Rope x2 = new ConcatenationRope(x1, x1);
74 ConcatenationRope c1 = new ConcatenationRope(x1, x2);
75 ConcatenationRope c2 = new ConcatenationRope(c1, x3);
87 Rope z4 = new ConcatenationRope(z3, new SubstringRope(z1, 6, 2)); // 2367
127 Rope x3 = new ConcatenationRope(x1, x2);
139 Rope x3 = new ConcatenationRope(x1, x2);
188 Rope r2 = new ConcatenationRope(ne
[all...]

Completed in 4 milliseconds