KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > tools > generator > core > nodes > OrderByNode


1 package com.genimen.djeneric.tools.generator.core.nodes;
2
3 import com.genimen.djeneric.tools.generator.core.DjentelParserEngine;
4 import com.genimen.djeneric.tools.generator.core.SimpleNode;
5 import com.genimen.djeneric.tools.generator.core.util.ParseContext;
6
7 public class OrderByNode extends SimpleNode
8 {
9   String JavaDoc[] _propNames = null;
10
11   public OrderByNode(int i)
12   {
13     super(i);
14   }
15
16   public OrderByNode(DjentelParserEngine p, int i)
17   {
18     super(p, i);
19   }
20
21   public String JavaDoc getName()
22   {
23     return "order by";
24   }
25
26   public String JavaDoc toString()
27   {
28     if (_propNames == null) return "";
29
30     StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
31     for (int i = 0; i < _propNames.length; i++)
32     {
33       sb.append(_propNames[i]);
34       sb.append(" ");
35     }
36     return sb.toString();
37
38   }
39
40   public String JavaDoc evaluate(ParseContext context)
41   {
42     return "";
43   }
44
45   public void setProperties(String JavaDoc[] propNames)
46   {
47     _propNames = propNames;
48   }
49
50   public String JavaDoc[] getProperties()
51   {
52     return _propNames;
53   }
54
55 }
Popular Tags