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

Method loadAbsoluteTemplateFile

output/java8/1.4.13/STGroup.java:626–638  ·  view source on GitHub ↗

Load template file into this group using absolute fileName.

(String fileName)

Source from the content-addressed store, hash-verified

624 /** Load template file into this group using absolute {@code fileName}. */
625
626 public CompiledST loadAbsoluteTemplateFile(String fileName) {
627 ANTLRFileStream fs;
628 try {
629 fs = new ANTLRFileStream(fileName, encoding);
630 fs.name = fileName;
631 }
632 catch (IOException ioe) {
633 // doesn't exist
634 //errMgr.IOError(null, ErrorType.NO_SUCH_TEMPLATE, ioe, fileName);
635 return null;
636 }
637 return loadTemplateFile("", fileName, fs);
638 }
639
640 /** Load template stream into this group. {@code unqualifiedFileName} is
641 * {@code "a.st"}. The {@code prefix} is path from group root to

Callers

nothing calls this directly

Calls 1

loadTemplateFileMethod · 0.45

Tested by

no test coverage detected