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

org.hisrc.jscm.codemodel.statement.impl.ContinueStatementImpl Maven / Gradle / Ivy

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

import org.hisrc.jscm.codemodel.JSCodeModel;
import org.hisrc.jscm.codemodel.lang.Validate;
import org.hisrc.jscm.codemodel.statement.JSContinueStatement;
import org.hisrc.jscm.codemodel.statement.JSLabelledStatement.JSLabel;
import org.hisrc.jscm.codemodel.statement.JSStatementVisitor;

public class ContinueStatementImpl extends StatementImpl implements
		JSContinueStatement {

	private final JSLabel label;

	public ContinueStatementImpl(JSCodeModel codeModel) {
		super(codeModel);
		this.label = null;
	}

	public ContinueStatementImpl(JSCodeModel codeModel, JSLabel label) {
		super(codeModel);
		Validate.notNull(label);
		this.label = label;
	}

	@Override
	public JSLabel getLabel() {
		return label;
	}

	@Override
	public  V acceptStatementVisitor(
			JSStatementVisitor visitor) throws E {
		return visitor.visitContinue(this);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy