1 2 12 package com.versant.core.jdo.query; 13 14 17 public class OrderNode extends Node { 18 19 public static final int ORDER_ASCENDING = 0; 20 public static final int ORDER_DESCENDING = 1; 21 22 public int order; 23 24 public OrderNode() { 25 } 26 27 public String toString() { 28 return super.toString() + 29 (order == ORDER_ASCENDING ? " ascending" : " descending"); 30 } 31 32 public Field visit(MemVisitor visitor, Object obj) { 33 return visitor.visitOrderNode(this, obj); 34 } 35 36 public Object arrive(NodeVisitor v, Object msg) { 37 return v.arriveOrderNode(this, msg); 38 } 39 40 public Object accept(NodeVisitor v, Object [] results) { 41 return v.visitOrderNode(this, results); 42 } 43 } 44 45 | Popular Tags |