edu.umd.cs.findbugs.sourceViewer

Class DocumentCharacterIterator

public class DocumentCharacterIterator extends Object implements CharacterIterator

A CharacterIterator over a Document. Only a partial implementation.
Method Summary
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

current

public char current()

first

public char first()

getBeginIndex

public int getBeginIndex()

getEndIndex

public int getEndIndex()

getIndex

public int getIndex()

last

public char last()

next

public char next()
Increments the iterator's index by one and returns the character at the new index.

Returns: the character at the new position, or DONE if the new position is off the end

previous

public char previous()

setIndex

public char setIndex(int position)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.