use of org.eclipse.n4js.n4JS.LiteralOrComputedPropertyName in project n4js by eclipse.
the class MethodDeclarationImpl method basicSetDeclaredName.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetDeclaredName(LiteralOrComputedPropertyName newDeclaredName, NotificationChain msgs) {
LiteralOrComputedPropertyName oldDeclaredName = declaredName;
declaredName = newDeclaredName;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.METHOD_DECLARATION__DECLARED_NAME, oldDeclaredName, newDeclaredName);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.n4js.n4JS.LiteralOrComputedPropertyName in project n4js by eclipse.
the class N4FieldDeclarationImpl method basicSetDeclaredName.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetDeclaredName(LiteralOrComputedPropertyName newDeclaredName, NotificationChain msgs) {
LiteralOrComputedPropertyName oldDeclaredName = declaredName;
declaredName = newDeclaredName;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.N4_FIELD_DECLARATION__DECLARED_NAME, oldDeclaredName, newDeclaredName);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.n4js.n4JS.LiteralOrComputedPropertyName in project n4js by eclipse.
the class N4GetterDeclarationImpl method isValidName.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isValidName() {
String _name = this.getName();
boolean _equals = Objects.equal("prototype", _name);
if (_equals) {
return false;
}
boolean _and = false;
String _name_1 = this.getName();
boolean _equals_1 = Objects.equal("constructor", _name_1);
if (!_equals_1) {
_and = false;
} else {
LiteralOrComputedPropertyName _declaredName = this.getDeclaredName();
PropertyNameKind _kind = null;
if (_declaredName != null) {
_kind = _declaredName.getKind();
}
boolean _tripleNotEquals = (_kind != PropertyNameKind.COMPUTED);
_and = _tripleNotEquals;
}
if (_and) {
return false;
}
return true;
}
use of org.eclipse.n4js.n4JS.LiteralOrComputedPropertyName in project n4js by eclipse.
the class N4SetterDeclarationImpl method isValidName.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isValidName() {
String _name = this.getName();
boolean _equals = Objects.equal("prototype", _name);
if (_equals) {
return false;
}
boolean _and = false;
String _name_1 = this.getName();
boolean _equals_1 = Objects.equal("constructor", _name_1);
if (!_equals_1) {
_and = false;
} else {
LiteralOrComputedPropertyName _declaredName = this.getDeclaredName();
PropertyNameKind _kind = null;
if (_declaredName != null) {
_kind = _declaredName.getKind();
}
boolean _tripleNotEquals = (_kind != PropertyNameKind.COMPUTED);
_and = _tripleNotEquals;
}
if (_and) {
return false;
}
return true;
}
use of org.eclipse.n4js.n4JS.LiteralOrComputedPropertyName in project n4js by eclipse.
the class PropertyNameOwnerImpl method getName.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
LiteralOrComputedPropertyName _declaredName = this.getDeclaredName();
String _name = null;
if (_declaredName != null) {
_name = _declaredName.getName();
}
return _name;
}
Aggregations