/** * @return Returns the interruption check statement. */ protected Statement createInterruptStatement() { return ifS(createCondition(), throwS( ctorX(thrownExceptionType, args(constX(getErrorMessage()))) ) ); }
/** * @return Returns the interruption check statement. */ protected Statement createInterruptStatement() { return new IfStatement( new BooleanExpression( createCondition() ), new ThrowStatement( new ConstructorCallExpression(thrownExceptionType, new ArgumentListExpression(new ConstantExpression(getErrorMessage()))) ), new EmptyStatement() ); }