1 package com.genimen.djeneric.repository.oql.core.nodes; 2 3 import java.util.HashMap ; 4 5 import com.genimen.djeneric.repository.oql.core.DjOqlParserEngine; 6 import com.genimen.djeneric.repository.oql.core.SimpleNode; 7 8 public class NullNode extends SimpleNode implements ValueExpression 9 { 10 11 public NullNode(int i) 12 { 13 super(i); 14 } 15 16 public NullNode(DjOqlParserEngine p, int i) 17 { 18 super(p, i); 19 } 20 21 public String getName() 22 { 23 return "null"; 24 } 25 26 public String toString() 27 { 28 return "null"; 29 } 30 31 public Object getValue() 32 { 33 return null; 34 } 35 36 public void translate(StringBuffer result, HashMap path2AliasMapping) 37 { 38 appendOpenBrackets(result); 39 result.append("null"); 40 appendCloseBrackets(result); 41 } 42 43 public Object getValue(MatchingContext context) 44 { 45 return null; 46 } 47 } | Popular Tags |