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 AstLessThanEqual extends BooleanNode { 35 public AstLessThanEqual(int id) { 36 super(id); 37 } 38 39 public Object getValue(EvaluationContext ctx) 40 throws ELException { 41 Object obj0 = this.children[0].getValue(ctx); 42 Object obj1 = this.children[1].getValue(ctx); 43 if (obj0 == obj1) { 44 return Boolean.TRUE; 45 } 46 if (obj0 == null || obj1 == null) { 47 return Boolean.FALSE; 48 } 49 return (compare(obj0, obj1) <= 0) ? Boolean.TRUE : Boolean.FALSE; 50 } 51 } 52 | Popular Tags |