001    /**
002     * Implements the CFML Function isnotmap
003     */
004    package railo.runtime.functions.other;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.exp.PageException;
008    import railo.runtime.ext.function.Function;
009    
010    public final class IsNull implements Function {
011            public static boolean call(PageContext pc , Object object) {
012                    return object==null;
013            }
014            // called by modifed call from translation time evaluator
015            public static boolean call(PageContext pc , String str) {
016                    
017                    try {
018                            return pc.evaluate(str)==null;
019                    } 
020                    catch (PageException e) {
021                            return true;
022                    }
023            }
024    }