1 2 12 package com.versant.core.jdo.query; 13 14 import com.versant.core.metadata.ClassMetaData; 15 16 20 public class ParamNodeProxy extends LeafNode { 21 22 private ParamNode paramNode; 23 24 public ParamNodeProxy(ParamNode p) { 25 this.paramNode = p; 26 } 27 28 public Object accept(NodeVisitor visitor, Object [] results) { 29 return visitor.visitParamNode(this.paramNode, results); 30 } 31 32 public ParamNode getParamNode() { 33 return paramNode; 34 } 35 36 public String toString() { 37 return super.toString() + " for " + paramNode; 38 } 39 40 public Field visit(MemVisitor visitor, Object obj) { 41 return visitor.visitParamNodeProxy(this, obj); 42 } 43 44 public String getType() { 45 return paramNode.getType(); 46 } 47 48 public String getIdentifier() { 49 return paramNode.getIdentifier(); 50 } 51 52 public Class getCls() { 53 return paramNode.getCls(); 54 } 55 56 public ClassMetaData getCmd() { 57 return paramNode.getCmd(); 58 } 59 60 public Object getValue() { 61 return paramNode.getValue(); 62 } 63 64 public int getIndex() { 65 return paramNode.getIndex(); 66 } 67 68 public Object arrive(NodeVisitor v, Object msg) { 69 return v.arriveParamNodeProxy(this, msg); 70 } 71 72 } 73 74 | Popular Tags |