Package edu.umd.cs.findbugs.sourceViewer
Class DocumentCharacterIterator
- java.lang.Object
-
- edu.umd.cs.findbugs.sourceViewer.DocumentCharacterIterator
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.text.CharacterIterator
public class DocumentCharacterIterator extends java.lang.Object implements java.text.CharacterIterator
A CharacterIterator over a Document. Only a partial implementation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
char
current()
char
first()
int
getBeginIndex()
int
getEndIndex()
int
getIndex()
char
last()
char
next()
Increments the iterator's index by one and returns the character at the new index.char
previous()
char
setIndex(int position)
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Specified by:
clone
in interfacejava.text.CharacterIterator
- Overrides:
clone
in classjava.lang.Object
-
current
public char current()
- Specified by:
current
in interfacejava.text.CharacterIterator
-
first
public char first()
- Specified by:
first
in interfacejava.text.CharacterIterator
-
getBeginIndex
public int getBeginIndex()
- Specified by:
getBeginIndex
in interfacejava.text.CharacterIterator
-
getEndIndex
public int getEndIndex()
- Specified by:
getEndIndex
in interfacejava.text.CharacterIterator
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfacejava.text.CharacterIterator
-
last
public char last()
- Specified by:
last
in interfacejava.text.CharacterIterator
-
next
public char next()
Increments the iterator's index by one and returns the character at the new index.- Specified by:
next
in interfacejava.text.CharacterIterator
- Returns:
- the character at the new position, or DONE if the new position is off the end
-
previous
public char previous()
- Specified by:
previous
in interfacejava.text.CharacterIterator
-
setIndex
public char setIndex(int position)
- Specified by:
setIndex
in interfacejava.text.CharacterIterator
-
-