Search in sources :

Example 1 with PropertyNameKind

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;
}
Also used : PropertyNameKind(org.eclipse.n4js.n4JS.PropertyNameKind) LiteralOrComputedPropertyName(org.eclipse.n4js.n4JS.LiteralOrComputedPropertyName)

Example 2 with PropertyNameKind

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;
}
Also used : PropertyNameKind(org.eclipse.n4js.n4JS.PropertyNameKind) LiteralOrComputedPropertyName(org.eclipse.n4js.n4JS.LiteralOrComputedPropertyName)

Example 3 with PropertyNameKind

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;
}
Also used : PropertyNameKind(org.eclipse.n4js.n4JS.PropertyNameKind) LiteralOrComputedPropertyName(org.eclipse.n4js.n4JS.LiteralOrComputedPropertyName)

Example 4 with PropertyNameKind

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;
}
Also used : PropertyNameKind(org.eclipse.n4js.n4JS.PropertyNameKind) LiteralOrComputedPropertyName(org.eclipse.n4js.n4JS.LiteralOrComputedPropertyName)

Example 5 with PropertyNameKind

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;
}
Also used : PropertyNameKind(org.eclipse.n4js.n4JS.PropertyNameKind) LiteralOrComputedPropertyName(org.eclipse.n4js.n4JS.LiteralOrComputedPropertyName)

Aggregations

PropertyNameKind (org.eclipse.n4js.n4JS.PropertyNameKind)8 LiteralOrComputedPropertyName (org.eclipse.n4js.n4JS.LiteralOrComputedPropertyName)7 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1