e.setTemplateName(parentTemplate.getSourceName()); throw e;
e.setTemplateName(getSourceName()); throw e; } finally {
void checkInterpolation() throws ParseException { if (value.length() > 3 && (value.indexOf("${") >= 0 || value.indexOf("#{") >= 0)) { SimpleCharStream scs = new SimpleCharStream(new StringReader(value), beginLine, beginColumn+1, value.length()); FMParserTokenManager token_source = new FMParserTokenManager(scs); token_source.onlyTextOutput = true; FMParser parser = new FMParser(token_source); parser.template = getTemplate(); try { interpolatedOutput = parser.FreeMarkerText(); } catch(ParseException e) { e.setTemplateName(getTemplate().getName()); throw e; } this.constantValue = null; } }
e.setTemplateName(parentTemplate.getSourceName()); throw e;
TemplateModel calculateResult(String s, Environment env) throws TemplateException { SimpleCharStream scs = new SimpleCharStream( new StringReader("(" + s + ")"), target.beginLine, target.beginColumn, s.length() + 2); FMParserTokenManager token_source = new FMParserTokenManager(scs); token_source.SwitchTo(FMParserConstants.FM_EXPRESSION); FMParser parser = new FMParser(token_source); parser.template = getTemplate(); Expression exp = null; try { exp = parser.Expression(); } catch (ParseException pe) { pe.setTemplateName(getTemplate().getName()); throw new TemplateException(pe, env); } return exp.getAsTemplateModel(env); } }
e.setTemplateName(parentTemplate.getSourceName()); throw e;
e.setTemplateName(name); throw e;
e.setTemplateName(getSourceName()); throw e; } finally {
e.setTemplateName(getSourceName()); throw e; } finally {