1 30 package com.genimen.djeneric.tools.scriptengine.core.nodes; 31 32 import com.genimen.djeneric.tools.scriptengine.core.DjScriptParserEngine; 33 import com.genimen.djeneric.tools.scriptengine.core.SimpleNode; 34 import com.genimen.djeneric.tools.scriptengine.core.util.DjScriptExecutionTimeScope; 35 36 public class OrderByNode extends SimpleNode 37 { 38 String [] _propNames = null; 39 40 public OrderByNode(int i) 41 { 42 super(i); 43 } 44 45 public OrderByNode(DjScriptParserEngine p, int i) 46 { 47 super(p, i); 48 } 49 50 public String getName() 51 { 52 return "order by"; 53 } 54 55 public String toString() 56 { 57 if (_propNames == null) return ""; 58 59 StringBuffer sb = new StringBuffer (); 60 for (int i = 0; i < _propNames.length; i++) 61 { 62 sb.append(_propNames[i]); 63 sb.append(" "); 64 } 65 return sb.toString(); 66 67 } 68 69 public String evaluate(DjScriptExecutionTimeScope context) 70 { 71 return ""; 72 } 73 74 public void setProperties(String [] propNames) 75 { 76 _propNames = propNames; 77 } 78 79 public String [] getProperties() 80 { 81 return _propNames; 82 } 83 84 } | Popular Tags |