Package javassist.bytecode

Examples of javassist.bytecode.ExceptionTable.startPc()


/*     */       try { type = index == 0 ? Type.THROWABLE : Type.get(classes.get(constPool.getClassInfo(index)));
/*     */       } catch (NotFoundException e) {
/* 224 */         throw new IllegalStateException(e.getMessage());
/*     */       }
/*     */
/* 227 */       exceptions[i] = new ExceptionInfo(table.startPc(i), table.endPc(i), table.handlerPc(i), type, null);
/*     */     }
/*     */
/* 230 */     return exceptions;
/*     */   }
/*     */
View Full Code Here


/* 136 */       CodeAttribute ca = this.thisMethod.getCodeAttribute();
/* 137 */       ExceptionTable et = ca.getExceptionTable();
/* 138 */       int pos = this.currentPos;
/* 139 */       int n = et.size();
/* 140 */       for (int i = 0; i < n; i++)
/* 141 */         if ((et.startPc(i) <= pos) && (pos < et.endPc(i))) {
/* 142 */           int t = et.catchType(i);
/* 143 */           if (t <= 0) continue;
/*     */           try {
/* 145 */             addClass(list, pool.get(cp.getClassInfo(t)));
/*     */           }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.