MCPcopy Create free account
hub / github.com/antlr/codebuff / defineTemplate

Method defineTemplate

output/java/1.4.17/STGroup.java:328–339  ·  view source on GitHub ↗

for testing

(String templateName, String template)

Source from the content-addressed store, hash-verified

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, new CommonToken(GroupParser.ID, templateName), null, template, null);
332 return impl;
333 }
334 catch (STException se) {
335 // we have reported the error; the exception just blasts us
336 // out of parsing this template
337 }
338 return null;
339 }
340
341 /** for testing */
342

Callers 1

Calls 11

compileMethod · 0.95
getFileNameMethod · 0.95
rawDefineTemplateMethod · 0.95
addMethod · 0.65
splitMethod · 0.45
lengthMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected