net.sourceforge.plantuml.regex.MatcherIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.regex;
import java.util.Iterator;
public class MatcherIterator implements Iterator {
private int cpt = 1;
private final Matcher2 matcher;
MatcherIterator(Matcher2 matcher) {
this.matcher = matcher;
}
public boolean hasNext() {
return cpt <= matcher.groupCount();
}
public String next() {
return matcher.group(cpt++);
}
public void remove() {
throw new UnsupportedOperationException();
}
}