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.CharacterIteratorA CharacterIterator over a Document. Only a partial implementation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()charcurrent()charfirst()intgetBeginIndex()intgetEndIndex()intgetIndex()charlast()charnext()Increments the iterator's index by one and returns the character at the new index.charprevious()charsetIndex(int position)
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfacejava.text.CharacterIterator- Overrides:
clonein classjava.lang.Object
-
current
public char current()
- Specified by:
currentin interfacejava.text.CharacterIterator
-
first
public char first()
- Specified by:
firstin interfacejava.text.CharacterIterator
-
getBeginIndex
public int getBeginIndex()
- Specified by:
getBeginIndexin interfacejava.text.CharacterIterator
-
getEndIndex
public int getEndIndex()
- Specified by:
getEndIndexin interfacejava.text.CharacterIterator
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfacejava.text.CharacterIterator
-
last
public char last()
- Specified by:
lastin interfacejava.text.CharacterIterator
-
next
public char next()
Increments the iterator's index by one and returns the character at the new index.- Specified by:
nextin 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:
previousin interfacejava.text.CharacterIterator
-
setIndex
public char setIndex(int position)
- Specified by:
setIndexin interfacejava.text.CharacterIterator
-
-