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 AstLessThanEqual extends BooleanNode { 15 public AstLessThanEqual(int id) { 16 super(id); 17 } 18 19 public Object getValue(EvaluationContext ctx) 20 throws ELException { 21 Object obj0 = this.children[0].getValue(ctx); 22 Object obj1 = this.children[1].getValue(ctx); 23 if (obj0 == obj1) { 24 return Boolean.TRUE; 25 } 26 if (obj0 == null || obj1 == null) { 27 return Boolean.FALSE; 28 } 29 return (compare(obj0, obj1) <= 0) ? Boolean.TRUE : Boolean.FALSE; 30 } 31 } 32 | Popular Tags |