1 23 24 package com.sun.el.parser; 25 26 import javax.el.ELException; 27 28 import com.sun.el.lang.EvaluationContext; 29 30 34 public final class AstAnd extends BooleanNode { 35 public AstAnd(int id) { 36 super(id); 37 } 38 39 public Object getValue(EvaluationContext ctx) 40 throws ELException { 41 Object obj = children[0].getValue(ctx); 42 Boolean b = coerceToBoolean(obj); 43 if (!b.booleanValue()) { 44 return b; 45 } 46 obj = children[1].getValue(ctx); 47 b = coerceToBoolean(obj); 48 return b; 49 } 50 } 51 | Popular Tags |