/** Check the type of the capacity uses. * * @param uses the capacity uses. */ @Check(CheckType.FAST) public void checkCapacityTypeForUses(SarlCapacityUses uses) { for (final JvmParameterizedTypeReference usedType : uses.getCapacities()) { final LightweightTypeReference ref = toLightweightTypeReference(usedType); if (ref != null && !this.inheritanceHelper.isSarlCapacity(ref)) { error(MessageFormat.format( Messages.SARLValidator_57, usedType.getQualifiedName(), Messages.SARLValidator_58, this.grammarAccess.getUsesKeyword()), usedType, null, ValidationMessageAcceptor.INSIGNIFICANT_INDEX, INVALID_CAPACITY_TYPE, usedType.getSimpleName()); } } }
ValidationMessageAcceptor.INSIGNIFICANT_INDEX, UNREACHABLE_BEHAVIOR_UNIT, behaviorUnit.getName().getSimpleName());
final SarlBehaviorUnit source = evaluators.getKey(); final String behName = Utils.createNameForHiddenGuardGeneralEvaluatorMethod(source.getName().getSimpleName());
if (source.getName() != null && !Strings.isNullOrEmpty(source.getName().getSimpleName()) && context != null) { final XExpression guard = source.getGuard(); final String bodyMethodName = Utils.createNameForHiddenEventHandlerMethod(source.getName().getSimpleName(), context.getBehaviorUnitIndex()); final String guardMethodName = Utils.createNameForHiddenGuardEvaluatorMethod(source.getName().getSimpleName(), context.getBehaviorUnitIndex());