1 35 package groovy.lang; 36 37 43 public abstract class MetaProperty { 44 45 protected String name; 46 protected Class type; 47 48 public MetaProperty(String name, Class type) { 49 this.name = name; 50 this.type = type; 51 } 52 53 57 public abstract Object getProperty(Object object) throws Exception ; 58 59 66 public abstract void setProperty(Object object, Object newValue); 67 68 public String getName() { 69 return name; 70 } 71 72 75 public Class getType() { 76 return type; 77 } 78 79 } 80 | Popular Tags |