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 AstNot extends SimpleNode { 35 public AstNot(int id) { 36 super(id); 37 } 38 39 public Class getType(EvaluationContext ctx) 40 throws ELException { 41 return Boolean .class; 42 } 43 44 public Object getValue(EvaluationContext ctx) 45 throws ELException { 46 Object obj = this.children[0].getValue(ctx); 47 Boolean b = coerceToBoolean(obj); 48 return Boolean.valueOf(!b.booleanValue()); 49 } 50 } 51 | Popular Tags |