To reduce array creations in {@link IDocument#getPositions(String)}, the positions get cached. The cache is cleared after updating the positions in {@link #documentChanged2(DocumentEvent)}. Subclasses need to call {@link #clearPositionCache()} after modifying the partitioner's positions.The cached positions may be accessed through {@link #getPositions()}.
@see IPartitionTokenScanner @since 3.1
|
|