1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
12 package net.sourceforge.phpdt.internal.ui.text.spelling.engine;
14 import java.util.Iterator;
17 * Interface for iterators used for spell-checking.
21 public interface ISpellCheckIterator extends Iterator {
24 * Returns the begin index (inclusive) of the current word.
26 * @return The begin index of the current word
28 public int getBegin();
31 * Returns the end index (exclusive) of the current word.
33 * @return The end index of the current word
38 * Does the current word start a new sentence?
40 * @return <code>true<code> iff the current word starts a new sentence, <code>false</code> otherwise
42 public boolean startsSentence();