1 package com.sun.org.apache.bcel.internal.generic; 2 3 56 import com.sun.org.apache.bcel.internal.Constants; 57 import com.sun.org.apache.bcel.internal.ExceptionConstants; 58 59 67 public class INVOKESTATIC extends InvokeInstruction { 68 72 INVOKESTATIC() {} 73 74 public INVOKESTATIC(int index) { 75 super(Constants.INVOKESTATIC, index); 76 } 77 78 public Class [] getExceptions() { 79 Class [] cs = new Class [2 + ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length]; 80 81 System.arraycopy(ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION, 0, 82 cs, 0, ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length); 83 84 cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length] = ExceptionConstants.UNSATISFIED_LINK_ERROR; 85 cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length+1] = ExceptionConstants.INCOMPATIBLE_CLASS_CHANGE_ERROR; 86 87 return cs; 88 } 89 90 91 99 public void accept(Visitor v) { 100 v.visitExceptionThrower(this); 101 v.visitTypedInstruction(this); 102 v.visitStackConsumer(this); 103 v.visitStackProducer(this); 104 v.visitLoadClass(this); 105 v.visitCPInstruction(this); 106 v.visitFieldOrMethod(this); 107 v.visitInvokeInstruction(this); 108 v.visitINVOKESTATIC(this); 109 } 110 } 111 | Popular Tags |