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

org.unlaxer.reducer.MetaFunctionTokenReducer Maven / Gradle / Ivy

package org.unlaxer.reducer;

import org.unlaxer.parser.LazyInstance;
import org.unlaxer.parser.MetaFunctionParser;
import org.unlaxer.parser.Parser;
import org.unlaxer.reducer.TagBasedReducer.NodeKind;

public class MetaFunctionTokenReducer extends AbstractTokenReducer implements CommittedReducer {

	@Override
	public boolean doReduce(Parser parser) {
		return //
				parser.hasTag(NodeKind.notNode.getTag()) ||
				(parser instanceof MetaFunctionParser && //
				false == parser instanceof LazyInstance);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy