1 2 12 package com.versant.core.jdo.query; 13 14 18 public class VarNodeProxy extends LeafNode implements VarNodeIF { 19 20 private VarNode varNode; 21 22 public VarNodeProxy(VarNode v) { 23 this.varNode = v; 24 } 25 26 public Object accept(NodeVisitor visitor, Object [] results) { 27 return visitor.visitVarNode(this.varNode, results); 28 } 29 30 public VarNode getVarNode() { 31 return varNode; 32 } 33 34 public String toString() { 35 return super.toString() + " for " + varNode; 36 } 37 38 public Field visit(MemVisitor visitor, Object obj) { 39 return visitor.visitVarNodeProxy(this, obj); 40 } 41 42 public String getType() { 43 return varNode.getType(); 44 } 45 46 public String getIdentifier() { 47 return varNode.getIdentifier(); 48 } 49 50 public Class getCls() { 51 return varNode.getCls(); 52 } 53 54 public void setUsedInProjection(boolean usedInProjection) { 55 varNode.setUsedInProjection(usedInProjection); 56 } 57 58 public boolean isUsedInProjection() { 59 return varNode.isUsedInProjection(); 60 } 61 62 public Object arrive(NodeVisitor v, Object msg) { 63 return v.arriveVarNodeProxy(this, msg); 64 } 65 66 } 67 | Popular Tags |