/** * @throws IllegalArgumentException if method has no code */ public CodeDisassembler(MethodInfo method) throws IllegalArgumentException { mMethod = method; mEnclosingClassName = method.getClassFile().getClassName(); mSuperClassName = method.getClassFile().getSuperClassName(); if ((mCode = method.getCodeAttr()) == null) { throw new IllegalArgumentException("Method defines no code"); } mCp = mCode.getConstantPool(); CodeBuffer buffer = mCode.getCodeBuffer(); mByteCodes = buffer.getByteCodes(); mExceptionHandlers = buffer.getExceptionHandlers(); }
mCodeAttr = info.getCodeAttr(); mClassFile = info.getClassFile(); mCp = mClassFile.getConstantPool();
if (mi.getCodeAttr() != null) { println("CodeBuilder b = new CodeBuilder(mi);"); println();
CodeAttr code = method.getCodeAttr();
/** * @throws IllegalArgumentException if method has no code */ public CodeDisassembler(MethodInfo method) throws IllegalArgumentException { mMethod = method; mEnclosingClassName = method.getClassFile().getClassName(); mSuperClassName = method.getClassFile().getSuperClassName(); if ((mCode = method.getCodeAttr()) == null) { throw new IllegalArgumentException("Method defines no code"); } mCp = mCode.getConstantPool(); CodeBuffer buffer = mCode.getCodeBuffer(); mByteCodes = buffer.getByteCodes(); mExceptionHandlers = buffer.getExceptionHandlers(); }
mCodeAttr = info.getCodeAttr(); mClassFile = info.getClassFile(); mCp = mClassFile.getConstantPool();
if (mi.getCodeAttr() != null) { println("CodeBuilder b = new CodeBuilder(mi);"); println();
CodeAttr code = method.getCodeAttr();