org.hisrc.jscm.codemodel.statement.impl.ExpressionStatementImpl Maven / Gradle / Ivy
The newest version!
package org.hisrc.jscm.codemodel.statement.impl;
import org.hisrc.jscm.codemodel.JSCodeModel;
import org.hisrc.jscm.codemodel.expression.JSExpression;
import org.hisrc.jscm.codemodel.lang.Validate;
import org.hisrc.jscm.codemodel.statement.JSExpressionStatement;
import org.hisrc.jscm.codemodel.statement.JSStatementVisitor;
public class ExpressionStatementImpl extends StatementImpl implements
JSExpressionStatement {
private final JSExpression expression;
public ExpressionStatementImpl(JSCodeModel codeModel, JSExpression expression) {
super(codeModel);
Validate.notNull(expression);
this.expression = expression;
}
@Override
public JSExpression getExpression() {
return expression;
}
@Override
public V acceptStatementVisitor(
JSStatementVisitor visitor) throws E {
return visitor.visitExpression(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy