1 21 22 package org.apache.derby.iapi.services.compiler; 23 24 41 public interface MethodBuilder { 42 43 48 public void addThrownException(String exceptionClass); 49 50 53 public String getName(); 54 55 60 public void complete(); 61 62 70 public void getParameter(int id); 71 72 79 public void push(byte value); 80 81 88 public void push(boolean value); 89 90 97 public void push(short value); 98 99 106 public void push(int value); 107 108 115 public void push(long value); 116 117 124 public void push(float value); 125 126 133 public void push(double value); 134 135 142 public void push(String value); 143 144 151 public void pushNull(String className); 152 153 162 public void getField(LocalField field); 163 164 174 public void getField(String declaringClass, String fieldName, String fieldType); 175 176 183 public void getStaticField(String declaringClass, String fieldName, String fieldType); 184 185 195 public void setField(LocalField field); 196 197 207 public void putField(LocalField field); 208 209 219 public void putField(String fieldName, String fieldType); 220 221 231 public void putField(String declaringClass, String fieldName, String fieldType); 232 233 247 public void pushNewStart(String className); 248 249 250 262 public void pushNewComplete(int numArgs); 263 264 275 public void pushNewArray(String className, int size); 276 277 278 285 public void pushThis(); 286 287 296 public void upCast(String className); 297 298 308 public void cast(String className); 309 310 318 public void isInstanceOf(String className); 319 320 327 public void pop(); 328 329 344 public void endStatement(); 345 346 361 public void methodReturn(); 362 363 394 395 public void conditionalIfNull(); 396 397 410 public void conditionalIf(); 411 412 415 public void startElseCode(); 416 417 420 public void completeConditional(); 421 422 462 public int callMethod(short type, String declaringClass, String methodName, 463 String returnType, int numArgs); 464 465 473 public Object describeMethod(short opcode, String declaringClass, String methodName, String returnType); 474 475 490 public int callMethod(Object methodDescriptor); 491 492 501 public void callSuper(); 502 503 512 public void getArrayElement(int element); 513 514 523 public void setArrayElement(int element); 524 525 526 533 public void swap(); 534 535 542 public void dup(); 543 544 555 public boolean statementNumHitLimit(int noStatementsAdded); 556 } 557 558 | Popular Tags |