org.hisrc.jscm.codemodel.expression.impl.VariableImpl Maven / Gradle / Ivy
The newest version!
package org.hisrc.jscm.codemodel.expression.impl;
import org.hisrc.jscm.codemodel.JSCodeModel;
import org.hisrc.jscm.codemodel.expression.JSExpressionVisitor;
import org.hisrc.jscm.codemodel.expression.JSVariable;
import org.hisrc.jscm.codemodel.lang.Validate;
public class VariableImpl extends PrimaryExpressionImpl implements JSVariable{
private final String name;
public VariableImpl(JSCodeModel codeModel, String name) {
super(codeModel);
this.name = name;
Validate.notNull(name);
}
public String getName() {
return name;
}
@Override
public V acceptExpressionVisitor(JSExpressionVisitor visitor)
throws E {
return visitor.visitVariable(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy