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

org.hisrc.jscm.codemodel.literal.impl.BooleanLiteralImpl Maven / Gradle / Ivy

The newest version!
package org.hisrc.jscm.codemodel.literal.impl;

import org.hisrc.jscm.codemodel.JSCodeModel;
import org.hisrc.jscm.codemodel.literal.JSBooleanLiteral;
import org.hisrc.jscm.codemodel.literal.JSLiteralVisitor;

public class BooleanLiteralImpl extends LiteralImpl implements JSBooleanLiteral {

	private final boolean value;

	public BooleanLiteralImpl(JSCodeModel codeModel, boolean value) {
		super(codeModel);
		this.value = value;
	}

	@Override
	public boolean asBoolean() {

		return value;
	}

	@Override
	public  V acceptLiteralVisitor(
			JSLiteralVisitor visitor) throws E {
		return visitor.visit(this);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy