Package org.aspectj.apache.bcel.generic

Examples of org.aspectj.apache.bcel.generic.CodeExceptionGen


    if (exns != null) {
      int len = exns.length;
      // if (len > 0) hasExceptionHandlers = true;
      int priority = len - 1;
      for (int i = 0; i < len; i++, priority--) {
        CodeExceptionGen exn = exns[i];

        InstructionHandle start = Range.genStart(body, getOutermostExceptionStart(exn.getStartPC()));
        InstructionHandle end = Range.genEnd(body, getOutermostExceptionEnd(exn.getEndPC()));
        // this doesn't necessarily handle overlapping correctly!!!
        ExceptionRange er = new ExceptionRange(body, exn.getCatchType() == null ? null : BcelWorld.fromBcel(exn
            .getCatchType()), priority);
        er.associateWithTargets(start, end, exn.getHandlerPC());
        exn.setStartPC(null); // also removes from target
        exn.setEndPC(null); // also removes from target
        exn.setHandlerPC(null); // also removes from target
      }
      gen.removeExceptionHandlers();
    }
  }
View Full Code Here


    if (exns != null) {
      int len = exns.length;
      // if (len > 0) hasExceptionHandlers = true;
      int priority = len - 1;
      for (int i = 0; i < len; i++, priority--) {
        CodeExceptionGen exn = exns[i];

        InstructionHandle start = Range.genStart(body, getOutermostExceptionStart(exn.getStartPC()));
        InstructionHandle end = Range.genEnd(body, getOutermostExceptionEnd(exn.getEndPC()));
        // this doesn't necessarily handle overlapping correctly!!!
        ExceptionRange er = new ExceptionRange(body, exn.getCatchType() == null ? null : BcelWorld.fromBcel(exn
            .getCatchType()), priority);
        er.associateWithTargets(start, end, exn.getHandlerPC());
        exn.setStartPC(null); // also removes from target
        exn.setEndPC(null); // also removes from target
        exn.setHandlerPC(null); // also removes from target
      }
      gen.removeExceptionHandlers();
    }
  }
View Full Code Here

    if (exns != null) {
      int len = exns.length;
      // if (len > 0) hasExceptionHandlers = true;
      int priority = len - 1;
      for (int i = 0; i < len; i++, priority--) {
        CodeExceptionGen exn = exns[i];

        InstructionHandle start = Range.genStart(body, getOutermostExceptionStart(exn.getStartPC()));
        InstructionHandle end = Range.genEnd(body, getOutermostExceptionEnd(exn.getEndPC()));
        // this doesn't necessarily handle overlapping correctly!!!
        ExceptionRange er = new ExceptionRange(body, exn.getCatchType() == null ? null : BcelWorld.fromBcel(exn
            .getCatchType()), priority);
        er.associateWithTargets(start, end, exn.getHandlerPC());
        exn.setStartPC(null); // also removes from target
        exn.setEndPC(null); // also removes from target
        exn.setHandlerPC(null); // also removes from target
      }
      gen.removeExceptionHandlers();
    }
  }
View Full Code Here

        if (exns != null) {
            int len = exns.length;
//           if (len > 0) hasExceptionHandlers = true;
            int priority = len - 1;
            for (int i = 0; i < len; i++, priority--) {
                CodeExceptionGen exn = exns[i];
       
                InstructionHandle start =
                    Range.genStart(
                        body,
                        getOutermostExceptionStart(exn.getStartPC()));
                InstructionHandle end = Range.genEnd(body, getOutermostExceptionEnd(exn.getEndPC()));
                // this doesn't necessarily handle overlapping correctly!!!
                ExceptionRange er =
                    new ExceptionRange(
                        body,
                        exn.getCatchType() == null
                        ? null
                        : BcelWorld.fromBcel(exn.getCatchType()),
                        priority);
                er.associateWithTargets(start, end, exn.getHandlerPC());
                exn.setStartPC(null); // also removes from target
                exn.setEndPC(null); // also removes from target
                exn.setHandlerPC(null); // also removes from target
            }
            gen.removeExceptionHandlers();
        }
    }
View Full Code Here

TOP

Related Classes of org.aspectj.apache.bcel.generic.CodeExceptionGen

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.