package oqube.muse;
@author@oqube
@version
public final class IdentityLexer extends FlowLexer {
public static final IdentityLexer instance = new IdentityLexer();
public IdentityLexer() {
super("^.*$");
}
public void handler() {
getWrappedSink().text(matcher.group(0));
}
public AbstractLexer setNext(AbstractLexer next) {
throw new IllegalStateException("IdentityLexer matches anything so it should be before another lexer in a chain !");
}
}