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

net.amygdalum.util.text.CharAutomaton Maven / Gradle / Ivy

The newest version!
package net.amygdalum.util.text;

import java.util.Collections;
import java.util.Iterator;

public interface CharAutomaton extends Iterable {

	@SuppressWarnings("rawtypes")
	public static final CharAutomaton NULL = new CharAutomaton() {

		@Override
		public Iterator iterator() {
			return Collections.emptyIterator();
		}

		@Override
		public void reset() {
		}

		@Override
		public boolean lookahead(char c) {
			return false;
		}

		@Override
		public boolean accept(char c) {
			return false;
		}

		@Override
		public boolean hasAttachments() {
			return false;
		}
		
	};

	void reset();

	boolean lookahead(char c);
	boolean accept(char c);

	boolean hasAttachments();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy