com.softicar.platform.common.ui.wiki.parser.WikiTokenStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.ui.wiki.parser;
import com.softicar.platform.common.ui.wiki.token.WikiToken;
import java.util.List;
public class WikiTokenStream {
private final List tokens;
private int index;
public WikiTokenStream(List tokens) {
this.tokens = tokens;
this.index = 0;
}
public boolean hasToken() {
return index < tokens.size();
}
public WikiToken getToken() {
return tokens.get(index);
}
public void consumeToken() {
index++;
}
}