MCPcopy Index your code
hub / github.com/antlr/codebuff / defineTemplate

Method defineTemplate

output/java8/1.4.17/STGroup.java:328–343  ·  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,
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

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