Search in sources :

Example 1 with Parameter

use of org.applause.lang.applauseDsl.Parameter in project applause by applause.

the class EntityDataAccessExtensions method parameterList.

public String parameterList(final DataSourceAccessMethod it) {
    EList<Parameter> _declaredParameters = it.getDeclaredParameters();
    final Function1<Parameter, String> _function = new Function1<Parameter, String>() {

        public String apply(final Parameter param) {
            Type _type = param.getType();
            String _typeName = EntityDataAccessExtensions.this._typeExtensions.typeName(_type);
            String _plus = (_typeName + " *");
            Type _type_1 = param.getType();
            String _parameterName = EntityDataAccessExtensions.this.parameterName(_type_1);
            String _plus_1 = (_plus + _parameterName);
            return _plus_1;
        }
    };
    List<String> _map = ListExtensions.<Parameter, String>map(_declaredParameters, _function);
    String _join = IterableExtensions.join(_map, ", ");
    return _join;
}
Also used : Type(org.applause.lang.applauseDsl.Type) Function1(org.eclipse.xtext.xbase.lib.Functions.Function1) Parameter(org.applause.lang.applauseDsl.Parameter)

Example 2 with Parameter

use of org.applause.lang.applauseDsl.Parameter in project applause by applause.

the class VariableImpl method setParameterReference.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setParameterReference(Parameter newParameterReference) {
    Parameter oldParameterReference = parameterReference;
    parameterReference = newParameterReference;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ApplauseDslPackage.VARIABLE__PARAMETER_REFERENCE, oldParameterReference, parameterReference));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Parameter(org.applause.lang.applauseDsl.Parameter)

Example 3 with Parameter

use of org.applause.lang.applauseDsl.Parameter in project applause by applause.

the class DataSourceBodySpecificationImpl method setBodycontents.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setBodycontents(Parameter newBodycontents) {
    Parameter oldBodycontents = bodycontents;
    bodycontents = newBodycontents;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ApplauseDslPackage.DATA_SOURCE_BODY_SPECIFICATION__BODYCONTENTS, oldBodycontents, bodycontents));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Parameter(org.applause.lang.applauseDsl.Parameter)

Example 4 with Parameter

use of org.applause.lang.applauseDsl.Parameter in project applause by applause.

the class ScreenImpl method basicSetInputParameter.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetInputParameter(Parameter newInputParameter, NotificationChain msgs) {
    Parameter oldInputParameter = inputParameter;
    inputParameter = newInputParameter;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplauseDslPackage.SCREEN__INPUT_PARAMETER, oldInputParameter, newInputParameter);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Parameter(org.applause.lang.applauseDsl.Parameter)

Aggregations

Parameter (org.applause.lang.applauseDsl.Parameter)4 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)3 Type (org.applause.lang.applauseDsl.Type)1 Function1 (org.eclipse.xtext.xbase.lib.Functions.Function1)1