private StringTemplate3StatementLocator(String templateGroupFilePathOnClasspath,
String superTemplateGroupFilePathOnClasspath,
StringTemplateErrorListener errorListener,
boolean allowImplicitTemplateGroup,
boolean treatLiteralsAsTemplates,
boolean shouldCache)
{
this.treatLiteralsAsTemplates = treatLiteralsAsTemplates;
final StringTemplateGroup superGroup;
final StringBuilder sb = new StringBuilder(templateGroupFilePathOnClasspath);
if (superTemplateGroupFilePathOnClasspath != null) {
sb.append(SUPER_SEPARATOR).append(superTemplateGroupFilePathOnClasspath);
superGroup = createGroup(superTemplateGroupFilePathOnClasspath,
errorListener,
shouldCache ? superTemplateGroupFilePathOnClasspath : null,
allowImplicitTemplateGroup,
getClass(),
null);
}
else {
superGroup = null;
}
this.group = createGroup(templateGroupFilePathOnClasspath,
errorListener,
shouldCache ? sb.toString() : null,
allowImplicitTemplateGroup,
getClass(),
superGroup);
}