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

de.prob.prolog.output.DummyPrologOutput Maven / Gradle / Ivy

There is a newer version: 2.13.5
Show newest version
package de.prob.prolog.output;

import java.math.BigInteger;

import de.prob.prolog.term.PrologTerm;

/**
 * An implementation of {@link IPrologTermOutput} that does nothing.
 */
public class DummyPrologOutput implements IPrologTermOutput {
	public static final DummyPrologOutput DUMMY = new DummyPrologOutput();

	private DummyPrologOutput() {
	}

	@Override
	public IPrologTermOutput closeList() {
		return this;
	}

	@Override
	public IPrologTermOutput closeTerm() {
		return this;
	}

	@Override
	public IPrologTermOutput emptyList() {
		return this;
	}

	@Override
	public IPrologTermOutput flush() {
		return this;
	}

	@Override
	public IPrologTermOutput fullstop() {
		return this;
	}

	@Override
	public IPrologTermOutput openList() {
		return this;
	}

	@Override
	public IPrologTermOutput openTerm(final String functor) {
		return this;
	}

	@Override
	public IPrologTermOutput openTerm(final String functor, final boolean ignoreIndention) {
		return this;
	}

	@Override
	public IPrologTermOutput printAtom(final String content) {
		return this;
	}

	@Override
	public IPrologTermOutput printAtomOrNumber(final String content) {
		return this;
	}

	@Override
	public IPrologTermOutput printNumber(final long number) {
		return this;
	}

	@Override
	public IPrologTermOutput printNumber(final BigInteger number) {
		return this;
	}

	@Override
	public IPrologTermOutput printNumber(final double number) {
		return this;
	}

	@Override
	public IPrologTermOutput printString(final String content) {
		return this;
	}

	@Override
	public IPrologTermOutput printVariable(final String var) {
		return this;
	}

	@Override
	public IPrologTermOutput printTerm(final PrologTerm term) {
		return this;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy