public class RecursiveCharIterator extends CharIterator
Constructor | Description |
---|---|
RecursiveCharIterator(FObj fobj) |
Constructor which creates an iterator for all child nodes
|
RecursiveCharIterator(FObj fobj,
FONode child) |
Constructor which creates an iterator for only some child nodes
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
clone() |
|
boolean |
hasNext() |
|
CharIterator |
mark() |
|
char |
nextChar() |
|
void |
remove() |
|
void |
replaceChar(char c) |
Replaces the current character in the CharIterator with a specified
character
|
next
public RecursiveCharIterator(FObj fobj)
fobj
- FONode for which an iterator should be createdpublic CharIterator mark()
public java.lang.Object clone()
CharIterator
clone
in class CharIterator
public void replaceChar(char c)
replaceChar
in class CharIterator
c
- the character which should be used to replace the current
characterpublic boolean hasNext()
CharIterator
hasNext
in class CharIterator
public char nextChar() throws java.util.NoSuchElementException
nextChar
in class CharIterator
java.util.NoSuchElementException
- if there are no more characters (test for
this condition with java.util.Iterator.hasNext()).public void remove()
remove
in class CharIterator
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.