org.hisrc.jscm.codemodel.expression.impl.GlobalVariableImpl 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.JSGlobalVariable;
import org.hisrc.jscm.codemodel.lang.Validate;
public class GlobalVariableImpl extends PrimaryExpressionImpl implements
JSGlobalVariable {
private final String name;
public GlobalVariableImpl(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.visitGlobalVariable(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy