@Override TemplateModel _eval(Environment env) throws TemplateException { TemplateModel tm; if (exp instanceof ParentheticalExpression) { boolean lastFIRE = env.setFastInvalidReferenceExceptions(true); try { tm = exp.eval(env); } catch (InvalidReferenceException ire) { tm = null; } finally { env.setFastInvalidReferenceExceptions(lastFIRE); } } else { tm = exp.eval(env); } return tm == null ? TemplateBooleanModel.FALSE : TemplateBooleanModel.TRUE; }
protected TemplateModel evalMaybeNonexistentTarget(Environment env) throws TemplateException { TemplateModel tm; if (target instanceof ParentheticalExpression) { boolean lastFIRE = env.setFastInvalidReferenceExceptions(true); try { tm = target.eval(env); } catch (InvalidReferenceException ire) { tm = null; } finally { env.setFastInvalidReferenceExceptions(lastFIRE); } } else { tm = target.eval(env); } return tm; }
@Override TemplateModel _eval(Environment env) throws TemplateException { TemplateModel left; if (lho instanceof ParentheticalExpression) { boolean lastFIRE = env.setFastInvalidReferenceExceptions(true); try { left = lho.eval(env); } catch (InvalidReferenceException ire) { left = null; } finally { env.setFastInvalidReferenceExceptions(lastFIRE); } } else { left = lho.eval(env); } if (left != null) return left; else if (rho == null) return EMPTY_STRING_AND_SEQUENCE_AND_HASH; else return rho.eval(env); }
this.out = sw; TemplateException thrownException = null; boolean lastFIRE = setFastInvalidReferenceExceptions(false); boolean lastInAttemptBlock = inAttemptBlock; try { } finally { inAttemptBlock = lastInAttemptBlock; setFastInvalidReferenceExceptions(lastFIRE); this.out = prevOut;
public Writer getWriter(final Writer out, Map args) throws TemplateModelException, IOException { try { Environment env = Environment.getCurrentEnvironment(); boolean lastFIRE = env.setFastInvalidReferenceExceptions(false); try { env.include(template); } finally { env.setFastInvalidReferenceExceptions(lastFIRE);
@Override TemplateModel _eval(Environment env) throws TemplateException { TemplateModel tm; if (exp instanceof ParentheticalExpression) { boolean lastFIRE = env.setFastInvalidReferenceExceptions(true); try { tm = exp.eval(env); } catch (InvalidReferenceException ire) { tm = null; } finally { env.setFastInvalidReferenceExceptions(lastFIRE); } } else { tm = exp.eval(env); } return tm == null ? TemplateBooleanModel.FALSE : TemplateBooleanModel.TRUE; }
protected TemplateModel evalMaybeNonexistentTarget(Environment env) throws TemplateException { TemplateModel tm; if (target instanceof ParentheticalExpression) { boolean lastFIRE = env.setFastInvalidReferenceExceptions(true); try { tm = target.eval(env); } catch (InvalidReferenceException ire) { tm = null; } finally { env.setFastInvalidReferenceExceptions(lastFIRE); } } else { tm = target.eval(env); } return tm; }
protected TemplateModel evalMaybeNonexistentTarget(Environment env) throws TemplateException { TemplateModel tm; if (target instanceof ParentheticalExpression) { boolean lastFIRE = env.setFastInvalidReferenceExceptions(true); try { tm = target.eval(env); } catch (InvalidReferenceException ire) { tm = null; } finally { env.setFastInvalidReferenceExceptions(lastFIRE); } } else { tm = target.eval(env); } return tm; }
@Override TemplateModel _eval(Environment env) throws TemplateException { TemplateModel tm; if (exp instanceof ParentheticalExpression) { boolean lastFIRE = env.setFastInvalidReferenceExceptions(true); try { tm = exp.eval(env); } catch (InvalidReferenceException ire) { tm = null; } finally { env.setFastInvalidReferenceExceptions(lastFIRE); } } else { tm = exp.eval(env); } return tm == null ? TemplateBooleanModel.FALSE : TemplateBooleanModel.TRUE; }
@Override TemplateModel _eval(Environment env) throws TemplateException { TemplateModel left; if (lho instanceof ParentheticalExpression) { boolean lastFIRE = env.setFastInvalidReferenceExceptions(true); try { left = lho.eval(env); } catch (InvalidReferenceException ire) { left = null; } finally { env.setFastInvalidReferenceExceptions(lastFIRE); } } else { left = lho.eval(env); } if (left != null) return left; else if (rho == null) return EMPTY_STRING_AND_SEQUENCE_AND_HASH; else return rho.eval(env); }
@Override TemplateModel _eval(Environment env) throws TemplateException { TemplateModel left; if (lho instanceof ParentheticalExpression) { boolean lastFIRE = env.setFastInvalidReferenceExceptions(true); try { left = lho.eval(env); } catch (InvalidReferenceException ire) { left = null; } finally { env.setFastInvalidReferenceExceptions(lastFIRE); } } else { left = lho.eval(env); } if (left != null) return left; else if (rho == null) return EMPTY_STRING_AND_SEQUENCE_AND_HASH; else return rho.eval(env); }
this.out = sw; TemplateException thrownException = null; boolean lastFIRE = setFastInvalidReferenceExceptions(false); boolean lastInAttemptBlock = inAttemptBlock; try { } finally { inAttemptBlock = lastInAttemptBlock; setFastInvalidReferenceExceptions(lastFIRE); this.out = prevOut;
this.out = sw; TemplateException thrownException = null; boolean lastFIRE = setFastInvalidReferenceExceptions(false); boolean lastInAttemptBlock = inAttemptBlock; try { } finally { inAttemptBlock = lastInAttemptBlock; setFastInvalidReferenceExceptions(lastFIRE); this.out = prevOut;
public Writer getWriter(final Writer out, Map args) throws TemplateModelException, IOException { try { Environment env = Environment.getCurrentEnvironment(); boolean lastFIRE = env.setFastInvalidReferenceExceptions(false); try { env.include(template); } finally { env.setFastInvalidReferenceExceptions(lastFIRE);
public Writer getWriter(final Writer out, Map args) throws TemplateModelException, IOException { try { Environment env = Environment.getCurrentEnvironment(); boolean lastFIRE = env.setFastInvalidReferenceExceptions(false); try { env.include(template); } finally { env.setFastInvalidReferenceExceptions(lastFIRE);