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;
}
}
|