Package javassist.bytecode

Examples of javassist.bytecode.LineNumberAttribute


/*      */   {
/* 1101 */     CodeAttribute ca = this.methodInfo.getCodeAttribute();
/* 1102 */     if (ca == null) {
/* 1103 */       throw new CannotCompileException("no method body");
/*      */     }
/* 1105 */     LineNumberAttribute ainfo = (LineNumberAttribute)ca.getAttribute("LineNumberTable");
/*      */
/* 1107 */     if (ainfo == null) {
/* 1108 */       throw new CannotCompileException("no line number info");
/*      */     }
/* 1110 */     LineNumberAttribute.Pc pc = ainfo.toNearPc(lineNum);
/* 1111 */     lineNum = pc.line;
/* 1112 */     int index = pc.index;
/* 1113 */     if (!modify) {
/* 1114 */       return lineNum;
/*      */     }
View Full Code Here

TOP

Related Classes of javassist.bytecode.LineNumberAttribute

Copyright © 2018 www.massapicom. 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.