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 AstGreaterThan extends BooleanNode { 35 public AstGreaterThan(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 if (obj0 == null) { 43 return Boolean.FALSE; 44 } 45 Object obj1 = this.children[1].getValue(ctx); 46 if (obj1 == null) { 47 return Boolean.FALSE; 48 } 49 return (compare(obj0, obj1) > 0) ? Boolean.TRUE : Boolean.FALSE; 50 } 51 } 52 | Popular Tags |