@Test public void testLoadTemplateGroupWithDollarSign() { StringTemplateGroup stringTemplateGroup = StringTemplateUtil.loadTemplateGroupDollarSign("/stg/Test_Dollar.stg"); assertStringTemplate(stringTemplateGroup); }
public static StringTemplateGroup loadTemplateGroupDollarSign(String templateName) { try (InputStreamReader reader = getTemplateInputStreamReader(templateName)) { return new StringTemplateGroup(reader, DefaultTemplateLexer.class); } catch(IOException e) { LOGGER.error("Error reading resource {}", templateName, e); throw new IllegalArgumentException("Resource not found: " + templateName); } }
StringTemplateUtil { public static StringTemplateGroup loadTemplateGroupDollarSign(String templateName) { try (InputStreamReader reader = getTemplateInputStreamReader(templateName)) { return new StringTemplateGroup(reader, DefaultTemplateLexer.class); } catch(IOException e) { LOGGER.error("Error reading resource {}", templateName, e); throw new IllegalArgumentException("Resource not found: " + templateName); } } }
StringTemplateUtil { public static StringTemplateGroup loadTemplateGroupDollarSign(String templateName) { try (InputStreamReader reader = getTemplateInputStreamReader(templateName)) { return new StringTemplateGroup(reader, DefaultTemplateLexer.class); } catch(IOException e) { LOGGER.error("Error reading resource {}", templateName, e); throw new IllegalArgumentException("Resource not found: " + templateName); } } private  StringTemplateUtil(); }
StringTemplateUtil { public static StringTemplateGroup loadTemplateGroupDollarSign(String templateName) { try (InputStreamReader reader = getTemplateInputStreamReader(templateName)) { return new StringTemplateGroup(reader, DefaultTemplateLexer.class); } catch(IOException e) { LOGGER.error("Error reading resource {}", templateName, e); throw new IllegalArgumentException("Resource not found: " + templateName); } } private  StringTemplateUtil(); static StringTemplateGroup loadTemplateGroupAngleBracket(String templateName); static StringTemplateGroup loadTemplateGroupDollarSign(String templateName); }
StringTemplateUtil { public static StringTemplateGroup loadTemplateGroupDollarSign(String templateName) { try (InputStreamReader reader = getTemplateInputStreamReader(templateName)) { return new StringTemplateGroup(reader, DefaultTemplateLexer.class); } catch(IOException e) { LOGGER.error("Error reading resource {}", templateName, e); throw new IllegalArgumentException("Resource not found: " + templateName); } } private  StringTemplateUtil(); static StringTemplateGroup loadTemplateGroupAngleBracket(String templateName); static StringTemplateGroup loadTemplateGroupDollarSign(String templateName);  }