|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.pipe.iterator.PatternMatchIterator
public class PatternMatchIterator
Iterates over matching regular expresions. E.g. regexp = Pattern.compile ("
(.+?)
") will extractelements from:
This block is an element
this is notbut this is
Constructor Summary | |
---|---|
PatternMatchIterator(java.lang.CharSequence input,
java.util.regex.Pattern regexp)
|
Method Summary | |
---|---|
java.lang.String |
getNextElement()
|
boolean |
hasNext()
|
Instance |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatternMatchIterator(java.lang.CharSequence input, java.util.regex.Pattern regexp)
Method Detail |
---|
public java.lang.String getNextElement()
public Instance next()
next
in interface java.util.Iterator<Instance>
public boolean hasNext()
hasNext
in interface java.util.Iterator<Instance>
public void remove()
remove
in interface java.util.Iterator<Instance>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |