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

Method loadAbsoluteTemplateFile

output/java/1.4.17/STGroup.java:651–663  ·  view source on GitHub ↗

Load template file into this group using absolute fileName.

(String fileName)

Source from the content-addressed store, hash-verified

649 /** Load template file into this group using absolute {@code fileName}. */
650
651 public CompiledST loadAbsoluteTemplateFile(String fileName) {
652 ANTLRFileStream fs;
653 try {
654 fs = new ANTLRFileStream(fileName, encoding);
655 fs.name = fileName;
656 }
657 catch (IOException ioe) {
658 // doesn't exist
659 //errMgr.IOError(null, ErrorType.NO_SUCH_TEMPLATE, ioe, fileName);
660 return null;
661 }
662 return loadTemplateFile("", fileName, fs);
663 }
664
665 /** Load template stream into this group. {@code unqualifiedFileName} is
666 * {@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