1 17 package org.apache.bcel.generic; 18 19 import org.apache.bcel.Constants; 20 import org.apache.bcel.ExceptionConstants; 21 22 30 public class INVOKESTATIC extends InvokeInstruction { 31 32 36 INVOKESTATIC() { 37 } 38 39 40 public INVOKESTATIC(int index) { 41 super(Constants.INVOKESTATIC, index); 42 } 43 44 45 public Class [] getExceptions() { 46 Class [] cs = new Class [2 + ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length]; 47 System.arraycopy(ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION, 0, cs, 0, 48 ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length); 49 cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length] = ExceptionConstants.UNSATISFIED_LINK_ERROR; 50 cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length + 1] = ExceptionConstants.INCOMPATIBLE_CLASS_CHANGE_ERROR; 51 return cs; 52 } 53 54 55 63 public void accept( Visitor v ) { 64 v.visitExceptionThrower(this); 65 v.visitTypedInstruction(this); 66 v.visitStackConsumer(this); 67 v.visitStackProducer(this); 68 v.visitLoadClass(this); 69 v.visitCPInstruction(this); 70 v.visitFieldOrMethod(this); 71 v.visitInvokeInstruction(this); 72 v.visitINVOKESTATIC(this); 73 } 74 } 75 | Popular Tags |