All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softicar.platform.common.ui.wiki.parser.WikiTokenStream Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
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++;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy