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

Method loadAbsoluteTemplateFile

output/java8/1.4.19/STGroup.java:648–660  ·  view source on GitHub ↗

Load template file into this group using absolute fileName.

(String fileName)

Source from the content-addressed store, hash-verified

646 /** Load template file into this group using absolute {@code fileName}. */
647
648 public CompiledST loadAbsoluteTemplateFile(String fileName) {
649 ANTLRFileStream fs;
650 try {
651 fs = new ANTLRFileStream(fileName, encoding);
652 fs.name = fileName;
653 }
654 catch (IOException ioe) {
655 // doesn't exist
656 //errMgr.IOError(null, ErrorType.NO_SUCH_TEMPLATE, ioe, fileName);
657 return null;
658 }
659 return loadTemplateFile("", fileName, fs);
660 }
661
662 /** Load template stream into this group. {@code unqualifiedFileName} is
663 * {@code "a.st"}. The {@code prefix} is path from group root to

Callers

nothing calls this directly

Calls 1

loadTemplateFileMethod · 0.95

Tested by

no test coverage detected