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

org.hisrc.jscm.codemodel.expression.impl.PrimaryExpressionImpl 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.JSExpression;
import org.hisrc.jscm.codemodel.expression.JSExpressionVisitor;
import org.hisrc.jscm.codemodel.expression.JSPrimaryExpression;
import org.hisrc.jscm.codemodel.lang.Validate;

public abstract class PrimaryExpressionImpl extends MemberExpressionImpl
		implements JSPrimaryExpression {

	public PrimaryExpressionImpl(JSCodeModel codeModel) {
		super(codeModel);
	}

	public static class BracketsImpl extends PrimaryExpressionImpl implements
			Brackets {

		private final JSExpression base;

		public BracketsImpl(JSCodeModel codeModel, JSExpression base) {
			super(codeModel);
			Validate.notNull(base);
			this.base = base;
		}

		public JSExpression getBase() {
			return base;
		}

		public  V acceptExpressionVisitor(
				JSExpressionVisitor visitor) throws E {
			return visitor.visitBrackets(this);
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy