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

Method defineTemplate

output/java8/1.4.14/STGroup.java:327–342  ·  view source on GitHub ↗

for testing

(String templateName, String template)

Source from the content-addressed store, hash-verified

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

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