1 package org.apache.ojb.jdo.jdoql; 2 3 17 18 23 public class NameExpression extends PostfixExpression 24 { 25 26 private String _name; 27 28 34 public NameExpression(Expression base, String name) 35 { 36 super(base); 37 _name = name; 38 } 39 40 45 public String getName() 46 { 47 return _name; 48 } 49 50 53 public void accept(Visitor visitor) 54 { 55 visitor.visit(this); 56 } 57 58 61 public String toString() 62 { 63 StringBuffer result = new StringBuffer (); 64 65 if (_base != null) 66 { 67 result.append(_base.toString()); 68 result.append("."); 69 } 70 result.append(_name); 71 return result.toString(); 72 } 73 74 77 public Class getType() 78 { 79 return null; 82 } 83 } 84 | Popular Tags |