use of org.eclipse.n4js.ts.types.TStructuralType in project n4js by eclipse.
the class ParameterizedTypeRefImpl method isDefSiteStructuralTyping.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isDefSiteStructuralTyping() {
Type _declaredType = this.getDeclaredType();
if ((_declaredType instanceof TN4Classifier)) {
Type _declaredType_1 = this.getDeclaredType();
TypingStrategy _typingStrategy = ((TN4Classifier) _declaredType_1).getTypingStrategy();
return (_typingStrategy == TypingStrategy.STRUCTURAL);
}
Type _declaredType_2 = this.getDeclaredType();
if ((_declaredType_2 instanceof TStructuralType)) {
return true;
}
return false;
}
use of org.eclipse.n4js.ts.types.TStructuralType 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);
}
use of org.eclipse.n4js.ts.types.TStructuralType 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);
}
use of org.eclipse.n4js.ts.types.TStructuralType in project n4js by eclipse.
the class ThisTypeRefStructuralImpl method setStructuralType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStructuralType(TStructuralType newStructuralType) {
TStructuralType oldStructuralType = structuralType;
structuralType = newStructuralType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, TypeRefsPackage.THIS_TYPE_REF_STRUCTURAL__STRUCTURAL_TYPE, oldStructuralType, structuralType));
}
use of org.eclipse.n4js.ts.types.TStructuralType 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);
}
Aggregations