1 21 22 package org.apache.derby.iapi.services.compiler; 23 24 import org.apache.derby.iapi.services.loader.GeneratedClass; 25 import org.apache.derby.iapi.error.StandardException; 26 import org.apache.derby.iapi.util.ByteArray; 27 28 57 public interface ClassBuilder { 58 59 73 LocalField addField(String type, String name, int modifiers); 74 75 81 GeneratedClass getGeneratedClass() throws StandardException; 82 83 88 ByteArray getClassBytecode() throws StandardException; 89 90 93 String getName(); 94 95 98 String getFullName(); 99 100 124 MethodBuilder newMethodBuilder(int modifiers, String returnType, 125 String methodName); 126 127 153 MethodBuilder newMethodBuilder(int modifiers, String returnType, 154 String methodName, String [] parms); 155 156 178 MethodBuilder newConstructorBuilder(int modifiers); 179 180 191 void newFieldWithAccessors(String getter, String setter, int methodModifier, 192 boolean staticField, String type); 193 } 194 | Popular Tags |