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

Method defineTemplate

output/java/1.4.19/STGroup.java:329–340  ·  view source on GitHub ↗

for testing

(String templateName, String template)

Source from the content-addressed store, hash-verified

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

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