@Override TemplateElement[] accept(Environment env) throws TemplateException, IOException { if (condition == null || condition.evalToBoolean(env)) { return getChildBuffer(); } return null; }
@Override TemplateElement[] accept(Environment env) throws TemplateException, IOException { int ln = getChildCount(); for (int i = 0; i < ln; i++) { ConditionalBlock cblock = (ConditionalBlock) getChild(i); Expression condition = cblock.condition; env.replaceElementStackTop(cblock); if (condition == null || condition.evalToBoolean(env)) { return cblock.getChildBuffer(); } } return null; }
@Override TemplateElement[] accept(Environment env) throws TemplateException, IOException { if (condition == null || condition.evalToBoolean(env)) { return getChildBuffer(); } return null; }
@Override TemplateElement[] accept(Environment env) throws TemplateException, IOException { if (condition == null || condition.evalToBoolean(env)) { return getChildBuffer(); } return null; }
@Override TemplateElement[] accept(Environment env) throws TemplateException, IOException { int ln = getChildCount(); for (int i = 0; i < ln; i++) { ConditionalBlock cblock = (ConditionalBlock) getChild(i); Expression condition = cblock.condition; env.replaceElementStackTop(cblock); if (condition == null || condition.evalToBoolean(env)) { return cblock.getChildBuffer(); } } return null; }
@Override TemplateElement[] accept(Environment env) throws TemplateException, IOException { int ln = getChildCount(); for (int i = 0; i < ln; i++) { ConditionalBlock cblock = (ConditionalBlock) getChild(i); Expression condition = cblock.condition; env.replaceElementStackTop(cblock); if (condition == null || condition.evalToBoolean(env)) { return cblock.getChildBuffer(); } } return null; }