1 18 package org.apache.tools.ant.types; 19 20 21 import org.apache.tools.ant.Project; 22 23 34 public class Substitution extends DataType { 35 36 public static final String DATA_TYPE_NAME = "substitition"; 37 38 private String expression; 39 40 41 public Substitution() { 42 this.expression = null; 43 } 44 45 49 public void setExpression(String expression) { 50 this.expression = expression; 51 } 52 53 60 public String getExpression(Project p) { 61 if (isReference()) { 62 return getRef(p).getExpression(p); 63 } 64 65 return expression; 66 } 67 68 74 public Substitution getRef(Project p) { 75 return (Substitution) getCheckedRef(p); 76 } 77 } 78 | Popular Tags |