(final PJEP myParser, final String costExpr)
| 4234 | } |
| 4235 | |
| 4236 | private BigDecimal evaluateCost(final PJEP myParser, final String costExpr) |
| 4237 | { |
| 4238 | myParser.parseExpression(costExpr); |
| 4239 | |
| 4240 | if (!myParser.hasError()) |
| 4241 | { |
| 4242 | final Object result = myParser.getValueAsObject(); |
| 4243 | |
| 4244 | if (result != null) |
| 4245 | { |
| 4246 | return new BigDecimal(result.toString()); |
| 4247 | } |
| 4248 | } |
| 4249 | |
| 4250 | Logging.errorPrint("Bad equipment cost expression: " + costExpr); |
| 4251 | |
| 4252 | return BigDecimal.ZERO; |
| 4253 | } |
| 4254 | |
| 4255 | private boolean ignoresCostDouble() |
| 4256 | { |
no test coverage detected