net.amygdalum.util.text.CharAutomaton Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compilerutils Show documentation
Show all versions of compilerutils Show documentation
Utility classes needed for search and compiler applications
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