Home | History | Annotate | Download | only in text

Lines Matching defs:spans

22  * A cached set of spans. Caches the result of {@link Spanned#getSpans(int, int, Class)} and then
27 * Note that empty spans are ignored by this class.
34 E[] spans;
49 if (length > 0 && (spans == null || spans.length < length)) {
50 // These arrays may end up being too large because of the discarded empty spans
51 spans = (E[]) Array.newInstance(classType, length);
67 spans[numberOfSpans] = span;
77 * Returns true if there are spans intersecting the given interval.
103 * Removes all internal references to the spans to avoid memory leaks.
106 // The spans array is guaranteed to be not null when numberOfSpans is > 0
108 spans[i] = null; // prevent a leak: no reference kept when TextLine is recycled