1 2 12 package com.versant.core.jdo.query; 13 14 import com.versant.core.common.Debug; 15 16 19 public class ImportNode extends LeafNode { 20 21 public String name; 22 public boolean all; 23 24 public ImportNode() { 25 } 26 27 public String toString() { 28 return super.toString() + ": " + name + (all ? "*" : ""); 29 } 30 31 public Field visit(MemVisitor visitor, Object obj) { 32 return visitor.visitImportNode(this, obj); 33 } 34 35 public void dump(String indent) { 36 Debug.OUT.println(indent + this); 37 } 38 39 public String getClassName() { 40 if (all) return null; 41 int i = name.lastIndexOf('.'); 42 if (i >= 0) return name.substring(i + 1); 43 return name; 44 } 45 46 public Object arrive(NodeVisitor v, Object msg) { 47 return v.arriveImportNode(this, msg); 48 } 49 50 } 51 | Popular Tags |