Package org.hisrc.jscm.codemodel.expression.impl

Examples of org.hisrc.jscm.codemodel.expression.impl.VariableImpl


  public FunctionDeclarationImpl(JSCodeModel codeModel, String name) {
    Validate.notNull(codeModel);
    Validate.notNull(name);
    this.codeModel = codeModel;
    this.name = name;
    this.functionExpression = new VariableImpl(codeModel, name);
    this.body = new FunctionBodyImpl(codeModel);
  }
View Full Code Here


    return unmodifiableParameters;
  }

  public JSVariable parameter(String name) {
    Validate.notNull(name);
    JSVariable parameter = new VariableImpl(getCodeModel(), name);
    this.parameters.add(parameter);
    return parameter;
  }
View Full Code Here

    this._try = new BlockImpl(codeModel);
    if (exception == null) {
      this.exception = null;
      this._catch = null;
    } else {
      this.exception = new VariableImpl(codeModel, exception);
      this._catch = new BlockImpl(codeModel);
    }
    if (_finally) {
      this._finally = new BlockImpl(codeModel);
    } else {
View Full Code Here

      JSVariableDeclaration parentVariableDeclaration, String name) {
    Validate.notNull(codeModel);
    Validate.notNull(parentVariableDeclaration);
    Validate.notNull(name);
    this.parentVariableDeclaration = parentVariableDeclaration;
    this.variable = new VariableImpl(codeModel, name);
    this.expression = null;
  }
View Full Code Here

      JSAssignmentExpression expression) {
    Validate.notNull(parentVariableDeclaration);
    Validate.notNull(name);
    Validate.notNull(expression);
    this.parentVariableDeclaration = parentVariableDeclaration;
    this.variable = new VariableImpl(codeModel, name);
    this.expression = expression;
  }
View Full Code Here

  public ForVarInStatementImpl(JSCodeModel codeModel, String name,
      JSExpression _in) {
    super(codeModel);
    Validate.notNull(name);
    this.variable = new VariableImpl(codeModel, name);
    this._in = _in;
  }
View Full Code Here

TOP

Related Classes of org.hisrc.jscm.codemodel.expression.impl.VariableImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.