Ejemplo n.º 1
0
 public override void execute(IndentWriter writer, JadeModel model, JadeTemplate template)
 //throws JadeCompilerException
 {
     try
     {
         model.pushScope();
         while (ExpressionHandler.evaluateBooleanExpression(value, model).Value)
         {
             block.execute(writer, model, template);
         }
         model.popScope();
     }
     catch (ExpressionException e)
     {
         throw new JadeCompilerException(this, template.getTemplateLoader(), e);
     }
 }
Ejemplo n.º 2
0
        private bool checkCondition(JadeModel model, String condition) //throws ExpressionException
        {
            Boolean?value = ExpressionHandler.evaluateBooleanExpression(condition, model);

            return((value == null) ? false : value.Value);
        }
Ejemplo n.º 3
0
 private bool checkCondition(JadeModel model, Node caseConditionNode) //throws ExpressionException
 {
     return(ExpressionHandler.evaluateBooleanExpression(value + " == " + caseConditionNode.getValue(), model).Value);
 }