Search in sources :

Example 6 with TStructMember

use of org.eclipse.n4js.ts.types.TStructMember in project n4js by eclipse.

the class StructuralTypeRefImpl method getStructuralMembers.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<TStructMember> getStructuralMembers() {
    EList<TStructMember> _xifexpression = null;
    TStructuralType _structuralType = this.getStructuralType();
    boolean _tripleNotEquals = (_structuralType != null);
    if (_tripleNotEquals) {
        _xifexpression = this.getStructuralType().getOwnedMembers();
    } else {
        EList<TStructMember> _xifexpression_1 = null;
        boolean _isEmpty = this.getAstStructuralMembers().isEmpty();
        boolean _not = (!_isEmpty);
        if (_not) {
            _xifexpression_1 = this.getAstStructuralMembers();
        } else {
            _xifexpression_1 = this.getGenStructuralMembers();
        }
        _xifexpression = _xifexpression_1;
    }
    return ECollections.<TStructMember>unmodifiableEList(_xifexpression);
}
Also used : TStructMember(org.eclipse.n4js.ts.types.TStructMember) TStructuralType(org.eclipse.n4js.ts.types.TStructuralType)

Example 7 with TStructMember

use of org.eclipse.n4js.ts.types.TStructMember in project n4js by eclipse.

the class VersionedParameterizedTypeRefStructuralImpl method getStructuralMembers.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<TStructMember> getStructuralMembers() {
    EList<TStructMember> _xifexpression = null;
    TStructuralType _structuralType = this.getStructuralType();
    boolean _tripleNotEquals = (_structuralType != null);
    if (_tripleNotEquals) {
        _xifexpression = this.getStructuralType().getOwnedMembers();
    } else {
        EList<TStructMember> _xifexpression_1 = null;
        boolean _isEmpty = this.getAstStructuralMembers().isEmpty();
        boolean _not = (!_isEmpty);
        if (_not) {
            _xifexpression_1 = this.getAstStructuralMembers();
        } else {
            _xifexpression_1 = this.getGenStructuralMembers();
        }
        _xifexpression = _xifexpression_1;
    }
    return ECollections.<TStructMember>unmodifiableEList(_xifexpression);
}
Also used : TStructMember(org.eclipse.n4js.ts.types.TStructMember) TStructuralType(org.eclipse.n4js.ts.types.TStructuralType)

Example 8 with TStructMember

use of org.eclipse.n4js.ts.types.TStructMember in project n4js by eclipse.

the class TStructSetterImpl method setDefinedMember.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDefinedMember(TStructMember newDefinedMember) {
    TStructMember oldDefinedMember = definedMember;
    definedMember = newDefinedMember;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.TSTRUCT_SETTER__DEFINED_MEMBER, oldDefinedMember, definedMember));
}
Also used : TStructMember(org.eclipse.n4js.ts.types.TStructMember) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 9 with TStructMember

use of org.eclipse.n4js.ts.types.TStructMember in project n4js by eclipse.

the class TStructMethodImpl method setDefinedMember.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDefinedMember(TStructMember newDefinedMember) {
    TStructMember oldDefinedMember = definedMember;
    definedMember = newDefinedMember;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.TSTRUCT_METHOD__DEFINED_MEMBER, oldDefinedMember, definedMember));
}
Also used : TStructMember(org.eclipse.n4js.ts.types.TStructMember) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 10 with TStructMember

use of org.eclipse.n4js.ts.types.TStructMember in project n4js by eclipse.

the class ThisTypeRefStructuralImpl method getStructuralMembers.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<TStructMember> getStructuralMembers() {
    EList<TStructMember> _xifexpression = null;
    TStructuralType _structuralType = this.getStructuralType();
    boolean _tripleNotEquals = (_structuralType != null);
    if (_tripleNotEquals) {
        _xifexpression = this.getStructuralType().getOwnedMembers();
    } else {
        EList<TStructMember> _xifexpression_1 = null;
        boolean _isEmpty = this.getAstStructuralMembers().isEmpty();
        boolean _not = (!_isEmpty);
        if (_not) {
            _xifexpression_1 = this.getAstStructuralMembers();
        } else {
            _xifexpression_1 = this.getGenStructuralMembers();
        }
        _xifexpression = _xifexpression_1;
    }
    return ECollections.<TStructMember>unmodifiableEList(_xifexpression);
}
Also used : TStructMember(org.eclipse.n4js.ts.types.TStructMember) TStructuralType(org.eclipse.n4js.ts.types.TStructuralType)

Aggregations

TStructMember (org.eclipse.n4js.ts.types.TStructMember)18 TStructuralType (org.eclipse.n4js.ts.types.TStructuralType)11 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)5 TypeArgument (org.eclipse.n4js.ts.typeRefs.TypeArgument)4 TypeVariableMapping (org.eclipse.n4js.ts.typeRefs.TypeVariableMapping)4 Type (org.eclipse.n4js.ts.types.Type)4 TypingStrategy (org.eclipse.n4js.ts.types.TypingStrategy)4 Function1 (org.eclipse.xtext.xbase.lib.Functions.Function1)4 Resource (org.eclipse.emf.ecore.resource.Resource)1 BoundThisTypeRef (org.eclipse.n4js.ts.typeRefs.BoundThisTypeRef)1 ComposedTypeRef (org.eclipse.n4js.ts.typeRefs.ComposedTypeRef)1 ExistentialTypeRef (org.eclipse.n4js.ts.typeRefs.ExistentialTypeRef)1 FunctionTypeExprOrRef (org.eclipse.n4js.ts.typeRefs.FunctionTypeExprOrRef)1 ParameterizedTypeRef (org.eclipse.n4js.ts.typeRefs.ParameterizedTypeRef)1 StructuralTypeRef (org.eclipse.n4js.ts.typeRefs.StructuralTypeRef)1 TypeRef (org.eclipse.n4js.ts.typeRefs.TypeRef)1 TypeTypeRef (org.eclipse.n4js.ts.typeRefs.TypeTypeRef)1 Wildcard (org.eclipse.n4js.ts.typeRefs.Wildcard)1 TMember (org.eclipse.n4js.ts.types.TMember)1