Examples of Exception_data


Examples of com.sun.tools.classfile.Code_attribute.Exception_data

    public void reset(Code_attribute attr) {
        indexMap = new HashMap<Exception_data, Integer>();
        pcMap = new HashMap<Integer, List<Exception_data>>();
        for (int i = 0; i < attr.exception_table.length; i++) {
            Exception_data entry = attr.exception_table[i];
            indexMap.put(entry, i);
            put(entry.start_pc, entry);
            put(entry.end_pc, entry);
            put(entry.handler_pc, entry);
        }
View Full Code Here

Examples of com.sun.tools.classfile.Code_attribute.Exception_data

        List<Exception_data> entries = pcMap.get(pc);
        if (entries != null) {
            for (ListIterator<Exception_data> iter =
                    entries.listIterator(kind == NoteKind.END ? entries.size() : 0);
                    kind == NoteKind.END ? iter.hasPrevious() : iter.hasNext() ; ) {
                Exception_data entry =
                        kind == NoteKind.END ? iter.previous() : iter.next();
                if (kind.match(entry, pc)) {
                    print(indent);
                    print(kind.text);
                    print("[");
View Full Code Here

Examples of com.sun.tools.classfile.Code_attribute.Exception_data

            }
            Code_attribute ea = (Code_attribute)testMethod.attributes.get(Attribute.Code);
            if (testMethod == null) {
                throw new Error("Code attribute for test() method not found");
            }
            Exception_data firstExceptionTable = null;
            for (int i = 0 ; i < ea.exception_table_langth; i++) {
                if (firstExceptionTable == null) {
                    firstExceptionTable = ea.exception_table[i];
                }
                if (ea.exception_table[i].handler_pc != firstExceptionTable.handler_pc ||
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.