1 package org.apache.ojb.jdo.jdoql; 2 3 17 18 24 public abstract class PostfixExpression extends Expression 25 { 26 27 protected Expression _base; 28 29 35 public PostfixExpression(Expression base) 36 { 37 _base = base; 38 } 39 40 45 public boolean hasBaseExpression() 46 { 47 return _base != null; 48 } 49 50 55 public Expression getBaseExpression() 56 { 57 return _base; 58 } 59 60 65 public void setBaseExpression(Expression base) 66 { 67 if (_base != null) 68 { 69 _base.setParent(null); 70 } 71 _base = base; 72 if (_base != null) 73 { 74 _base.setParent(this); 75 } 76 } 77 78 81 public void replaceChild(Expression oldChild, Expression newChild) 82 { 83 setBaseExpression(newChild); 84 } 85 } 86 | Popular Tags |