@ Check ( CheckType . FAST ) public void checkFieldName ( SarlField field ) { final JvmField inferredType = this . associations . getJvmField ( field ) ; final QualifiedName name = Utils . getQualifiedName ( inferredType ) ; if ( this . featureNames . isDisallowedName ( name ) ) { final String validName = Utils . fixHiddenMember ( field . getName ( ) ) ; error ( MessageFormat . format ( Messages . SARLValidator_41 , field . getName ( ) ) , field , XTEND_FIELD__NAME , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , VARIABLE_NAME_DISALLOWED , validName ) ; } else if ( this . grammarAccess . getOccurrenceKeyword ( ) . equals ( field . getName ( ) ) ) { error ( MessageFormat . format ( Messages . SARLValidator_41 , this . grammarAccess . getOccurrenceKeyword ( ) ) , field , XTEND_FIELD__NAME , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , VARIABLE_NAME_DISALLOWED ) ; } }
Check if the given field has a valid name .