Examples of ExceptionsAttribute


Examples of alt.jiapi.file.ExceptionsAttribute

     * (e.g. "java.lang.ClassNotFoundException").
     *
     * @return an array of parameter type names
     */
    public String[] getExceptionNames() {
        ExceptionsAttribute a =
            (ExceptionsAttribute)getAttribute("Exceptions");

        if (a == null) {
            return new String[0];
        }

        return a.getExceptionNames();
    }
View Full Code Here

Examples of javassist.bytecode.ExceptionsAttribute

                }
        }
        catch (NullPointerException e) {
        }

        ExceptionsAttribute ea = thisMethod.getExceptionsAttribute();
        if (ea != null) {
            String[] exceptions = ea.getExceptions();
            if (exceptions != null) {
                int n = exceptions.length;
                for (int i = 0; i < n; ++i)
                    try {
                        addClass(list, pool.get(exceptions[i]));
View Full Code Here

Examples of javassist.bytecode.ExceptionsAttribute

                }
        }
        catch (NullPointerException e) {
        }

        ExceptionsAttribute ea = thisMethod.getExceptionsAttribute();
        if (ea != null) {
            String[] exceptions = ea.getExceptions();
            if (exceptions != null) {
                int n = exceptions.length;
                for (int i = 0; i < n; ++i)
                    try {
                        addClass(list, pool.get(exceptions[i]));
View Full Code Here

Examples of javassist.bytecode.ExceptionsAttribute

                }
        }
        catch (NullPointerException e) {
        }

        ExceptionsAttribute ea = thisMethod.getExceptionsAttribute();
        if (ea != null) {
            String[] exceptions = ea.getExceptions();
            if (exceptions != null) {
                int n = exceptions.length;
                for (int i = 0; i < n; ++i)
                    try {
                        addClass(list, pool.get(exceptions[i]));
View Full Code Here

Examples of net.sf.rej.java.attribute.ExceptionsAttribute

          }
          exceptionList.add(new ExceptionDescriptor(cp, exIndex));
        }

        Attributes attrs = method.getAttributes();
        ExceptionsAttribute ea = new ExceptionsAttribute(exAttrNameIndex, this.cp, exceptionList);
        if (this.oldExAttr != null) {
          attrs.removeAttribute(this.oldExAttr);
        }
        attrs.addAttribute(ea);
    }
View Full Code Here

Examples of net.sf.rej.java.attribute.ExceptionsAttribute

        method.setNameIndex(nameIndex);
        method.setDescriptorIndex(descIndex);
        Attributes attributes = new Attributes();
        CodeAttribute ca = new CodeAttribute(codeAttrNameIndex, cp, maxStackSize, maxLocals);
        attributes.addAttribute(ca);
        ExceptionsAttribute ea = new ExceptionsAttribute(exAttrNameIndex, cp, exceptions);
        attributes.addAttribute(ea);
        method.setAttributes(attributes);
        return method;
    }
View Full Code Here

Examples of net.sf.rej.java.attribute.ExceptionsAttribute

    public void setAccessFlags(AccessFlags accessFlags) {
        this.accessFlags = accessFlags.getValue();
    }

    public List<ExceptionDescriptor> getExceptions() {
        ExceptionsAttribute ea = this.attributes.getExceptionsAttribute();
        if (ea == null) {
            return new ArrayList<ExceptionDescriptor>();
        } else {
            return ea.getExceptions();
        }
    }
View Full Code Here

Examples of org.apache.harmony.pack200.bytecode.ExceptionsAttribute

                       for (int k = 0; k < n; k++) {
                           long result = codec.decode(in);
                           exceptions[k] = new CPClass(cpBands.getCpClass()[(int) result]);
                       }
                   }
                   methodExceptions[i][j] = new ExceptionsAttribute(exceptions);
                   methodAttributes[i][j].add(methodExceptions[i][j]);
               }
            }
        }
    }
View Full Code Here

Examples of org.apache.harmony.pack200.bytecode.ExceptionsAttribute

                    String[] exceptions = methodExceptionsRS[index];
                    CPClass[] exceptionClasses = new CPClass[n];
                    for (int k = 0; k < n; k++) {
                        exceptionClasses[k] = new CPClass(exceptions[k]);
                    }
                    methodAttributes[i][j].add(new ExceptionsAttribute(
                            exceptionClasses));
                    index++;
                }
            }
        }
View Full Code Here

Examples of org.apache.harmony.pack200.bytecode.ExceptionsAttribute

                    String[] exceptions = methodExceptionsRS[methodExceptionsIndex];
                    CPClass[] exceptionClasses = new CPClass[n];
                    for (int k = 0; k < n; k++) {
                        exceptionClasses[k] = new CPClass(exceptions[k]);
                    }
                    methodAttributes[i][j].add(new ExceptionsAttribute(
                            exceptionClasses));
                    methodExceptionsIndex++;
                }
                if (methodSignatureLayout.matches(flag)) {
                    // We've got a signature attribute
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.