use of org.eclipse.n4js.n4JS.PropertyNameKind in project n4js by eclipse.
the class PropertyAssignmentImpl 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.PropertyNameKind 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.PropertyNameKind 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.PropertyNameKind in project n4js by eclipse.
the class PropertyAssignmentAnnotationListImpl 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.PropertyNameKind in project n4js by eclipse.
the class N4FieldAccessorImpl 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;
}
Aggregations