6f1ec968a838b1a62a51c8c9b517ee3b073b65a4
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / text / spelling / engine / ISpellCheckIterator.java
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
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11
12 package net.sourceforge.phpdt.internal.ui.text.spelling.engine;
13
14 import java.util.Iterator;
15
16 /**
17  * Interface for iterators used for spell-checking.
18  * 
19  * @since 3.0
20  */
21 public interface ISpellCheckIterator extends Iterator {
22
23         /**
24          * Returns the begin index (inclusive) of the current word.
25          * 
26          * @return The begin index of the current word
27          */
28         public int getBegin();
29
30         /**
31          * Returns the end index (exclusive) of the current word.
32          * 
33          * @return The end index of the current word
34          */
35         public int getEnd();
36
37         /**
38          * Does the current word start a new sentence?
39          * 
40          * @return <code>true<code> iff the current word starts a new sentence, <code>false</code> otherwise
41          */
42         public boolean startsSentence();
43 }