Examples of ExceptionTable


Examples of org.apache.bcel.classfile.ExceptionTable

            for (int i = 0; i < size; i++) {
                ex[i] = cp.addClass((String) throws_vec.get(i));
            }
        } catch (ArrayIndexOutOfBoundsException e) {
        }
        return new ExceptionTable(cp.addUtf8("Exceptions"), 2 + 2 * size, ex, cp.getConstantPool());
    }
View Full Code Here

Examples of org.apache.bcel.classfile.ExceptionTable

                    2 + exc_len + // exceptions
                    2 + attrs_len, // attributes
                    max_stack, max_locals, byte_code, c_exc, code_attrs, cp.getConstantPool());
            addAttribute(code);
        }
        ExceptionTable et = null;
        if (throws_vec.size() > 0) {
            addAttribute(et = getExceptionTable(cp));
            // Add `Exceptions' if there are "throws" clauses
        }
        Method m = new Method(access_flags, name_index, signature_index, getAttributes(), cp
View Full Code Here

Examples of org.apache.bcel.classfile.ExceptionTable

        return null;
    }

    HashSet<String> thrownExceptions(Method m) {
        HashSet<String> result = new HashSet<String>();
        ExceptionTable exceptionTable = m.getExceptionTable();
        if (exceptionTable != null) {
            for (String e : exceptionTable.getExceptionNames()) {
                result.add(e);
            }
        }
        return result;
    }
View Full Code Here

Examples of org.apache.bcel.classfile.ExceptionTable

        }
        methodMetaData.setParameterTypes(parameterTypes);

        // exceptions
        String[] exceptions;
        ExceptionTable exceptionTable = method.getExceptionTable();
        if (exceptionTable != null) {
            exceptions = exceptionTable.getExceptionNames();
        }
        else {
            exceptions = new String[0];
        }
        methodMetaData.setExceptionTypes(exceptions);
View Full Code Here

Examples of org.apache.bcel.classfile.ExceptionTable

      log("         method param[" + i + "]=" + types[i],
          Project.MSG_VERBOSE);
      design.checkClass(types[i]);
    }

    ExceptionTable excs = m.getExceptionTable();
    if (excs != null) {
      types = excs.getExceptionNames();
      for (int i = 0; i < types.length; i++) {
        log("         exc=" + types[i], Project.MSG_VERBOSE);
        design.checkClass(types[i]);
      }
    }
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionTable

        final CodeAttribute codeAttr
            = new CodeAttribute(getCodeAttributeUtf8(),
                                0, // maxStack
                                countMethodArgWords(methodSig), // maxLocals
                                begin,
                                new ExceptionTable(),
                                new AttributeVector());
        augmenter.addMethod(methodName, methodSig, accessFlags,
                            codeAttr, exceptAttr);
    }
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionTable

        final CodeAttribute codeAttr
            = new CodeAttribute(getCodeAttributeUtf8(),
                                4, // maxStack
                                3, // maxLocals
                                begin,
                                new ExceptionTable(),
                                new AttributeVector());
        augmenter.addMethod(methodName, methodSig, accessFlags,
                            codeAttr, exceptAttr);
    }
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionTable

        final CodeAttribute codeAttr
            = new CodeAttribute(getCodeAttributeUtf8(),
                                3, // maxStack
                                2, // maxLocals
                                begin,
                                new ExceptionTable(),
                                new AttributeVector());
        augmenter.addMethod(methodName, methodSig, accessFlags,
                            codeAttr, exceptAttr);
    }
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionTable

        final CodeAttribute codeAttr
            = new CodeAttribute(getCodeAttributeUtf8(),
                                3, // maxStack
                                3, // maxLocals
                                begin,
                                new ExceptionTable(),
                                new AttributeVector());
        augmenter.addMethod(methodName, methodSig, accessFlags,
                            codeAttr, exceptAttr);
    }
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionTable

        final CodeAttribute codeAttr
            = new CodeAttribute(getCodeAttributeUtf8(),
                                2, // maxStack
                                2, // maxLocals
                                begin,
                                new ExceptionTable(),
                                new AttributeVector());
        augmenter.addMethod(methodName, methodSig, accessFlags,
                            codeAttr, exceptAttr);
    }
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.