Examples of XExpression


Examples of org.eclipse.xtext.xbase.XExpression

            return MongoBeansJvmModelInferrer.this._jvmTypesBuilder.toParameter(operation, _name, _parameterType);
          }
        };
        List<JvmFormalParameter> _map = ListExtensions.<JvmFormalParameter, JvmFormalParameter>map(_parameters_1, _function);
        MongoBeansJvmModelInferrer.this._jvmTypesBuilder.<JvmFormalParameter>operator_add(_parameters, _map);
        XExpression _body = operation.getBody();
        MongoBeansJvmModelInferrer.this._jvmTypesBuilder.setBody(it, _body);
      }
    };
    JvmOperation _method = this._jvmTypesBuilder.toMethod(operation, _name, _returnType, _function);
    return this._jvmTypesBuilder.<JvmOperation>operator_add(_members, _method);
View Full Code Here

Examples of org.eclipse.xtext.xbase.XExpression

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetBody(XExpression newBody, NotificationChain msgs)
  {
    XExpression oldBody = body;
    body = newBody;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MongoBeansPackage.MONGO_OPERATION__BODY, oldBody, newBody);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.xtext.xbase.XExpression

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetToInstance(XExpression newToInstance, NotificationChain msgs)
  {
    XExpression oldToInstance = toInstance;
    toInstance = newToInstance;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GuiceModulesPackage.BINDING_AST__TO_INSTANCE, oldToInstance, newToInstance);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.xtext.xbase.XExpression

      }
    }
    if (!_matched) {
      if (expr instanceof RichStringForLoop) {
        _matched=true;
        XExpression _forExpression = ((RichStringForLoop)expr).getForExpression();
        this.internalToJavaStatement(_forExpression, it, true);
        JvmFormalParameter _declaredParam = ((RichStringForLoop)expr).getDeclaredParam();
        final LightweightTypeReference paramType = this.getLightweightType(_declaredParam);
        final String name = it.declareVariable(expr, "_forLoopResult");
        it.newLine();
        StringConcatenation _builder = new StringConcatenation();
        _builder.append("StringBuilder ");
        _builder.append(name, "");
        _builder.append(" = new StringBuilder();");
        _builder.newLineIfNotEmpty();
        _builder.append("for (final ");
        it.append(_builder);
        boolean _notEquals = (!Objects.equal(paramType, null));
        if (_notEquals) {
          it.append(paramType);
        } else {
          it.append("Object");
        }
        StringConcatenation _builder_1 = new StringConcatenation();
        _builder_1.append(" ");
        JvmFormalParameter _declaredParam_1 = ((RichStringForLoop)expr).getDeclaredParam();
        JvmFormalParameter _declaredParam_2 = ((RichStringForLoop)expr).getDeclaredParam();
        String _name = _declaredParam_2.getName();
        String _makeJavaIdentifier = this.makeJavaIdentifier(_name);
        String _declareVariable = it.declareVariable(_declaredParam_1, _makeJavaIdentifier);
        _builder_1.append(_declareVariable, " ");
        _builder_1.append(" : ");
        it.append(_builder_1);
        XExpression _forExpression_1 = ((RichStringForLoop)expr).getForExpression();
        this.internalToJavaExpression(_forExpression_1, it);
        ITreeAppendable _append = it.append(") {");
        _append.increaseIndentation();
        XExpression _eachExpression = ((RichStringForLoop)expr).getEachExpression();
        this.internalToJavaStatement(_eachExpression, it, true);
        it.newLine();
        StringConcatenation _builder_2 = new StringConcatenation();
        _builder_2.append(name, "");
        _builder_2.append(".append(");
        it.append(_builder_2);
        XExpression _eachExpression_1 = ((RichStringForLoop)expr).getEachExpression();
        this.internalToJavaExpression(_eachExpression_1, it);
        it.append(");");
        ITreeAppendable _decreaseIndentation = it.decreaseIndentation();
        ITreeAppendable _newLine = _decreaseIndentation.newLine();
        _newLine.append("}");
View Full Code Here

Examples of org.eclipse.xtext.xbase.XExpression

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetInit(XExpression newInit, NotificationChain msgs)
  {
    XExpression oldInit = init;
    init = newInit;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BuildPackage.PARAMETER__INIT, oldInit, newInit);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.xtext.xbase.XExpression

            JvmTypeReference _elvis_1 = null;
            JvmTypeReference _type = param.getType();
            if (_type != null) {
              _elvis_1 = _type;
            } else {
              XExpression _defaultexp = param.getDefaultexp();
              JvmTypeReference _inferredType = null;
              if (_defaultexp!=null) {
                _inferredType=TemplateJvmModelInferrer.this._jvmTypesBuilder.inferredType(_defaultexp);
              }
              _elvis_1 = _inferredType;
            }
            if (_elvis_1 != null) {
              _elvis = _elvis_1;
            } else {
              JvmTypeReference _typeRef = TemplateJvmModelInferrer.this._typeReferenceBuilder.typeRef(String.class);
              _elvis = _typeRef;
            }
            final JvmTypeReference type = _elvis;
            EList<JvmMember> _members = it.getMembers();
            String _name = param.getName();
            final Procedure1<JvmField> _function = new Procedure1<JvmField>() {
              public void apply(final JvmField it) {
                XExpression _defaultexp = param.getDefaultexp();
                boolean _notEquals = (!Objects.equal(_defaultexp, null));
                if (_notEquals) {
                  XExpression _defaultexp_1 = param.getDefaultexp();
                  TemplateJvmModelInferrer.this._jvmTypesBuilder.setInitializer(it, _defaultexp_1);
                }
              }
            };
            JvmField _field = TemplateJvmModelInferrer.this._jvmTypesBuilder.toField(param, _name, type, _function);
View Full Code Here

Examples of org.eclipse.xtext.xbase.XExpression

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetAction(XExpression newAction, NotificationChain msgs)
  {
    XExpression oldAction = action;
    action = newAction;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BuildPackage.TASK__ACTION, oldAction, newAction);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.xtext.xbase.XExpression

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetCondition(XExpression newCondition, NotificationChain msgs)
  {
    XExpression oldCondition = condition;
    condition = newCondition;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RoutePackage.ROUTE__CONDITION, oldCondition, newCondition);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.xtext.xbase.XExpression

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetCall(XExpression newCall, NotificationChain msgs)
  {
    XExpression oldCall = call;
    call = newCall;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RoutePackage.ROUTE__CALL, oldCall, newCall);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.xtext.xbase.XExpression

        for (final Route route : _filter_1) {
          {
            EList<JvmMember> _members_1 = it.getMembers();
            JvmField _routePatternField = RouteJvmModelInferrer.this.toRoutePatternField(route);
            RouteJvmModelInferrer.this._jvmTypesBuilder.<JvmField>operator_add(_members_1, _routePatternField);
            XExpression _condition = route.getCondition();
            boolean _notEquals = (!Objects.equal(_condition, null));
            if (_notEquals) {
              EList<JvmMember> _members_2 = it.getMembers();
              JvmOperation _routeConditionMethod = RouteJvmModelInferrer.this.toRouteConditionMethod(route);
              RouteJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_2, _routeConditionMethod);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.