@ Check ( CheckType . FAST ) public void checkBehaviorUnitEventType ( SarlBehaviorUnit behaviorUnit ) { final JvmTypeReference event = behaviorUnit . getName ( ) ; final LightweightTypeReference ref = toLightweightTypeReference ( event ) ; if ( ref == null || ! this . inheritanceHelper . isSarlEvent ( ref ) ) { error ( MessageFormat . format ( Messages . SARLValidator_75 , event . getQualifiedName ( ) , Messages . SARLValidator_62 , this . grammarAccess . getOnKeyword ( ) ) , event , null , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , TYPE_BOUNDS_MISMATCH ) ; } }
Check if the parameter of the bahavior unit is an event .