KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > repository > oql > core > nodes > NullNode


1 package com.genimen.djeneric.repository.oql.core.nodes;
2
3 import java.util.HashMap JavaDoc;
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 JavaDoc getName()
22   {
23     return "null";
24   }
25
26   public String JavaDoc toString()
27   {
28     return "null";
29   }
30
31   public Object JavaDoc getValue()
32   {
33     return null;
34   }
35
36   public void translate(StringBuffer JavaDoc result, HashMap JavaDoc path2AliasMapping)
37   {
38     appendOpenBrackets(result);
39     result.append("null");
40     appendCloseBrackets(result);
41   }
42
43   public Object JavaDoc getValue(MatchingContext context)
44   {
45     return null;
46   }
47 }
Popular Tags