1 30 package com.genimen.djeneric.tools.scriptengine.core.nodes; 31 32 import java.util.HashMap ; 33 34 import com.genimen.djeneric.tools.scriptengine.core.DjScriptParserEngine; 35 import com.genimen.djeneric.tools.scriptengine.core.SimpleNode; 36 import com.genimen.djeneric.tools.scriptengine.core.util.DjScriptCompileTimeScope; 37 import com.genimen.djeneric.tools.scriptengine.core.util.DjScriptExecutionTimeScope; 38 39 public class NullNode extends SimpleNode implements ValueExpression 40 { 41 42 public static final String NULL_TYPE = "null"; 43 44 public NullNode(int i) 45 { 46 super(i); 47 } 48 49 public NullNode(DjScriptParserEngine p, int i) 50 { 51 super(p, i); 52 } 53 54 public String getName() 55 { 56 return "null"; 57 } 58 59 public String toString() 60 { 61 return "null"; 62 } 63 64 public Object getValue(DjScriptExecutionTimeScope context) 65 { 66 return null; 67 } 68 69 public void translateOql(DjScriptExecutionTimeScope ctxt, StringBuffer result, HashMap parameters) 70 { 71 result.append(" null "); 72 } 73 74 public String getValidatedTypeName(DjScriptCompileTimeScope context) 75 { 76 return NULL_TYPE; 77 } 78 79 } | Popular Tags |