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