anvil.core.util
Class MatcherIterator

java.lang.Object
  |
  +--anvil.core.util.MatcherIterator
All Implemented Interfaces:
BindingIterator, java.util.Iterator

public class MatcherIterator
extends java.lang.Object
implements BindingIterator


Field Summary
 
Fields inherited from interface anvil.java.util.BindingIterator
EMPTY
 
Constructor Summary
MatcherIterator(java.util.regex.Matcher matcher)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 java.lang.Object nextKey()
          Note: this method should not move the iterator to next element.
 void remove()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatcherIterator

public MatcherIterator(java.util.regex.Matcher matcher)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

nextKey

public java.lang.Object nextKey()
Description copied from interface: BindingIterator
Note: this method should not move the iterator to next element.

Specified by:
nextKey in interface BindingIterator
Returns:
Next key in iterator.

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator