1 2 3 package org.apache.el.parser; 4 5 import javax.el.ELException; 6 7 import org.apache.el.lang.EvaluationContext; 8 9 10 14 public final class AstOr extends BooleanNode { 15 public AstOr(int id) { 16 super(id); 17 } 18 19 public Object getValue(EvaluationContext ctx) 20 throws ELException { 21 Object obj = this.children[0].getValue(ctx); 22 Boolean b = coerceToBoolean(obj); 23 if (b.booleanValue()) { 24 return b; 25 } 26 obj = this.children[1].getValue(ctx); 27 b = coerceToBoolean(obj); 28 return b; 29 } 30 } 31 | Popular Tags |