1 15 package org.apache.tapestry.enhance; 16 17 import java.util.List ; 18 19 import org.apache.hivemind.service.MethodSignature; 20 21 28 public interface EnhancementOperation 29 { 30 38 39 public void claimProperty(String propertyName); 40 41 45 46 public List findUnclaimedAbstractProperties(); 47 48 52 53 public void addField(String name, Class type); 54 55 70 71 public String addInjectedField(String fieldName, Class fieldType, Object value); 72 73 77 78 public Class convertTypeName(String type); 79 80 84 85 public void validateProperty(String name, Class expectedType); 86 87 91 92 public String getAccessorMethodName(String propertyName); 93 94 105 public void addMethod(int modifier, MethodSignature sig, String methodBody); 106 107 111 public Class getBaseClass(); 112 113 117 118 public String getClassReference(Class clazz); 119 120 124 125 public Class getPropertyType(String name); 126 127 145 public void extendMethodImplementation(Class interfaceClass, MethodSignature methodSignature, 146 String code); 147 148 153 154 public boolean implementsInterface(Class interfaceClass); 155 } | Popular Tags |