net.sourceforge.plantuml.preproc.ReadLineList 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.preproc;
import java.util.Iterator;
import java.util.List;
import net.sourceforge.plantuml.text.StringLocated;
import net.sourceforge.plantuml.utils.LineLocation;
public class ReadLineList implements ReadLine {
private final Iterator iterator;
private final LineLocation location;
public ReadLineList(List definition, LineLocation location) {
this.iterator = definition.iterator();
this.location = location;
}
public void close() {
}
public StringLocated readLine() {
if (iterator.hasNext() == false) {
return null;
}
return new StringLocated(iterator.next(), location);
}
}