for testing
(String templateName, String template)
| 326 | /** for testing */ |
| 327 | |
| 328 | public CompiledST defineTemplate(String templateName, String template) { |
| 329 | if ( templateName.charAt(0) !='/' ) templateName = "/"+templateName; |
| 330 | try { |
| 331 | CompiledST impl = defineTemplate(templateName, |
| 332 | new CommonToken(GroupParser.ID, templateName), |
| 333 | null, |
| 334 | template, |
| 335 | null); |
| 336 | return impl; |
| 337 | } |
| 338 | catch (STException se) { |
| 339 | // we have reported the error; the exception just blasts us |
| 340 | // out of parsing this template |
| 341 | } |
| 342 | return null; |
| 343 | } |
| 344 | |
| 345 | /** for testing */ |
| 346 |
no test coverage detected